浙江省高等学校教师教育理论培训

微信搜索“教师资格证岗前培训”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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
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.......

 

posted on 2010-10-31 11:26  lexus  阅读(231)  评论(0编辑  收藏  举报