Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Aldo Nievas's Profile

GitHub User: alduro

Site: www.satio.com.ar

Comments by Aldo Nievas

Avatar

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.

Avatar

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

Avatar

Everything went ok but suddenly I'm having this error:

js
window.Widget =
  Models: {}
  Collections: {}
  Views: {}
  Routers: {}
  init: ->
    new Widget.Routers.Listings()
    Backbone.history.start()

$(document).ready ->
  Widget.init()

Uncaught Error: Backbone.history has already been started

what could be wrong ? I checked indentation and it seems ok.
Thanks
Aldo

Avatar

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:

.emails
= f.fields_for :emails do |builder|
%p
= 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

Avatar

where did you put nested_form.js ? it might go under vendor/assets/javascript and be required in application.js as

//= require jquery.min
//= require jquery-ui.min
//= require jquery_ujs
//= require nested_form
//= require_tree .