Anonymous Scopes
Category: Web Development > Ruby On Rails
Posted: 05 Jun 08
The scoped method allows you to generate named scopes on the fly. In this episode I show how to use anonymous scopes to improve the conditional logic which was used in the previous episode on advanced search form.
|
|
Advanced Search Form
Category: Web Development > Ruby On Rails
Posted: 05 Jun 08
If you need to create an advanced search with a lot of fields, it may not be ideal to use a GET request as I showed in episode 37. In this episode I will show you how to handle this by creating a Search resource
|
|
Tracking Attribute Changes
Category: Web Development > Ruby On Rails
Posted: 05 Jun 08
Rails 2.1 keeps track of the changes you make to a model's attributes. It also allows you to see what the previous value was. But watch out for the gotcha! See this episode for details.
|
|
|
|
|
|