Displaying 3 results from an estimated 3 matches for "angilly".
Did you mean:
anally
2007 Sep 15
3
check_box_tag always checked
#check_box and #check_box_tag are going to be the end of me. Why is
this always checked?
<% checked = @reservation.selected ? ''checked'' : nil %>
<td><%= check_box_tag("reservation[" + @reservation.id.to_s +
"][selected]", ''checked'', :checked => checked) %></td>
2007 Oct 12
6
abstract_class... what exactly does it do
Hi,
Does anyone know much about abstract_class? Does it actually prevent
instances of the class from being created? Does it disable certain
methods? I already know what it''s for, but I want to know what setting
self.abstract_class=true actually does.
The reason I ask is that I want to use it for a slightly unorthodox
purpose. I want a class who''s only attributes are its
2008 Jul 10
0
User.protected_attributes returning empty Set instead of nil -- causing activerecord/lib/base:2307 to raise
I have a model that uses attr_accessible, and in my tests I get this:
RuntimeError (Declare either attr_protected or attr_accessible for
User, but not both.):
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
base.rb:2307:in `remove_attributes_protected_from_mass_assignment''
/var/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/
base.rb:2114:in