Created
March 24, 2012 04:51
-
-
Save THUFIR/2178392 to your computer and use it in GitHub Desktop.
query without rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fileutils' | |
require 'active_record' | |
puts "connecting..." | |
ActiveRecord::Base.establish_connection( | |
:adapter => "mysql", | |
:host => "localhost", | |
:username => "ruby", | |
:password => "password", | |
:database => "rss" | |
) | |
puts "...connected" | |
####query rss database here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment