Skip to content

Instantly share code, notes, and snippets.

View tensiondriven's full-sized avatar

Jonathan Yankovich tensiondriven

View GitHub Profile
@mathias
mathias / foo_controller.rb
Created May 28, 2012 15:58
An idea for printing out available local variables and their attributes in a Rails view.
class FooController < ApplicationController
def index
@foo = Foo.find(params[:id])
@bar = Bar.find(params[:bar_id])
@locals = @foo + @bar # this line and the locals view stuff gets removed when you're done developing
end
end
1. Draw a circle on a piece of paper.
2. Think about someone in your life that you respect, perhaps thinking about your more exotic friends on facebook who you seldom see, but respect deeply.
3. Draw 4" circle on a piece of 8.5x11 paper
4. Write their name at about 2 oclick from the circle. (You'll write up to 5 peoples names around the circle total.)
5. Think about someone else in your life that you respect in a similar way.
6. Write their name around the circle.
7. Think about the values they share. Try to come up with a single value or guiding force that you think these people share, that you respect.
8. Continue thinking about people and writing them down, up to 5.
9. As soon as you know the value these people share, write it in the circle.
10. Repeat for 2 other values that you hold near.