Tutorial search

Ruby on Rails Tutorials
Tutorials
Stuff
Affiliates

Ruby on Rails Tutorials


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

Sort by:
Looping Through Flash
Looping Through Flash
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.
Category: Ruby on Rails tutorials > Basics - Difficulty:
HABTM Checkboxes
HABTM Checkboxes
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.
Category: Ruby on Rails tutorials - Difficulty:
Ruby on Rails - Week 4
Ruby on Rails - Week 4
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.
Category: Ruby on Rails tutorials > Basics - Difficulty:
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:
Performing Calculations on Models
Performing Calculations on Models
Did you know ActiveRecord provides class methods for performing calculations on models? You can even use these methods through associations.
Category: Ruby on Rails tutorials - Difficulty:
Refactoring User Name Part 2
Refactoring User Name Part 2
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't change the behavior while you are improving the code.
Category: Ruby on Rails tutorials > Testing - Difficulty:
Refactoring User Name Part 3
Refactoring User Name Part 3
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.
Category: Ruby on Rails tutorials > Testing - Difficulty:
Dangers of Model in Session
Dangers of Model in Session
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.
Category: Ruby on Rails tutorials - Difficulty:
Filtering Sensitive Logs
Filtering Sensitive Logs
Are you accepting sensitive user data? Passwords, credit card numbers, etc. By default, Rails stores all submitted parameters in plain text in the logs. This episode will show you how to filter this sensitive input so it doesn't show up in the log file.
Category: Ruby on Rails tutorials > Security - Difficulty:
Ruby on Rails from Scratch: Week 3
Ruby on Rails from Scratch: Week 3
We're going to talk about manipulating the structure of the project in two ways (rendering & redirecting). We'll also talk about how you add links in rails, and how to comment code.
Category: Ruby on Rails tutorials > Basics - Difficulty:
Ruby on Rails from Scratch: Week 2
Ruby on Rails from Scratch: Week 2
This week, we'll do a little bit more with getting an actual page up and running. We'll also work on adding more interactivity by embedding ruby in HTML and learning a little about variables. After that, we'll learn more about Ruby's beautiful URL structure and how to manipulate it, plus other things as well.
Category: Ruby on Rails tutorials > Basics - Difficulty:
Rails 101: Routing
Rails 101: Routing
Rails produces some pretty nice URLs. The URLs don't setup automatically though, you need to setup routes to match them to sections of your application. In this screencast you'll learn how they work, and how to set them up yourself.
Category: Ruby on Rails tutorials > Routes - 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:
Fun with Find Conditions
Fun with Find Conditions
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.
Category: Ruby on Rails tutorials - Difficulty:
Fast prototyping with Apache Derby and JRuby on Rails
Fast prototyping with Apache Derby and JRuby on Rails
The JRuby project is making Ruby faster and more scalable than ever. One advantage to running Rails on the Java Virtual Machine is that you can leverage other Java libraries, like the Apache Derby database. The blend of Derby, JRuby, and Rails allows for rapid prototyping of dynamic Web applications. Learn how to use these technologies together to prototype your next great idea.
Category: Ruby on Rails tutorials > Basics - Difficulty:
Total Tutorials in Category: 116