Created
January 20, 2014 03:30
-
-
Save themoxman/8514432 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= 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