change rails generate controller tempalte

http://zigzag.github.com/2010/01/18/customizing-your-scaffold-template-become-easier-in-rails3.html

greak areticle

 

http://www.railsdispatch.com/posts/building-or-updating-a-rails-3-plugin

this is awasome

 

also

this

http://guides.rubyonrails.org/generators.html#customizing-your-workflow-by-changing-generators-templates

很好的样式的bloghttp://www.railsdispatch.com/

适合做团购

 

aboute nested router

http://nithinbekal.com/2010/05/14/rails-avoid-multiple-level-nested-resource-routes/

 

http://nithinbekal.com/2010/05/14/rails-avoid-multiple-level-nested-resource-routes/

 

 


Nested Namespace in Rails 2.0

Apr 13 2008

WP Greet Box icon
X
Welcome  Googler! If you find this page useful, you might want to  subscribe to the RSS feed for updates on this topic.

$> mate config/routes.rb

1. map.namespace :admin do |admin|
2. admin.resources :user
3. end

$> rake routes

1. admin_user_index GET    /admin/user
2. {:controller=>'admin/user':action=>'index'}
3. ......

$> mate config/routes.rb

1. map.namespace :admin do |admin|
2. admin.namespace :user do |user|
3. user.resources :profile
4. end
5. end

$> rake routes

1. admin_user_profile_index GET    /admin/user/profile
2. {:controller=>'admin/user/profile':action=>'index'}
3. ......

 

你可能感兴趣的:(controller)