app/models/project.rb
# As the creation process is multi-page, we provide a check to see
# whether or not the object is valid for the first page, in which
# case the controller can decide to save it into the session or
# display errors.
As the creation process is multi-page, we provide a check to see
whether or not the object is valid for the first page, in which
case the controller can decide to save it into the session or
display errors.
As the creation process is multi - page we provide a check to see whether or not the object is valid for the first page in which case the controller can decide to save it into the session or display errors .
def valid_for_first_page?
    @first_page = true
    valid_so_far = self.valid?
    @first_page = false
    valid_so_far
  end
def valid_for_first_page? @first_page = true valid_so_far = self . valid? @first_page = false valid_so_far end
As the creation process is multi-page, we provide a check to see
whether or not the object is valid for the first page, in which
case the controller can decide to save it into the session or
display errors.
As the creation process is multi - page we provide a check to see whether or not the object is valid for the first page in which case the controller can decide to save it into the session or display errors .