Skip to content

Instantly share code, notes, and snippets.

@dannymcc
Created October 26, 2012 19:44
Show Gist options
  • Save dannymcc/3961011 to your computer and use it in GitHub Desktop.
Save dannymcc/3961011 to your computer and use it in GitHub Desktop.
Activity.create(
hash = JSON.parse(params[:payload])
:action => "deployed the intranet",
:details => params["identifier"],
:user_id => "1",
)
@adamcooke
Copy link

Not quite. More like this:

deploy_payload = JSON.parse(params[:payload])
Activity.create(:action => 'deployed the intranet', :details => deploy_payload['identifier'], :user_id => '1')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment