Rails relevant Ruby

by Dave on May 18th, 2010
stylesheet_link_tag 'blueprint/screen', :media => 'screen'

Blocks can be more than one line, and often are. In Rails Tutorial we’ll follow the common convention of using curly braces only for short one-line blocks and the do..end syntax for longer one-liners and for multi-line blocks.

To inspect an object use the object.inspect method. or p object for short.

From → General

No comments yet

Leave a Reply

You must be logged in to post a comment.