Neeraj Kumar
2006-Jun-01 02:22 UTC
[Rails] How to achieve anchor in the html http://localhost:3000/event/event_info/100#comment5
I want to have the final URL something like this http://localhost:3000/event/event_info/100#comment5 comment_anchor = ''#comment5'' redirect_to :controller => ''event'', :action => ''event_info'' , :id => @session[:event_id] Now how do I pass this comment_anchor as html param to redirect_to ? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060601/2fcabd1e/attachment.html
Jean-François
2006-Jun-01 10:29 UTC
[Rails] How to achieve anchor in the html http://localhost:3000/event/event_info/100#comment5
Hello Neeraj,> I want to have the final URL something like this > > http://localhost:3000/event/event_info/100#comment5 > > comment_anchor = ''#comment5'' > redirect_to :controller => ''event'', :action => ''event_info'' , :id => > @session[:event_id] > > Now how do I pass this comment_anchor as html param to redirect_to ?try : :anchor => comment_anchor -- Jean-Fran?ois. -- ? la renverse.