link_to, anchors, and <a href name="link_name">

ruby needs to know where 'options' ends and 'html_options' begins... use curly braces: link_to 'link', {:anchor => 'same_page_link'}, :name => 'same_page_link'