Notes posted by Ajedi32
RSS feed
Difference between fullpath
From what I’ve seen, it looks like the difference between this and #fullpath is that this method doesn’t include parameters that weren’t in the original url (i.e. parameters that were sent via POST instead of GET).

The purpose of this method
This method keeps track of whether a hidden id field needs to be created when the form builder is generating fields for a nested model. It gets set to true by #hidden_field when that method is used to create a field named ‘id’.
Here’s an example of what this can be useful for: http://railsforum.com/viewtopic.php?id=39640

Use sqlite3, not sqlite
Note that typically if you want to connect to an SQLite database the adapter would be “sqlite3”; not “sqlite” as depicted in the documentation above. Just using the term “sqlite” might result in the error message: “database configuration specifies nonexistent sqlite adapter”

Return value:
The result of this method is a hash of the following form:
{"table_field"=>"table value", "another_field" => 15, ...}
For example:
{"user_id"=>21}

ActiveModel::MassAssignmentSecurity::Error
Note that in the example shown in the documentation, `user.assign_attributes({ :name => ‘Josh’, :is_admin => true })` would raise a `ActiveModel::MassAssignmentSecurity::Error` and would not actually update user.name, contrary to what the example seems to demonstrate.

Rails Guides
There is an excellent guide on the use of this method located here:
http://guides.rubyonrails.org/active_record_querying.html#conditions