search for: active_record_base_without_t

Displaying 5 results from an estimated 5 matches for "active_record_base_without_t".

2006 Nov 01
3
active_record_base_without_table plugin - Easily use models without tables
Hi all, Here''s another little plugin I wrote to use AR models without tables. It''s dead simple, just extend from ActiveRecord::BaseWithoutTable instead of ActiveRecord::Base: class Contact < ActiveRecord::BaseWithoutTable column :name, :string column :email_address, :string column :message, :text validates_presence_of :name, :email_address, :message end
2006 Aug 16
3
Validate your forms with a table-less model
Ive followed this example of how to validate a form with a tableless model: http://rails.techno-weenie.net/tip/2005/11/19/validate_your_forms_with_a_table_less_model Ive got this example working but when validation fails the failed boxes are not highlighted in red. At the moment i have a contact details form and want to validate the information entered by the user but this will just result
2008 Jan 15
0
Problem with ruby-debug and rspec
...in the ''spec'', or spec helper methods i''m loading. Basically any command which should normally work like p, or pp, gets passed through to a method_missing. I''m kind of stumped on this one... any ideas? -rabble I''ve got the following plugins installed: active_record_base_without_table annotate_models asset_packager exception_logger fixture_replacement query_reviewer rspec rspec_on_rails spatial_adapter svn white_list will_paginate ym4r_gm and am using the following gems: GeoRuby-1.3.2 RedCloth-3.0.4 has_finder-0.1.5 json-1.1.1 mocha-0.5.5 oauth ruby-hmac-0.3.1 brickhouse:~...
2007 Apr 12
19
Multiple Model Search
...Search model just an Active Record object or do I need to > set up a database for it as well (if so then with what columns)? No, that search model is just a plain class that backs your search form. If you want to take advantage of AR''s validations for the search form, you can use the active_record_base_without_table rails plugin that gives you a base class for your model similar to ActiveRecord::Base, but without the need for a db table :-) > 2. Do I need to set up table relationships to the other models > (has_many) or do my models just inherit from the search class? No and no :-) A sample search...
2007 Oct 23
11
validates_confirmation_of not working?
I just can''t get validates_confirmation_of working for the life of me!... It''s not the first time I''m having problems with it but I just never understand why!... This time I pretty much followed *exactly* the example in Agile Rails Development and still...it just won''t work! I put 2 different passwords in the form and it doesn''t trigger an error,