Tutorial search
Tutorials
Stuff
Affiliates
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

Refactoring User Name Part 1 tutorial description
| Added on | 16.11.2008 |
| Total clicks | 13 |
| Tutorial Rating | 0 |
| Tutorial Difficulty | 0 |
Refactoring User Name Part 1
More cool Ruby on Rails tutorials:

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.

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.

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.

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.

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.




