ジェネレートする時に区切りが / だったか :: なのか忘れがちなのでメモ。
app/controllers/users_controller.rb
でなくて
app/controllers/admin/users_controller.rb
みたいにadmin/下に置くみたいな感じ。
$ rails generate scaffold admin/user name email
invoke active_record
create db/migrate/20121008140635_create_admin_users.rb
create app/models/admin/user.rb
create app/models/admin.rb
invoke resource_route
route namespace :admin do resources :users end
invoke scaffold_controller
create app/controllers/admin/users_controller.rb
invoke erb
create app/views/admin/users
create app/views/admin/users/index.html.erb
create app/views/admin/users/edit.html.erb
create app/views/admin/users/show.html.erb
create app/views/admin/users/new.html.erb
create app/views/admin/users/_form.html.erb
invoke helper
create app/helpers/admin/users_helper.rb
invoke assets
invoke coffee
create app/assets/javascripts/admin/users.js.coffee
invoke scss
create app/assets/stylesheets/admin/users.css.scss
invoke scss
create app/assets/stylesheets/scaffolds.css.scss