How to validate an outside form field in a Ruby on Rails form (such as a captcha)?

What you can do is add a virtual attribute. Check out this screencast from RailsCasts Basically you want to add an attribute to your class. Because you don't have to perform any logic with it you can just use the built Ruby method form instance variables class Foo Add(:humanproof, "is not the right answer") if humanproof!

= 4 end This adds an attribute to your class that is not saved to the database and is attached to the object for the duration of the request.

What you can do is add a virtual attribute. Check out this screencast from RailsCasts. Basically you want to add an attribute to your class.

Because you don't have to perform any logic with it you can just use the built Ruby method form instance variables. Class Foo = 4 end This adds an attribute to your class that is not saved to the database and is attached to the object for the duration of the request.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions