change rails generate controller tempalte

本文介绍了如何在Rails 3中定制Scaffold模板,包括更新和构建Rails 3插件的方法。此外,还提供了关于如何通过更改生成器模板来自定义工作流程的指导,并讨论了如何避免使用多级嵌套资源路由。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值