Ed Howland
2006-Jul-24 17:02 UTC
[Rails] Why doesn''t default_url_options :anchor => ... work for render
In my action, I test to see if a particular button was clicked, if it was, I want the template to render, but to go to a particular anchor, like #company. E.g. if params[''add_company''] default_url_options :anchor => ''insurance'' end #... logic # then default render In the add.rhtml: <a name="company"> <%= text_field model, company_name %> But this doesn''t work. Nor does there seem to be a way to pass an :anchor to the render method. Does anyone know a way to do this? Thanks Ed -- Ed Howland http://greenprogrammer.blogspot.com