Skip to content

Instantly share code, notes, and snippets.

@dannymcc
Created October 26, 2012 18:32
Show Gist options
  • Select an option

  • Save dannymcc/3960560 to your computer and use it in GitHub Desktop.

Select an option

Save dannymcc/3960560 to your computer and use it in GitHub Desktop.
Activities Controller
def deploy_receive
@activity = Activity.new
if @activity.save
render json: @activity
else
@activity = "error"
render json: @activity
end
end
match '/api/activity/new' => 'activity#deploy_receive', :via => [:post]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment