Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

johnnypez's latest activity

Tuesday, October 19 2010
5841 Unexpected behavior of render :json => obj was updated in Ruby on Rails
  • johnnypez
    johnnypez commented at 5:50 PM

    Hi,
    sorry I left that out, long day.

    The object is completely basic subclass of Exception

    class ApiException < Exception
      
      def to_json
        return { :error =...
  • johnnypez
    johnnypez created the ticket at 5:19 PM

    Hi,
    I hit this unexpected behaviour I call render :json => obj in my controller and also using respond_with obj where JSON output is expected.
    I have tracked th...