Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

JSON Serialization in Controller

View ddd_example1.rb
1 2 3 4 5 6 7 8
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
Something went wrong with that request. Please try again.