Ryan Bates

Episode 19: Where Administration Goes


almost 5 years ago by Ryan Bates on Railscasts.
This is the first part of a three part series on building an administration system. Many developers choose to separate it completely from the public side...

Episode 18: Looping Through Flash


almost 5 years ago by Ryan Bates on Railscasts.
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...

Episode 17: HABTM Checkboxes


almost 5 years ago by Ryan Bates on Railscasts.
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...

Episode 16: Virtual Attributes


almost 5 years ago by Ryan Bates on Railscasts.
Keep your controllers clean and forms flexible by adding virtual attributes to your model. This very powerful technique allows you to create form fields...

Episode 15: Fun with Find Conditions


almost 5 years ago by Ryan Bates on Railscasts.
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...

Episode 14: Performing Calculations on Models


almost 5 years ago by Ryan Bates on Railscasts.
Did you know ActiveRecord provides class methods for performing calculations on models? You can even use these methods through associations....

Episode 13: Dangers of Model in Session


almost 5 years ago by Ryan Bates on Railscasts.
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...

Episode 12: Refactoring User Name Part 3


almost 5 years ago by Ryan Bates on Railscasts.
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...

Episode 11: Refactoring User Name Part 2


almost 5 years ago by Ryan Bates on Railscasts.
Testing and refactoring go hand in hand. Refactoring is all about improving code without changing its behavior. Testing is all about making sure you don...

Episode 10: Refactoring User Name Part 1


almost 5 years ago by Ryan Bates on Railscasts.
Learn how to clean up your code through refactoring. This episode will show you how to move code from the view into the model to remove duplication and...