search for: modelvalid

Displaying 3 results from an estimated 3 matches for "modelvalid".

Did you mean: mode_valid
2009 Jun 22
4
modal validation not works
...can modify his infomation. but only 12 fields he can able to modify. so in my controller if params[ :profileinfo ][:first_name] @profileinfo.update_attribute(:first_name,params[ :profileinfo ][:first_name]) end the above simply saves what i enter into the field.why it doesnot consider the modelvalidation. any guess. Thanks -- Posted via http://www.ruby-forum.com/.
2010 Mar 01
0
stubbing CAPTCHA to pass Cucumber scenario
..., but stumbled in CAPTCHA validation on user registration page. As I get I should stub CAPTCHA validation method. I guess I should implement stubbing Given step or include stubbing code in Before filter? I use validates_captcha gem, thus instance method to stub is module ValidatesCaptcha module ModelValidation module InstanceMethods private def validate_captcha # doing nothing means passing end end end end I''ve read these posts http://vinsol.com/blog/2006/07/21/rails-captcha-and-testing-using-mock-objects/ http://www.brynary.com/2009/2/3/cucumber-step-de...
2007 May 31
28
Another attempt for a succinct model validation DSL
On 5/28/07, David Chelimsky <dchelimsky at gmail.com> wrote: > The behaviour you''re trying to describe is that the User should > require that passwords bear certain qualities - in this case a length > between 5 and 40. So you need to ask yourself how the User should > behave when this requirement is violated, and then specify that it > behaves that way. > >