前に調べたことあったけど、また調べてしまったのでメモ。
<%= link_to 'リンク', {:controller => 'hoge', :action => 'hoge_action', :id => hoge.id, :anchor => 'anchor_tag'}
これで、
http://hogehoge/~~~/hoge#anchor_tag
といった感じのアドレスが作られる。
前に調べたことあったけど、また調べてしまったのでメモ。
<%= link_to 'リンク', {:controller => 'hoge', :action => 'hoge_action', :id => hoge.id, :anchor => 'anchor_tag'}
これで、
http://hogehoge/~~~/hoge#anchor_tag
といった感じのアドレスが作られる。