Check out the show notes for an update to the code. Thank you /u/danshep for pointing this out. https://www.reddit.com/r/ruby/...
You are absolutely correct. In the tutorials, I do like indicating self` as it is more clear where we are calling the methods from instead of a separate helper or extension outside of the model we're working with. For anyone who wants to see the available options for ActiveRecord::Dirty be sure to read up on them here http://api.rubyonrails.org/cla....
I hope to get it recorded this weekend.
FYI, if anyone is having issues with the Progress Bar showing the status, you will need to change the detail to below in the progress section.
$(document).on "upload:progress", "form", (e) ->
detail= e.originalEvent.detail.progress
Really cool about
dom_id
I wasn't aware of it!
I do plan on doing an episode on client side validations so the forms can be checked prior to submitting. Ideally, something that would look at the model's validations and generate the necessary javascript.