Recent Episodes
-
19
Where Administration Goes
Part one of a three part series on making an administration system for your site that doesn't require building a whole separate set of pages.
Tags: administration
-
18
Looping Through Flash
Displaying flash messages can be a pain. This episode shows an easy way to display all of your flash messages.
Tags: views
-
17
HABTM Checkboxes
Create a list of checkboxes for easily managing a HABTM relationship.
-
16
Virtual Attributes
Keep your forms flexible by adding virtual attributes to your model. This powerful technique allows you to create form fields which may not directly relate to the database.
Tags: active-record forms
-
15
Fun With Find Conditions
You can pass objects other than strings to find conditions, but care must be taken to ensure that the correct SQL is generated.
Tags: active-record
-
14
Performing Calculations On Models
ActiveRecord provides class methods for performing calculations on models. See how in this episode.
Tags: active-record
-
13
Dangers of Model in Session
Care must be taken when storing a model in a session as it can get out of sync with the database.
Tags: controllers
-
12
Refactoring User Name Part 3
In the final part of the episodes on testing and refactoring we'll refactor our test code.
Tags: refactoring testing
-
11
Refactoring User Name Part 2
Having moved code from the view to the model in part one, we'll refactor it and write some tests to make sure it all still works as expected.
Tags: refactoring testing
-
10
Refactoring User Name Part 1
This episode will show you how to move code from the view into the model to reduce duplication and clean up the view.
Tags: refactoring
