Application Tutorials

Find Through Association

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
No need to pass foreign keys in find conditions, just do the find through a has_many association. View...
Find Through Association

Dynamic find_by Methods

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods. View...
Dynamic find_by Methods

Caching with Instance Variables

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
Learn a quick way to improve performance. Just store the end result of an expensive command in an instance variable! View...
Caching with Instance Variables

Learn Ruby on Rails from Scratch Week 1

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
Ruby on Rails.. by now most people have heard the hype about it. It promises more effective code, total object orientation, and true MVC architecture to say the least. As far as my own personal experience, it has been all that and more. The code is beautiful, easy to maintain, and edit. In a...
Learn Ruby on Rails from Scratch Week 1

Rails 101: Generators

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
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. View...
Rails 101: Generators

Rails 101: File Structure

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
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. View...
Rails 101: File Structure

Rails 101: Introduction

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
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. View...
Rails 101: Introduction

YAML Configuration Files

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
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. View...
YAML Configuration Files

mod_rails on Mac

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
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. View...
mod_rails on Mac

Handling SQL injection and XSS in Rails

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
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...
Handling SQL injection and XSS in Rails

Building RSS Feeds in Rails 2.0

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
Here's a quick way to build an RSS feed using some of the new features in Rails 2.0. View...
Building RSS Feeds in Rails 2.0

Nested Resources in Rails 2

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
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...
Nested Resources in Rails 2
Page 6 of 13« First...345678910...Last »