1

I'm trying to figure out how to make this work. Here is my code, which is not working right now:

  respond_with(@addresses) do |format|
    format.json {render :json=>@addresses, :layout=>false}
  end
picardo
  • 24,530
  • 33
  • 104
  • 151

1 Answers1

0

The :layout parameter shouldn't be necessary when you're rendering json, xml, etc.

Dylan Markow
  • 123,080
  • 26
  • 284
  • 201