Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# Controller
def jazz_party
@humans = Human.all[0..1]
respond_to do |format|
format.json { }
end
end
#View (jazz_party.json.jazz)
-@humans => people
:only
.name => login
:code => enhanced_name
name + "!!!"
:code => hello_world
"Hello world!"
+pets => animals
:except
.human_id
.pet_type_id
+toys
:methods
.railsize("We ","are happy ","to code ","with power of X ","and Y")
<pet_type
:only
.class_name => pet_type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment