Notes posted by bquorning
RSS feed![Default_avatar_30](https://www.gravatar.com/avatar/f9d47b3d6001500a435163fa341f3a4d?default=http://apidock.com/images/default_avatar_30.png&size=30)
update_all and serialized attributes
If you use update_all to change an attribute marked as serialized ( using ActiveRecord::Base.serialize ), you need to call to_yaml yourself:
User.update_all({ :preferences => { :first_name => 'John', :last_name => 'Doe' }.to_yaml })
![Default_avatar_30](https://www.gravatar.com/avatar/f9d47b3d6001500a435163fa341f3a4d?default=http://apidock.com/images/default_avatar_30.png&size=30)
Redirect...
See ActiveRecord::ConnectionAdapters::TableDefinition#column for details of the options you can use.
![Default_avatar_30](https://www.gravatar.com/avatar/f9d47b3d6001500a435163fa341f3a4d?default=http://apidock.com/images/default_avatar_30.png&size=30)
See documentation for the class method
Since Rails version 2, this instance method no longer exists.
You may be looking for its namesake class method, ActiveRecord::Base.method_missing
![Default_avatar_30](https://www.gravatar.com/avatar/f9d47b3d6001500a435163fa341f3a4d?default=http://apidock.com/images/default_avatar_30.png&size=30)
![Default_avatar_30](https://www.gravatar.com/avatar/f9d47b3d6001500a435163fa341f3a4d?default=http://apidock.com/images/default_avatar_30.png&size=30)
![Default_avatar_30](https://www.gravatar.com/avatar/f9d47b3d6001500a435163fa341f3a4d?default=http://apidock.com/images/default_avatar_30.png&size=30)
:popup gotcha in IE
If your popup title contains spaces or escaped HTML characters, Internet Explorer (at least 6/7) will not pop up a new window but open the link in the existing browser window.
![Default_avatar_30](https://www.gravatar.com/avatar/f9d47b3d6001500a435163fa341f3a4d?default=http://apidock.com/images/default_avatar_30.png&size=30)
Have the check_box checked by default
To have the check box checked by default, pass either :checked => true or :checked => 'checked' in the options. See ActionView::Helpers::InstanceTag#to_check_box_tag for details.
![Default_avatar_30](https://www.gravatar.com/avatar/f9d47b3d6001500a435163fa341f3a4d?default=http://apidock.com/images/default_avatar_30.png&size=30)
No documentation here…
…but you’re probably looking for ActionController::RequestForgeryProtection::ClassMethods
![Default_avatar_30](https://www.gravatar.com/avatar/f9d47b3d6001500a435163fa341f3a4d?default=http://apidock.com/images/default_avatar_30.png&size=30)
Ruby's exception hierarchy
Ruby’s exception hierarchy, according to http://blog.nicksieger.com/articles/2006/09/06/rubys-exception-hierarchy:
NoMemoryError ScriptError LoadError NotImplementedError SyntaxError SignalException Interrupt StandardError ArgumentError IOError EOFError IndexError LocalJumpError NameError NoMethodError RangeError FloatDomainError RegexpError RuntimeError SecurityError SystemCallError SystemStackError ThreadError TypeError ZeroDivisionError SystemExit fatal