Salil Gaikwad wrote:
> i try something like this in routes.rb
>
> map.connect 'issues/:action', :controller => 'issues', :action=>'new'
>
> and then restart the server but it doesn't works....
Try this in irb
>> rts = ActionController::Routing::Routes
>> rts.recognize_path("issues/new")
and it'll return the route that maps to it
This and other cool tips in a nice tutorial by Daryn Holmes:
http://darynholmes.wordpress.com/2008/03/15/beginners-tutorial-routing-in-rails-20-with-rest-part-1-of-n/
Sarah
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---