search for: status_valu

Displaying 2 results from an estimated 2 matches for "status_valu".

Did you mean: status_value
2013 Mar 26
0
nested forms: use validate :some_method works in update mode only
...Here is the model: #timesheet.rb class Timesheet < ActiveRecord::Base attr_accessible :status, :user_id, :start_date, :end_date, :activities_attributes SUBMITTED = ''Submitted'' APPROUVED = ''Approuved'' REJECTED = ''Rejected'' STATUS_VALUES = [SUBMITTED, APPROUVED, REJECTED] belongs_to :user has_many :activities, dependent: :destroy, inverse_of: :timesheet has_many :time_entries, through: :activities accepts_nested_attributes_for :activities, allow_destroy: true validates :user_id, presence: true validates :status, pr...
2012 Mar 08
18
some fixes, improvements, and new features (EPO and DYING) for NUT
Here are a series of my recent changes to NUT. The first few in the set are primarily little fixes and improvements. In among those are a few for .gitignore files which of course you can ignore for SVN, and there's one for a commit to a generated file which of course should not be tracked in any VCS. Then there are a couple or three to do with generating the header files used by