Hi,

How to I get a rails line of code that normally works within a rails
mode, but but have it run within "test.rb" environment file.  For
example to get the following to run:

  RecurringType.create(:name => "TYPE_BASIC")

PS. Or in general how to get a normal rails line of code to run in the
"test.rb" file (i.e. only for when starting up in test mode).  I get
"ActiveRecord::ConnectionNotEstablished" when I include
"RecurringType.create(:name => "TYPE_BASIC")".

thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to