Hello, I try this : redirect_to :action => ''infos'' , :id => params[:id] , :show => "comments#a" i want this : .../infos/15?show=comments#a but I have this : .../infos/15?show=comments%23a Someone could tell me how generate an anchor link ? Thanks
redirect_to :action => ''infos'', :id => params[:id], :anchor => ''a'' => app/controller/infos/3#a docs: http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html -- Posted via http://www.ruby-forum.com/.
Well I saw the page you gave me, but there is nothing about " :anchor " on this page Thanks !>redirect_to > :action => ''infos'', > :id => params[:id], > :anchor => ''a'' > >=> > >app/controller/infos/3#a > >docs: > >http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html > > >
I think he meant the *other* url_for :-) http://api.rubyonrails.com/classes/ActionController/Base.html#M000174 -- Alex oo00oo wrote:> Well I saw the page you gave me, but there is nothing about " :anchor " > on this page > > Thanks ! > >> redirect_to >> :action => ''infos'', >> :id => params[:id], >> :anchor => ''a'' >> >> => >> >> app/controller/infos/3#a >> >> docs: >> >> http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html >> >> >> > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
Try: http://api.rubyonrails.com/classes/ActionController/Base.html#M000174 -Rob At 1/18/2006 11:43 AM, you wrote:>Well I saw the page you gave me, but there is nothing about " >:anchor " on this page > >Thanks ! > >>redirect_to >> :action => ''infos'', >> :id => params[:id], >> :anchor => ''a'' >> >>=> >> >>app/controller/infos/3#a >> >>docs: >> >>http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html >> >> > >_______________________________________________ >Rails mailing list >Rails@lists.rubyonrails.org >http://lists.rubyonrails.org/mailman/listinfo/rails