Skip to content

Instantly share code, notes, and snippets.

@robertSahm
Forked from joncode/gist:2501101
Created April 26, 2012 17:29
Show Gist options
  • Save robertSahm/2501162 to your computer and use it in GitHub Desktop.
Save robertSahm/2501162 to your computer and use it in GitHub Desktop.
Add CSS id to link_tag
using the old argument style of controller: "#", action: "#" , must put them in a hash to avoid id confusion
<%= link_to 'STORE',{ controller: 'store', action: 'new'}, :id => "storeClick" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment