Skip to content

Commit

Permalink
Workaround for acts-as-taggable-on not supporting Rails 4.2 decently.
Browse files Browse the repository at this point in the history
  • Loading branch information
eremite committed Apr 7, 2015
1 parent 192eec9 commit bff2fec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/entries/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
.form-group
= f.label :entry_tag_list, class: 'control-label col-md-2'
.col-md-10
= f.text_field :entry_tag_list, class: 'form-control'
= f.text_field :entry_tag_list, :value => f.object.entry_tag_list.to_s, class: 'form-control'
.form-group
.col-md-offset-2.col-md-10
= hidden_field_tag :redirect_to, request.referrer || entries_path
Expand Down
2 changes: 1 addition & 1 deletion app/views/inventory_items/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
.form-group
= f.label :inventory_item_tag_list, class: 'control-label col-md-2'
.col-md-10
= f.text_field :inventory_item_tag_list, class: 'form-control'
= f.text_field :inventory_item_tag_list, value: f.object.inventory_item_tag_list.to_s, class: 'form-control'
.form-group
.col-md-offset-2.col-md-10
%button.btn.btn-primary{ type: 'submit'} Save
Expand Down
2 changes: 1 addition & 1 deletion app/views/photos/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
%p
- Photo.photo_tag_counts.order('taggings_count DESC').limit(10).where.not(id: f.object.photo_tags.pluck(:id)).each do |tag|
%span.label.label-default.insert-into-photo-tag-list{ style: 'cursor: pointer' }= tag.name
= f.text_field :photo_tag_list, class: 'form-control'
= f.text_field :photo_tag_list, :value => f.object.photo_tag_list.to_s, class: 'form-control'
.form-group
.col-md-offset-2.col-md-10
%button.btn.btn-primary{ type: 'submit'} Save
Expand Down
2 changes: 1 addition & 1 deletion app/views/posts/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.form-group
= f.label :post_tag_list, class: 'control-label col-md-2'
.col-md-10
= f.text_field :post_tag_list, class: 'form-control'
= f.text_field :post_tag_list, value: f.object.post_tag_list.to_s, class: 'form-control'
.form-group
.col-md-offset-2.col-md-10
%button.btn.btn-primary{ type: 'submit', tabindex: 3} Save
Expand Down

0 comments on commit bff2fec

Please sign in to comment.