Skip to content

Instantly share code, notes, and snippets.

@themoxman
Created January 20, 2014 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themoxman/8514432 to your computer and use it in GitHub Desktop.
Save themoxman/8514432 to your computer and use it in GitHub Desktop.
= link_to "Tags", tags_path
= link_to "Search", new_search_path
= simple_form_for @note do |f|
= f.input :title, label: false, placeholder: "note title"
= f.input :content, label: false, placeholder: "note content"
#tags
- @tag_list.each do |tag|
= button_tag "#{tag.name}", data: tag.id
#new_tags
= text_field_tag 'new_tags', nil, placeholder: "Add additional comma separated tags here"
= hidden_field_tag 'tag_list'
%br
= f.button :submit, "Add Note"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment