Categories
- Active Record
- Active Resource
- Active Support
- Administration
- Ajax
- APIs
- Authentication
- Authorization
- Background Jobs
- Caching
- Code Walkthrough
- Controllers
- Debugging
- Deployment
- eCommerce
- Forms
- Mailing
- Models
- Performance
- Plugins
- Production
- Rack
- Rails 2.0
- Rails 2.1
- Rails 2.2
- Rails 2.3
- Rails 3.0
- Rails 3.1
- Rails 3.2
- Rails 4.0
- Refactoring
- Routing
- Search
- Security
- Testing
- Tools
- Views
Applied Filters:
Active Support x
Time Zones (revised)
Active Support makes it easy to work with time zones. Learn how to add a Time Zone select field to a user form and watch out for the gotchas.
(7 minutes)
Rails 2.3 Extras
This episode finishes up this series on Rails 2.3. Here you will learn about several smaller additions in 2.3.
(9 minutes)
Caching in Rails 2.1
Rails 2.1 brings some new caching features which makes it very easy to cache any values including models. See how in this episode.
(8 minutes)
with_options
Several methods in rails take a hash of options as the last argument. If you are passing the same options to several methods, you can remove this duplication by using with_options. Learn all about it in this episode.
(3 minutes)
Formatting Time
Learn how to use the trusty strftime method to format a time, and see how Rails allows you to save this format for later use.
(5 minutes)
group_by Month
Learn how to use the very useful group_by method to group an array by anything you want! In this episode I group an array of tasks by month then sort it properly.
(5 minutes)
in_groups_of
Have you ever wanted to visually line up items in rows and columns? The in_groups_of method makes this a cinch. Just watch out for the gotcha.
(4 minutes)
Shortcut Blocks with Symbol to_proc
It may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily.
(3 minutes)