22.09.2013 Views

Ruby on rails 101 - Peter Marklund's Home

Ruby on rails 101 - Peter Marklund's Home

Ruby on rails 101 - Peter Marklund's Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Partials<br />

• Partials are templates that render a part of a page,<br />

such as a header or footer, or a menu, or a listing of<br />

articles<br />

• Partials help promote reuse of page elements<br />

• Partials work just like page templates (views) and run<br />

in the same envir<strong>on</strong>ment. They also live in the same<br />

directory as page templates.<br />

• The filenames of partials always start with an<br />

underscore.<br />

133

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!