search for: gender_id

Displaying 3 results from an estimated 3 matches for "gender_id".

Did you mean: sender_id
2009 Mar 02
0
Implementing conditional read-only attributes of ActiveRecord objects
...e option of specifying a condition in attr_protected, attr_readonly and possibly other attribute methods in ActiveRecord objects. Rationale (example): class User < AR:Base # User should not be able to modify fields any more once they have been verified attr_readonly :firstname, :lastname, :gender_id, :birthdate, :if => :passport_verified? # ... end or, even better yet, attr_protected with the same options, since this will allow an admin controller to directly write the attributes while the "normal" user forms will just ignore them. The ":if" option should, like in va...
2006 Aug 13
0
selected_value or select not work
I''am try using collection_select helper, but the option selected_value not work i try like this: <%= collection_select("user", "gender_id", @genders, "id", "description", {:include_blank => true, :selected_value => "2"} []''s Bruno -- Posted via http://www.ruby-forum.com/.
2006 Jun 18
10
acts_as_enumerated
Hello All, Any one using acts_as_enumerated? I need help using (I like that it caches values in memory) I am working on a dating website and there are lots of options I want to store as enumerated like Status; divorce, single, Sex: male, female Eye color; blue, brown, green.... and lots more.... But I do not wanna keep them in seperate tables, and wanna keep them all together. Anyone has a