Displaying 4 results from an estimated 4 matches for "railsdb".
2008 Jan 21
1
RailsDB 0.2 Release
Hello,
This post is to announce the latest 0.2 release of RailsDB:
Q. What?
A. RailsDB is a web application written in Ruby using the Ruby on
Rails web framework. RailsDB provides a generic interface to popular
open source databases such as MySQL, PostgreSQL, and SQLite. The
RailsDB project is currently under heavy development and seeking more
developers to ass...
2005 Jul 27
7
Oracle OCI8, or "am I going crazy?"
All of a sudden, on three different systems, the "server_ip_address/sid_name"
syntax in database.yml has stopped working for me.
I can''t even do a OCI8.new(blah blah blah) statement from an IRB shell.
I get "ORA-12541: TNS:no listener", or some variant, depending on how I phrase it.
On systems where I have a real deal client installed, and OCI can find the
tnsnames
2006 Jul 28
0
cannot read a table in Oracle when scaffold''ing
I installed Ruby, Rails (using gems install rails -v 1.0.0 --remote),
the OCI driver for windows to access Oracle (C:\> ruby
ruby-oci8-0.1.13-mswin.rb).
I create a an application in rails (C:\> rails tabella)
I have a table called tabella in Oracle in the RAILSDB database.
I modify my database.yml to read:
development:
adapter: oci
username: ruby
password: ruby
host: RAILSDB
I start my server: (C:\> ruby server)
When I run:
C:\> ruby script/generate scaffold tabella
I get an Error ORA0403 tabella object tabellas does not exist
Any hints????...
2006 Jun 26
1
Separate Read and Write Database
...# do some stuff
x= Model.find()
x.test
end
or
token = Model.use_write do
x = Model.new
x.save
end
Any idea how this can be achieved?
Is it possible to use
ActiveRecord::Base.establish_connection(:adapter => "mysql" ,
:host => "localhost" , :database => "railsdb" )
more dynamically?
Maybe creating a inherited model would do it?:
class Order < ActiveRecord::Base
end
---
ActiveRecord::Base.establish_connection(:adapter => "mysql" ,
:host => "localhost" , :database => "railsdb_read" )
class ReadOrder < Ord...