How would you like to MASTER graphic design by next week?
Click here to find out how
Featured Photoshop templates - professional ready to use designs for your next project
View all templates
Ruby on Rails Tutorials
Creating Ruby server in 7 Lines of code - Ruby on Rails tutorial
Creating Ruby server in 7 Lines of code #ruby #rails #code #server
Category: Ruby on Rails tutorials - Difficulty:
More cool Ruby on Rails tutorials:
Block Helper Methods
While normal helper methods are great, your views can look a lot neater if they make use of blocks.
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.
eRuby: Using Ruby PostgreSQL and MySQL on Windows
If you are a Windows user then listen up. There are solutions for Ruby and MySQL on Windows. Roderick Von domburg has a project for this and the releases along with excellent instructions are available from his site. Great stuff! He even shows you how to compile your own connection dll on Windows. His work was so good it was included in Instant Rails
A complete quick reference guide for Rails Developers
A complete quick reference guide for Rails Developers. Listing all the important functions concepts at one page.
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.