search for: new_status_id

Displaying 1 result from an estimated 1 matches for "new_status_id".

2006 Aug 09
1
question about enforcing constraints in the model
...hrough the user interface. And I don''t want to use validates_presence_of, since I want the administrator to be able to not change the status_id of the user and still be able to save other information. I have tried the following unsuccessfully: user.rb belongs_to :status def status_id=(new_status_id) return if new_status_id.blank? or new_status_id == 0 super end def status=(new_status) return if new_status.nil? super end however, calling super in the second instance gives me the following error: NoMethodError: super: no superclass method `status='' I''ve also tried:...