Ruby on Rails Tutorials



Featured Tutorial
Feature your own tutorial here! Find out more.
Rails 101: Generators
Submitted by ThinkRefresh » So you're just about to crack on and dive into that code, but wait, you don't even need to do that! Rails comes with generators for basic functionality so you can get going as quickly as possible.
Rating: 4.0/5 | 419 clicks | 0 comments | 0 saves | share | report
Rails 101: File Structure
Submitted by ThinkRefresh » 2nd in the Rails 101 series. This screencast deals with explaining the hierarchy of files created by Rails, as it can be daunting to begin with.
Rating: 4.5/5 | 210 clicks | 0 comments | 0 saves | share | report
Rails 101: Introduction
Submitted by ThinkRefresh » Wanting to learn Rails from the very basics at your own pace, with screencasts showing examples? This should suit you nicely. First of a series.
Rating: 4.0/5 | 442 clicks | 0 comments | 0 saves | share | report
YAML Configuration Files
Submitted by ThinkRefresh » Loading in a configuration file can be really handy when you have a few settings that might change in the future of your application, such as contact email addresses or the strength of a spam filter.
Rating: 4.0/5 | 119 clicks | 0 comments | 0 saves | share | report
mod_rails on Mac
Submitted by ThinkRefresh » If you're on a Mac you're lucky enough to already have Apache setup for you, and even better, on Leopard they even set you up with Rails too. So how about setting up mod_rails? It only takes a few minutes.
Rating: 4.5/5 | 127 clicks | 0 comments | 0 saves | share | report
Handling SQL injection and XSS in Rails
Submitted by Zach Holman » The unfortunate part about learning a new language or technology is that there's typically little focus on security matters. Rails gives you a lot of time-saving helpers and methods, but you still need to understand where your app might be vulnerable. This is a quick overview of protecting your code against SQL injection attacks and cross-site scripting exploits.
Rating: 4.5/5 | 624 clicks | 0 comments | 0 saves | share | report
Building RSS Feeds in Rails 2.0
Submitted by RailsJitsu » Here's a quick way to build an RSS feed using some of the new features in Rails 2.0.
Rating: 4.0/5 | 2,358 clicks | 0 comments | 2 saves | share | report
Nested Resources in Rails 2
Submitted by Adam @ Heroku » Nested resources were introduced in Rails 1.2 and are touted as the Right Way to do REST with parent-child model associations. If your app has a url that reads something like /employees?company_id=1, a switch to nested resources would cause it to read /companies/1/employees. Here's a detailed guide to developing with these new changes in mind.
Rating: 5.0/5 | 2,534 clicks | 0 comments | 2 saves | share | report
How to set a character limit for a Ruby on Rails RSS feeds
Submitted by bigimaginations » I was making a RSS feed the other day and wanted to limit the number of characters in my description. Here is how I did it.
Rating: 4.0/5 | 3,035 clicks | 1 comment | 0 saves | share | report
Debug Your Rails App With ruby-debug
Submitted by SitePoint » In this article we'll look at an alternative debugging tool for debugging Rails applications (or any Ruby script, for that matter) while still remaining up-to-date with the latest version of the Ruby interpreter. This tool is even slated to be bundled with future releases of Rails.
Rating: 4.0/5 | 3,563 clicks | 0 comments | 0 saves | share | report