View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
$ rake -T time
rake time:zones:all # Displays names of all time zones recognized by the...
rake time:zones:local # Displays names of time zones recognized by the Rai...
rake time:zones:us # Displays names of US time zones recognized by the ...
$ rake time:zones:local
* UTC +10:00 *
Use before_filter to set time zone
class ApplicationController < ActionController::Base
Time.zone = current_user.time_zone if logged_in?
$ rake -T gem
rake gems # List the gems that this rails application ...
rake gems:build # Build any native extensions for unpacked gems
rake gems:install # Installs all required gems for this applic...
rake gems:unpack # Unpacks the specified gem into vendor/gems.
rake gems:unpack:dependencies # Unpacks the specified gems and its depende...
rake rails:freeze:gems # Lock this application to the current gems ...
>> quot; A string full of white spaces quot;.squish
=> quot;A string full of white spacesquot;
• Ryan Bates’ Railscasts
• Ryan Daigle’s feature introductions
• Ruby on Rails 2.1: What’s New? by Carlos Brando