Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Justin's Profile

GitHub User: justinthiele


Comments by Justin


For those who aren't using CoffeeScript, here is the compiled subscriptions.js file:

Great episode, btw. I'm loving Stripe so far.


I was having issues getting the add function to work properly in Rails 3 + jQuery too, but this solution from ceneon solved it for me:


Change the link_to_function to:

link_to_function(name, "add_fields(this, '#{association}', '#{escape_javascript(fields)}')" )

notice the change from \" to ' ... otherwise they would be converted to &amp, and not a javascript string delimitor.