Ruby on Rails Refactoring Tutorials


We hope that you will enjoy our Ruby on Rails Refactoring tutorials. Feel free to contact us if you would like to be a tutorial hero and contribute your own Ruby on Rails Refactoring tutorials to our site. Thank you !

Sort by:
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 1
Refactoring User Name Part 1
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 simplify the view.
Category: Ruby on Rails tutorials > Refactoring - Difficulty:
Layouts and content_for
Layouts and content_for
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:
Move Find into Model
Move Find into Model
Move a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association.
Category: Ruby on Rails tutorials > Refactoring - Difficulty:
Total Tutorials in Category: 4