Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

SQL server with Rails -



i've been trying rails program access existing sql express server set on machine @ work. i've followed these instructions: github , set database.yml this:

development:   adapter: sqlserver   mode: odbc   dns: provider=sqloledb;data source=machinename\sqlexpress;uid=xxxx;pwd=xxxxx;application name=atlas   timeout: 5000 

now when try run script/console (or server or whatever) error:

/var/lib/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:440:in `load_missing_constant':nameerror: uninitialized constant activerecord::wrappeddatabaseexception   

i've tried googling , changing settings , forth i've come blank. doing awfully wrong or what?

br,
sg

i can speak using rails 3.0.3 sqlserver 2005, hope helps bit.

i've added gemfile:

gem 'ruby-odbc', '0.99991', :require => 'odbc' gem 'activerecord-sqlserver-adapter', :branch => "arel2",   :git => "git://github.com/rails-sqlserver/activerecord-sqlserver-adapter" 

and use in config/database.yml:

test:   adapter: sqlserver   mode: odbc   dsn: my_app_test   username: [username]   password: [password] 

the dsn configured elsewhere, in complex yours. followed these instructions: http://github.com/rails-sqlserver/activerecord-sqlserver-adapter/wiki/platform-installation---ubuntu


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -