Skip to content

Instantly share code, notes, and snippets.

@cernalpanic
Created March 26, 2013 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cernalpanic/5247569 to your computer and use it in GitHub Desktop.
Save cernalpanic/5247569 to your computer and use it in GitHub Desktop.
This is in my Show Session Dump debug. How do I access that "message"? I'm trying to use it for a :notice in my controller.
flash: #<ActionDispatch::Flash::FlashHash:0x007fe4d2c275e0 @used=#<Set: {}>, @closed=false, @flashes={:notice=>#<HTTParty::Response:0x7fe4d208b768 parsed_response={"result"=>2, "message"=>"!!!!!!!!!!!!!!THIS IS WHAT I WANT TO GET!!!!!!!!!!"}, @response=#<Net::HTTPOK 200 OK readbody=true>, @headers={"date"=>["Tue, 26 Mar 2013 17:51:00 GMT"], "server"=>["Apache/2.2.3 (CentOS)"], "x-powered-by"=>["PHP/5.3.3"], "cache-control"=>["no-cache"], "access-control-allow-origin"=>["http://205.186.187.224"], "content-length"=>["73"], "connection"=>["close"], "content-type"=>["application/json"]}>}, @now=nil>
return_to: "http://0.0.0.0:3000/posts"
session_id: "63401b3f5acce1dd49acda048a9c58fe"
user_return_to: "/posts/36"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment