On Jul 1, 2012, at 5:37 AM, Nielson Rolim wrote:
> Try create just a ruby script and include 'rubygems' and 'active_record':
You might also want (for the connection follow what's in your database.yml):
ActiveRecord::Base.establish_connection({
adapter: ...
})
And you might want to require logger, and:
ActiveRecord::Base.logger = Logger.new(STDOUT)
--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
No comments:
Post a Comment