Skip to content

Instantly share code, notes, and snippets.

@themoxman
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save themoxman/9085994 to your computer and use it in GitHub Desktop.

Select an option

Save themoxman/9085994 to your computer and use it in GitHub Desktop.
= form_tag({ action: 'revise', controller: 'search' }, method: 'get') do
  = hidden_field_tag 'tag_list', @tag_ids
  = submit_tag 'Revise Search', class: 'button'

These do the same thing. Pretty interesting that I can just pass the search query in the link_to url (@tag_ids).

= link_to 'Revise Search', collection_revise_search_path(@collection, @note, tag_list: @tag_ids)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment