Rails active_admin devise調試記錄

1.gem

gem 'activeadmin',github: 'activeadmin' gem 'devise'javascript

2.install

rails g active_admin:installcss

The generator adds these core files, among others:java

app/admin/dashboard.rb app/assets/javascripts/active_admin.js.coffee app/assets/stylesheets/active_admin.css.scss config/initializers/active_admin.rbgit

3.migrate

rake db:migrate rails servergithub

4.config initializers active_admin,devise

5.create another model

rails g devise User rake db:migrateapp

6.add resource

rails g active_admin:resource Userserver

相關文章
相關標籤/搜索