RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: pkrnjevic
Thanks for all the great RailsCasts - I'm learning a ton of stuff!
I'm using your adding/deleting field partials fairly extensively and ran into a couple of things others may find useful:
Your .gsub('\n','') removing newlines causes slight horizontal shifting of fields on inline forms. This was easily fixed by escaping rather than removing newlines using .gsub('\n','
jQuery won't recognize events from controls created this way. Apparently the solution is to use .on() (formerly .live and .delegate) though I have yet to try this.
Thanks again for all your great tutorials and keep up the good work.