Skip to content

Instantly share code, notes, and snippets.

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