Ruby on Rails Tutorials

How to install the Facebooker plugin in Rails

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by ashu
Due to a bug in the code, installing the Facebooker plugin in Rails requires an extra step. View...
How to install the Facebooker plugin in Rails

Looping Through Flash

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by ashu
Displaying flash messages in the layout can be a pain at times. In this episode you will learn an easy way to display any kind of flash message by looping through the hash. View...
Looping Through Flash

HABTM Checkboxes

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by ashu
It is often asked: how do I create a list of checkboxes for managing a HABTM association? Ask no more because this episode will show you how to do exactly that. View...
HABTM Checkboxes

Virtual Attributes

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by ashu
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. View...
Virtual Attributes

Fun with Find Conditions

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by ashu
You can pass more than simple strings to find conditions. Arrays, ranges, and nil values can be passed as well. In this episode you will see the tricks involved with passing these odd objects to find conditions. View...
Fun with Find Conditions

Ruby on Rails – Week 4

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by ashu
This week we're going to talk about ruby syntax. After this tutorial, I believe that you'll have a much better understanding of the framework and feel much more comfortable doing things by yourself. View...
Ruby on Rails – Week 4

Dangers of Model in Session

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by ashu
Be careful when storing a model in a session. It will behave differently than you expect and can easily get out of sync with the database. Instead of storing the model directly in the session, store the id to the model and use that to fetch it from the database. View...
Dangers of Model in Session

Performing Calculations on Models

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by ashu
Did you know ActiveRecord provides class methods for performing calculations on models? You can even use these methods through associations. View...
Performing Calculations on Models

Refactoring User Name Part 3

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by ashu
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. View...
Refactoring User Name Part 3
Page 1 of 71234567
Web Analytics