JGUIMONT>COM

Words of Julien Guimont

1 note

andicrook asked: Hello Julien

Thank you for responding to my question on stackoverflow

http://stackoverflow.com/questions/5964537/backbone-js-and-handling-errors-messages-from-rails

I wonder if you could please explain how to implement a custom Responder, for example where should such code live in a Rails project?

Thank you again

Andrew

Responders are new in Rails 3. You have to defined them in your project. I created a lib/js_responder.rb and used the code I put in StackOverflow. Your responder module must be itself in the Responders Rails module.

  1. juggy posted this