Hello everyone,
I'm trying to map a controller actions with the name as a action. I've
got it well:
match "/home" => "main#home", :as => :home
match "/contact" => "main#contact", :as => :contact
match "/whoweare" => "main#whoweare", :as => :whoweare
But I want to do this with only one line of code. I've tried it with
this line, but it don't work:
match ':action' => 'main#:action', :as => :action
Any idea? Thanks and greetings.
--
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