Tutorial search

Tutorials
Stuff
Affiliates

Cool Stuff




The fastest way to master the basics of Adobe Photoshop

Click here to find out how

Photoshop Templates


Featured Photoshop templates - professional ready to use designs for your next project.

View all templates

Refactoring User Name Part 1 - Ruby on Rails tutorial


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:


More cool Ruby on Rails tutorials:



Rails 101: Generators
Rails 101: Generators
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.
Category: Ruby on Rails tutorials > Basics - Difficulty:
Making a blog app (with comments) in Rails
Making a blog app (with comments) in Rails
I'm a ruby and rails newcomer, and for my wordpress blog "nubyonrails" decided to work through David Heinemeier Hansson's famous "blog site" Rails demo movie, from the FISL 6.0 conference in Brazil, 2005. It's written for fellow ruby/rails newcomers but covers quite a lot of ground.
Category: Ruby on Rails tutorials > Basics - Difficulty:
Nested Resources in Rails 2
Nested Resources in Rails 2
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.
Category: Ruby on Rails tutorials > Routes - 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.
Category: Ruby on Rails tutorials > Refactoring - 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: