Application Tutorials

Performing Calculations on Models

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
Did you know ActiveRecord provides class methods for performing calculations on models? You can even use these methods through associations. View...
Performing Calculations on Models

Refactoring User Name Part 3

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
In the final part of this series you will see how to refactor your tests. Keeping tests clean is important because it will make testing easier to do in the future. View...
Refactoring User Name Part 3

Refactoring User Name Part 2

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
Testing and refactoring go hand in hand. Refactoring is all about improving code without changing its behavior. Testing is all about making sure you don't change the behavior while you are improving the code. View...
Refactoring User Name Part 2

Refactoring User Name Part 1

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
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. View...
Refactoring User Name Part 1

Filtering Sensitive Logs

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

Ruby on Rails from Scratch: Week 3

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
We're going to talk about manipulating the structure of the project in two ways (rendering & redirecting). We'll also talk about how you add links in rails, and how to comment code. View...
Ruby on Rails from Scratch: Week 3

Ruby on Rails from Scratch: Week 2

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
This week, we'll do a little bit more with getting an actual page up and running. We'll also work on adding more interactivity by embedding ruby in HTML and learning a little about variables. After that, we'll learn more about Ruby's beautiful URL structure and how to manipulate it, plus...
Ruby on Rails from Scratch: Week 2

Rails 101: Routing

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
Rails produces some pretty nice URLs. The URLs don't setup automatically though, you need to setup routes to match them to sections of your application. In this screencast you'll learn how they work, and how to set them up yourself. View...
Rails 101: Routing

Layouts and content_for

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
If you want to change something in the layout on a per-template basis, content_for is your answer! This allows templates to specify view code that can be placed anywhere in a layout. View...
Layouts and content_for

Layouts and content_for

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
Everything you wanted to know about layouts: global layouts, controller layouts, shared layouts, dynamic layouts and action layouts. Yes, there really are that many ways to specify a layout. View...
Layouts and content_for

Shortcut Blocks with Symbol to_proc

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
It may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily.. View...
Shortcut Blocks with Symbol to_proc

Move Find into Model

Posted under Ruby on Rails Tutorials on Tuesday, 9 June 2009 by
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. View...
Move Find into Model
Page 5 of 13« First...23456789...Last »