Notes posted by george
RSS feed
george -
August 24, 2011 - (>= v3.0.9)
4 thanks
george -
August 12, 2009
0 thanks
Current Database Name: Sqlite version
Get the current database name when using Sqlite:
ActiveRecord::Base.connection.instance_variable_get(:@config)[:database].split('/').last
george -
November 14, 2008
0 thanks
george -
October 1, 2008
5 thanks
Documentation for Associations
You are most likely looking for ActiveRecord::Associations::ClassMethods
george -
September 11, 2008 - (<= v2.1.0)
4 thanks
Information on 'ModelName.transaction'
If you are looking for information about:
ModelName.transaction do ... end
or
transaction do ... end
george -
September 11, 2008 - (<= v2.1.0)
4 thanks
Information on 'ModelName.transaction'
If you are looking for information about:
ModelName.transaction do ... end
or
transaction do ... end
george -
July 15, 2008
9 thanks
Required Reading
The details for using layout (such as possible values for the conditions hash) can be found in ActionController::Layout::ClassMethods.