Erik Petersen

Results comments of Erik Petersen

Looks like at some point Rails switched from using "#{options[:as]_new" to "new_#{options[:as]". https://github.com/ewpeters/client_side_validations/commit/ea378084e31dddab9e5267a675e88daa9419f601

https://github.com/jejacks0n/mercury/pull/95 I guess this is only a problem with specific versions of Rails

I opted to go with respond_to and put the object in a render :json block, that way you can be more explicit about the structure of the json object getting...