Tutorial search
Ruby on Rails Tutorials
Tutorials
Stuff
Affiliates
Photoshop Templates
Featured Photoshop templates - professional ready to use designs for your next project.
View all templates
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 !
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.

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: 


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.

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.

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: 


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.

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.

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: 


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.

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.

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.

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.

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.

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: 


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.
Total Tutorials in Category: 116



