Displaying 2 results from an estimated 2 matches for "my_schema".
Did you mean:
ms_schema
2006 Nov 29
5
AR, find(:all), loops and memory usage
...:
#example code
require ''rubygems''
require ''mysql''
require ''active_record''
ActiveRecord::Base.establish_connection(
:adapter => "mysql",
:username => "root",
:password => "password",
:database => "my_schema"
)
class MyTable < ActiveRecord::Base
end
for m in MyTable.find(:all, :conditions => "some_column=''criterion to
match''")
m.other_column = "new value"
m.save
end
#thanks for any tips
--~--~---------~--~----~------------~-------~--~----~
You r...
2006 Feb 28
10
Salted hash login, postgresql, unit tests
Hello,
I have tried to install the salted hash login generator by following the
quick start guide at:
http://wiki.rubyonrails.com/rails/pages/SaltedLoginGeneratorQuickstart.
Everything seems to work fine until I try to run the unit tests by doing
''rake test_units'', then I get the following error message:
<error-message>
[brasse@keso login-test]$ rake test_units
(in