ABOUT CONTROLLER

S

Sumanta Das

i have two problem can any body help me.....



1) i was using rails 2.0.2 but when i updated the version 2.1.0 my
application is not running and showing the following
error...............


C:\xx>ruby script/generate controller aa
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/connection_a
dapters/abstract/connection_specification.rb:232:in
`establish_connection': Plea
se install the sqlserver adapter: `gem install
activerecord-sqlserver-adapter` (
no such file to load --
active_record/connection_adapters/sqlserver_adapter) (Ru
ntimeError)
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record
/connection_adapters/abstract/connection_specification.rb:216:in
`establish_conn
ection'
from
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record
/connection_adapters/abstract/connection_specification.rb:209:in
`establish_conn
ection'
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:332:i
n `initialize_database'
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:120:i
n `process'
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:93:in
`send'
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/initializer.rb:93:in
`run'
from C:/xx/config/environment.rb:13
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/generate.rb
:1
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge
m_original_require'
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `re
quire'
from script/generate:3

so anybody can help me in this regards???

2) if i generate a controller in a computer... then if i want to use
it in another computer, is there any way? except sharing that to
network.....





thanx in advance...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top