Quoting phoenix-ruby group <nor...@googlegroups.com>:
> == 1 of 2 ==
> Date: Tues, Dec 4 2007 10:53 pm
> From: "joshc...@gmail.com"
>
>
> Hi,
>
> Could I get some advice on two separate things:
>
> 1) unit testing in rails... specifically, I'm playing around in
> rails w/o a db. I get an error when i run a unit test, as in the ones
> rails creates for you when you use script/generate blah blah. It
> appears to be trying to connect to a db. database.yml still has
> defaults because I'm not using one just yet. advice on tdd with rails
> in general would be great.
>
> 2) I've got a working contact form on my self-tutorial rails app...
> but I'd like to do it with a model but not have it tied to a table.
> And use validation. Any advice? simpler cases work too.
>
> Thanks!
>
> /teaching self rails & ruby blah blah blah...
You could use this:
http://agilewebdevelopment.com/plugins/activerecord_base_without_table
Mike B.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.