Before Nov 2007
Use to_xml. Options are:
:except: exclude these attributes
:include: include the specified models
:dasherize: if true, convert use dashes for spaces
file_column pluginfile_column/lib/test_case.rb
setup_fixture_files
teardown_fixture_files
Override the method method_missing(methodname, *args) to handle missing actions (i.e. error 404)
def method_missing(methodname, *args)
@methodname = methodname
@args = args
render :action => "404", :status => 404
end
More info at:
before_filter :some_method to do something before an action, such as requiring authentication.
skip_before_filter :some_method if you want a subclass to skip it's parent class's before_filters.
Use DarwinPorts (renamed MacPorts), which will install necessary software in /opt. (details)
/opt/local/var/run/mysql5/mysqld.sock in database.yml.
The CSV::Reader class in Ruby is slow at parsing CSV files. Use FasterCSV (details).
Use filter_parameter_logging "name_of_parameter". (details).
request.protocol + request.host_with_port
session.session_id