Displaying 1 result from an estimated 1 matches for "organisator_name".
Did you mean:
organisation_name
2006 Mar 24
1
validates... :if => Proc.new{...} does not find a method!
Hi all
I wanted to use the following validation in my model Party:
validates_presence_of :organisator_name,
:if => Proc.new{ member.organisators.empty? }
I have written the member method in the ApplicationController:
class ApplicationController < ActionController::Base
def member
session[:member]
end
end
But it does not seem to be known by the Party Model...
Any h...