Hi,
I'm running Rails 3.13 and Ruby 1.93 on Windows server 2003 r2 with
SQL Server 2005. I followed the installation procedure on
https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/wiki/Using-TinyTds
which was successful. Just to make sure I'm not missing something,
all I did was the following 2 commands:
$ gem install tiny_tds
$ gem install activerecord-sqlserver-adapter
To start, I created a new application and tried out the default sqlite
database, which worked fine. However, when I changed database.yml to
use the sqlserver adapter (1) i can't get it to connect to SQL Server,
and (2) a resource that was previously found/served when using sqlite
is no longer served
The default "Welcome Aboard" Rails page shows, but the server cannot
find rails.png
[server log] Started GET "/assets/rails.png" for xxx.xxx.xx.xx at
2011-12-21 09:38:04 -0500
The expected "Served asset" message never appears, instead this does:
ActiveRecord::ConnectionNotEstablished
(ActiveRecord::ConnectionNotEstablished):
Rendered C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/
action_dispatc
h/middleware/templates/rescues/_trace.erb (0.0ms)
Rendered C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/
action_dispatc
h/middleware/templates/rescues/_request_and_response.erb (31.3ms)
Rendered C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/
action_dispatc
h/middleware/templates/rescues/diagnostics.erb within rescues/layout
(62.5ms)
I must be missing something but I'm not sure what, nor am I certain
about what to try out next or how to dig deeper into the problem.
Thanks in advance for your help.
Chris