Default datetime on Rails Application

Thursday, September 25th, 2008

This is how to set default datetime in my current project. And you also can format like what i done. 1. Set default format in environment.rb # Added default date/time display ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS[:default] = "%m/%d/%Y %I:%M%p" ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS[:default] = "%m/%d/%Y" 2. Define in your code >> Time.now => Thu Sep 25 01:24:30 +0800 2008 >> Date.today => Thu, 25 Sep 2008 >> ...

How to read YAML file

Monday, July 7th, 2008

This is code that i just implement into my rails code. Actually this is how to read data in YAML file and implement it into rails code. 1. Create your yaml file in config/yourfilename.yml. Example : let say we want read username and password from yaml file below. 2. How to load yaml ...

Free book in what’s new in Ruby on Rails 2.1

Monday, June 16th, 2008

Congratulations for all Brazilian Railers! And a special thanks for Carlos Brando and to Marcos Tapajós who made the book. This book contain what's new in rails 2.1. Click here to download pdf version or here to read online.....

Migration in rails 2.1

Wednesday, May 28th, 2008

Some new migration feature in rails 2.1, Migration version number was keep trak in database, that means new rails was replace 'shema_info' with a new table called 'schema migrations'.The old 'schema_info' in Rails 2.0 just save the number of latest migration that has been execute but 'schema migrations' table was created ...

Rails 2.1 Time Zone Support

Friday, May 16th, 2008

Check out here : http://mad.ly/2008/04/09/rails-21-time-zone-support-an-overview/ Credit to Geoff Buesing Awesome...New feature in Rails 2.1. Now version Rails 2.1 RC1

First notebook i buy

Wednesday, April 30th, 2008

[gallery=10] Nothing to say..but I'm so happy with my new Macbook Pro..really excited when received from our vendor because this is my first laptop i buy..heheheh. Never buy it before, just using company properties only. I'm start learn how to use short key(most important thing), try to install common software like ...

Ruby on Rails Wiki

Thursday, April 17th, 2008

http://railsapplication.com/ http://wiki.rubyonrails.org/rails http://en.wikibooks.org/wiki/Ruby_on_Rails http://wiki.netbeans.org/Ruby http://wiki.oracle.com/page/Ruby+on+Rails?t=anon