Tutorial search

Tutorials
Stuff
Affiliates

Cool Stuff




The fastest way to master the basics of Adobe Photoshop

Click here to find out how

Photoshop Templates


Featured Photoshop templates - professional ready to use designs for your next project.

View all templates

Layouts and content_for - Ruby on Rails tutorial


If you want to change something in the layout on a per-template basis, content_for is your answer! This allows templates to specify view code that can be placed anywhere in a layout.
Category: Ruby on Rails tutorials > Refactoring - Difficulty:


More cool Ruby on Rails tutorials:



Refactoring on Rails: Multiple Scopes in Controller
Refactoring on Rails: Multiple Scopes in Controller
Introduction to a couple of refactoring methods for Ruby on Rails.
Category: Ruby on Rails tutorials > Basics - Difficulty:
Ruby on Rails 2.1 tutorial
Ruby on Rails 2.1 tutorial
I have put all the basic things in place and you will find it a working tutorial for Ruby on Rails 2.1.
Category: Ruby on Rails tutorials > Database - Difficulty:
Virtual Attributes
Virtual Attributes
Keep your controllers clean and forms flexible by adding virtual attributes to your model. This very powerful technique allows you to create form fields which may not directly relate to the database.
Category: Ruby on Rails tutorials > Refactoring - Difficulty:
Refactoring User Name Part 3
Refactoring User Name Part 3
In the final part of this series you will see how to refactor your tests. Keeping tests clean is important because it will make testing easier to do in the future.
Category: Ruby on Rails tutorials > Testing - Difficulty:
Nested Resources in Rails 2
Nested Resources in Rails 2
Nested resources were introduced in Rails 1.2 and are touted as the Right Way to do REST with parent-child model associations. If your app has a url that reads something like /employees?company_id=1, a switch to nested resources would cause it to read /companies/1/employees. Here's a detailed guide to developing with these new changes in mind.
Category: Ruby on Rails tutorials > Routes - Difficulty: