So, I have another one problem. How can I do a method in controller, 
that the same ".valid_with_captcha?"

When I puts to application_controller.rb

> def valid_with_captcha?
>  if self.valid? and captcha_valid? then true else false end
> end

And, supposably, in users_controller.rb

> def update
> if @user.valid_with_captcha?
>  save_code
> end
> end

When I'm updating, I see this:

> undefined method `valid_with_captcha?' for #<User:0x00000003f8e6b8>

What's wrong?

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to