[Rails] Re: Singular form of model
Thanks everyone.
have added
ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'give', 'gives'
end
in the inflection.rb , then now
gives GET /gives(.:format)
{:action=>"index", :controller=>"gives"}
POST /gives(.:format)
{:action=>"create", :controller=>"gives"}
new_give GET /gives/new(.:format)
{:action=>"new", :controller=>"gives"}
edit_give GET /gives/:id/edit(.:format)
{:action=>"edit", :controller=>"gives"}
give GET /gives/:id(.:format)
{:action=>"show", :controller=>"gives"}
looking good!
Thanks again.
soichi
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home