Displaying 3 results from an estimated 3 matches for "validatingbase".
2005 Jul 23
11
Validation without ActiveRecord
...followed the instructions at
http://wiki.rubyonrails.com/rails/show/HowToUseValidationsWithoutExtendingActiveRecord
But now I''m having trouble trying to create my form view. Here''s a
brief rundown of what I''ve done:
- Created a class called SearchRequest that extends ValidatingBase and
saved it in a file called search_request.rb and put it in my models
directory.
- Added a ''request'' method to my controller that instantiates
SearchRequest and calls the valid? method
- Created a view called request.rhtml and saved it into app/views/home.
Even though my Search...
2006 Mar 01
5
validations without AR - going crazy trying to find link
Hi,
in the past few months someone posted an entry on their blog about
how to do validations in non-AR classes and I cant find it any more.
Anyone have a link?
Thanks,
Trevor
--
Trevor Squires
http://somethinglearned.com
2006 May 25
0
Intermittent failure to automatically include all models
I have two models in my rails app that inherit from ValidatingBase
instead of ActiveRecord. I didn''t start having this issue until I
switched to Planet Argon, running lighttpd, but I''ve started to get
errors where one or the other models doesn''t get included and I get an
"uninitialized constant ModelName" error. The weirdest...