GitHub User: alduro
Thanks for sharing this ! It turns out there is a transition between the paginator pages line is being shown and removed for adding next page results. And my client complained a lot for this.
I figured it out the issue. I deleted public/assets directory generated by
RAILS_ENV=production bundle exec rake assets:precompile
for deploying assets to heroku
Everything went ok but suddenly I'm having this error:
Uncaught Error: Backbone.history has already been started
what could be wrong ? I checked indentation and it seems ok.
How can I retain a select value after error validation ? :contact_purpose value is gone after validation failed. I have this code into a form:
= f.fields_for :emails do |builder|
= builder.label :email, "New Contact Email:"
= builder.text_field :email
= builder.select :contact_purpose, options_for_select([['Select', 0], ['Home', 'Home'], ['Work', 'Work']])
= builder.link_to_remove "Remove"
%p= f.link_to_add "Add an Email", :emails
//= require jquery.min
//= require jquery-ui.min
//= require jquery_ujs
//= require nested_form
//= require_tree .