Can anyone show me some simple steps to configure ruby on rails to work with SQL Server 2008?
The development is being done on windows..
Thanks
I think that this article can help you. It shows you how to configure SQL Server 2008 with Rails 2.
Related
I've just finished to write a rails app, and now is(unfortunately) time to deply this app on Windows.
I'm running:
Windows server 2008
Ruby 1.9.3
Rails 3.2.9
Now my web server is Thin, and i want to start it (or something else if it is easier) like a windows service.
I followed 3 or 4 tutorial but it never works and the deadline of the project is everyday nearest.
Hope someone can help me.
Thanks.
You could deploy use capistrano
Or using 3rd party extensions capistrano deploy rails apps to Windows servers :
capistrano-windows-server
There is a chance I will have to make a project using RoR with a SQL Server 2008 r2 database. Is there any complication with using sql server as opposed to mysql when it comes to developing with RoR?
The only difference between the mysql adapter and the SQLServer adapter is that the later depends on the freetds gem. And when you first setup up your connection, you may have to deal with some simple utilities that come with freetds to verify or debug the connection. Once you are connecting, there is no difference in the way you deal with the database, no where in your RoR code is ANYTHING specific to SQLServer vs. mysql, it's all handled by the SQLServer adapter and freetds.
Shouldn't be too much of an issue; see this screencast on Rails 3, Ruby 1.9.2, Windows 2008, and SQL Server 2008 by Xavier Shay.
If you do run into issues while working on this project, StackOverflow is always there to rescue you ;-)
I need to connect my application ruby 1.8.7 and rails 3.0.7 with WebSphere MQ.
Today I saw the plugin rubywmq, but it looks old and bad to use with rails 3.
Another trouble is that they need a WebSphere development toolkit, one that I can't found at IBM very confusing site.
Anybody knows others options to send messages to this kind of queue?
Tks!
I am new to Rails, so bear with me, I need to have apache tomcat as application server. How do i configure that by replacing the default Mongrel
first of all, to deploy a rails app on tomcat, you need jRuby (a ruby version that runs on JVM).
I'll suggest you to read this tutorial to make an idea: http://thenice.tumblr.com/post/133345213/deploying-a-rails-application-in-tomcat-with-jruby-a
http://wiki.joyent.com/accelerators:apache_rails_mongrel
helps you
This has been addressed some time ago, but I've not had any luck following the steps outlined or advice suggested. Here's my situation:
I've installed SQL Server '05 and have another (non-Ruby) application utilizing it successfully.
I've got Rails up and running successfully (but only for MySQL.)
I've installed the Rails sqlserver adapter gem (as well as its dependencies.)
I've downloaded ADO.rb (now only available on older builds of Ruby-DBI) and placed it into c:\ruby\lib\ruby\site_ruby\1.8\DBD\ADO\ADO.rb.
I've configured database.yml to use the sqlserver adapter and pointed it towards my database with valid login information.
When I attempt to run a migration, I get the ugly 'Unable to load driver ADO (uninitialized constant DBI::DBD::ADO)' error.
Thanks immensely for any assistance.
So just make sure if you're working on Windows or Mac to set up an ODBC connection. You must indicate this explicitly in your database configuration for Rails.