I had this app in rails 2.3 and had this route
map.resources :oker_training, :as => 'oker-training'
it did everything correctly, and displayed the url as
"/oker-training".
To get the same effect in rails 3, I had to do this
resources 'oker-training', :as => :oker_training, :controller =>
:oker_training.
My routes file is now 30% larger than before :( Is there a cleaner way
to write that?
Jeremy
(had to call it "oker" because it thought I was spamming. lol)
--
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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment