Skip to content

Instantly share code, notes, and snippets.

@joncode
Created April 27, 2012 00:57
Show Gist options
  • Select an option

  • Save joncode/2504705 to your computer and use it in GitHub Desktop.

Select an option

Save joncode/2504705 to your computer and use it in GitHub Desktop.
Rails Routes explained
<%= link_to 'Back', @cart %>
links you back to the controller and show action for @cart
<%= link to controller: 'store', action: 'new' %>
is now
<%= link to new_store_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment