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
else
render :json => "some kind of error"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment