Hi Frederick!

> I think you can still do
> validate :something, :if => :something+else?

I hope it could be used multiple time with different methods

> >     ruby> x = Person.newq
> >           NoMethodError: undefined method `newq' for Person:Class
> 
> Not sure what this is showing - you haven't attempted to define newq
> anywhere

Sorry It was my typing mistake.

> > test 2:
> > ....
> I ran this in irb and this worked fine.
> 

But it has not work fine, I again tested it now.
my ruby version
   ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
installed using Ruby Version Manager.

For all I got why this is happening.

Great thanks for all explanations.

-- 
Regards,
-sharad

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to