Displaying 4 results from an estimated 4 matches for "howtouseactiverecordoutsiderails".
2006 Jul 27
7
Newbie question---
I wrote a ruby script that parses a file into key-values like so:
class Parser
table = { }
IO.foreach(''Localizable.strings'') { |line|
if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) "/x
table[ $1 ] = $2
end
}
end
I want to store the key-values in different colums on my database so
that when I enter a key, it gives me the corresponding value...how
2006 Mar 04
2
Using the rails configuration outside rails
...g rails application).
It will reference models within the rails app, and It may be run manually,
or may be scheduled via Cron (though I may look at RailsCron as well). I''ve
seen help on the Wiki for using models outside of Rails (like this
article<http://wiki.rubyonrails.com/rails/pages/HowToUseActiveRecordOutsideRails>),
but I''d rather not repeat my database configuration. Is there a better way
to do this?
--
Larry Wright
http://www.approachingnormal.com
http://www.welcometoparenthood.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipe...
2006 Mar 14
3
ActiveRecord row-by-row processing
I want to use ActiveRecord outside of Rails to do processing on large
tables. I want to be able to process the rows as they are retrieved
rather than having to store the results in an intermediate array.
Any suggestions?
Looks like I could hack the adapter to provide an accessor to the
underlying DBI handle. Anything cleaner than that?
2006 Sep 06
13
Ruby/Rails facts?
I found these facts while in #ruby-lang irc?
<duracell8> 1. Limited Pool of developers who know Ruby. Get developers
to nominate if Ruby will be their secondary language.
<duracell8> 2. The serving of Ruby Apps from Apache using FastCGI is
broken the world over. It causes periodic process and database connection
blowouts. Move to a Mongrel Pack.
<duracell8> 3. Limited