rubyonrailsin

A Ruby and Rails talk

Wednesday, March 31, 2010


[Rails] Rails3 parameters in routes

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

In Rails 2 I was able to specify extra parameters within a route, like
this:
map.login "login", :controller => "user_sessions", :action => "new",
:tag_index => true
The tag_index would be available in the controller via
params[:tag_index].

I've searched to find a simular solution within Rails 3, but I'm still
unable to find it. Does anybody know a solution?

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

Subscribe feeds via e-mail

Blog Archive