Skip to content
Create a gist now

Instantly share code, notes, and snippets.

JSON Serialization in Controller
def update
p = Person.find(params[:id])
if p.update_bank_information params[:bank_information]
render :json => p.as_json
render :json => "some kind of error"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.