Subscribe
Tutorial search

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 tutorial to our site. Thank you !

Sort by:
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.
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.
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.
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.
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.
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.
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.
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.
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.
Difficulty:
All About Layouts
All About Layouts
Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout.
Difficulty:
Shortcut Blocks with Symbol to_proc
Shortcut Blocks with Symbol to_proc
It may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily.
Difficulty:
Tutorial : Basics on Ruby on Rails 2 Model, Controller and Views and Routing
Tutorial : Basics on Ruby on Rails 2 Model, Controller and Views and Routing
This tutorial explores the MVC concept of Ruby on Rails i.e Model,View and Controller
Difficulty:
Easy Ruby development, the Eclipse way
Easy Ruby development, the Eclipse way
Explore the additional functions and improvements that Aptana RadRails brings to the Ruby developer. Using Eclipse's ubiquitous and common platform for development--as well as a tool that lets you easily work with other languages--see how you can increase your efficiency by focusing on a language instead of learning a new IDE each time you change languages.
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.
Difficulty:
Dynamic find_by Methods
Dynamic find_by Methods
Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods.
Difficulty:
Total Tutorials in Category: 214