Displaying 1 result from an estimated 1 matches for "step_process".
Did you mean:
stop_process
2006 Jan 14
0
if condition on validates_presence_of is not working
class Event < ActiveRecord::Base
attr_accessor :step_processing
validates_presence_of :name,:description , :if => (:step_processing ==
4)
end
class TestController < ApplicationController
def bar
@event = Event.new
@event.step_processing = 4
@event.name = ''foo''
@event.save
end
end
In the above code :step_processing a no...