# Re: Updated Rails instructions

**URL:** <https://www.ruby-forum.com/t/re-updated-rails-instructions/181924>\
**Category:** IronRuby\
**Created:** [January 20, 2010, 9:47am UTC](https://www.ruby-forum.com/t/re-updated-rails-instructions/181924 "2010-01-20T09:47:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [January 20, 2010, 9:47am UTC](https://www.ruby-forum.com/t/re-updated-rails-instructions/181924/1 "2010-01-20T09:47:35Z")

</div>

I believe console 2 defaults to shift + click and drag to select, and  
auto-copy on release. I do agree with the request for a better console  
in windows, though.

* * *

From: Ivan Porto C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Wednesday, January 20, 2010 7:29 AM  
To: removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Ironruby-core] Updated Rails instructions

copying text from console 2. Copy is broken AFAICT.  
Where do we submit a request to microsoft to finally include a console  
that allows you to copy paste with a keyboard shortcut from a console  
window, tabs would be nice too.  
I’ve wanted to get that for 15 years now.

right click the console window and select view \> console window

That gives you the cmd window and you can use mark,…

Then to your rails problem. Does your database exist?

## For item 2. Does anything show up in log/develpment.log?

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([http://manning.com/carrero](http://manning.com/carrero))

On Wed, Jan 20, 2010 at 5:45 AM, Ryan R.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
I just noticed the instructions are using ironruby-sqlserver though you  
note in your email that you are supporting  
activerecord-sqlserver-adapter. Is ironruby-sqlserver a wrapper, or  
would you just need to swap your adapter?

I’m also running into other problems:

1. I verified that I have the correct access (unless rails needs  
access?), but irake db:migrate produces the following error:  
[?ui=2&view=att&th=1264a0aeac40d8b9&attid=0.1&disp=attd&realattid=ii\_1264a0aeac40d8b9&zw]  
[?ui=2&view=att&th=1264a0b50426065a&attid=0.1&disp=attd&realattid=ii\_1264a0b50426065a&zw]
2. Trying to open the environment settings from the default page for the  
Rails app produces this message:  
[?ui=2&view=att&th=1264a0a693b3123b&attid=0.1&disp=attd&realattid=ii\_1264a0a693b3123b&zw]

Any help is appreciated. I’m stumped. And if anyone knows how to copy  
text from Console2, I would appreciate the tip.

Thanks!

Ryan R.

Email: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
LinkedIn: [http://www.linkedin.com/in/ryanriley](http://www.linkedin.com/in/ryanriley)  
Blog: [http://wizardsofsmart.net/](http://wizardsofsmart.net/)  
Twitter: @panesofglass  
Website: [http://panesofglass.org/](http://panesofglass.org/)

On Thu, Jan 14, 2010 at 6:48 PM, Jimmy S.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
wrote:  
All,

[IronRuby.net /](http://ironruby.net/Documentation/Rails) has been updated to show  
instructions for running Rails 2.3.5 on IronRuby, including using the  
official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his  
work on ironruby-dbi!

The steps are extrememly simple now. Assuming you have IronRuby  
installed and a Rails app you’d like to run on IronRuby:

1. Install Rake, Rails, and IronRuby SQLServer

igem install rake rails ironruby-sqlserver

1. Add the following to the top of your app’s config/environment.rb:

require ‘rubygems’  
require ‘ironruby\_sqlserver’

1. Connect to SQLServer in config/database.yml:

development:  
mode: ADONET  
adapter: sqlserver  
host: YOURMACHINENAME\SQLEXPRESS  
database: app123\_development  
integrated\_security: true

1. Migrate the database and start the server:

irake db:migrate  
ir script\server

And that’s it! The documentation link above also has a walk through  
setting up IronRuby, Rails, and SQLServer, and shows a basic Rails  
“scaffold” running.

Coming soon are updated instructions for running rack-based web  
applications in IIS on IronRuby.

Let me know if you have any questions,  
~Jimmy

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

---

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [January 20, 2010, 10:21am UTC](https://www.ruby-forum.com/t/re-updated-rails-instructions/181924/2 "2010-01-20T10:21:32Z")

</div>

Console2 is the first thing I install on a new machine. Yeah, a updated  
console in windows would be nice, but it’s not something I see changing  
in the future, so I’m fine using something that is good.

~Jimmy

From: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Jim D.  
Sent: Wednesday, January 20, 2010 12:47 AM  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Ironruby-core] Updated Rails instructions

I believe console 2 defaults to shift + click and drag to select, and  
auto-copy on release. I do agree with the request for a better console  
in windows, though.

* * *

From: Ivan Porto C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Wednesday, January 20, 2010 7:29 AM  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Ironruby-core] Updated Rails instructions  
copying text from console 2. Copy is broken AFAICT.  
Where do we submit a request to microsoft to finally include a console  
that allows you to copy paste with a keyboard shortcut from a console  
window, tabs would be nice too.  
I’ve wanted to get that for 15 years now.

right click the console window and select view \> console window

That gives you the cmd window and you can use mark,…

Then to your rails problem. Does your database exist?

## For item 2. Does anything show up in log/develpment.log?

Met vriendelijke groeten - Best regards - Salutations  
Ivan Porto C.  
Blog: [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))

On Wed, Jan 20, 2010 at 5:45 AM, Ryan R.  
\<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\> wrote:  
I just noticed the instructions are using ironruby-sqlserver though you  
note in your email that you are supporting  
activerecord-sqlserver-adapter. Is ironruby-sqlserver a wrapper, or  
would you just need to swap your adapter?

I’m also running into other problems:

1. I verified that I have the correct access (unless rails needs  
access?), but irake db:migrate produces the following error:  
[?ui=2&view=att&th=1264a0aeac40d8b9&attid=0.1&disp=attd&realattid=ii\_1264a0aeac40d8b9&zw]  
[?ui=2&view=att&th=1264a0b50426065a&attid=0.1&disp=attd&realattid=ii\_1264a0b50426065a&zw]
2. Trying to open the environment settings from the default page for the  
Rails app produces this message:  
[?ui=2&view=att&th=1264a0a693b3123b&attid=0.1&disp=attd&realattid=ii\_1264a0a693b3123b&zw]

Any help is appreciated. I’m stumped. And if anyone knows how to copy  
text from Console2, I would appreciate the tip.

Thanks!

Ryan R.

Email: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
LinkedIn: [Ryan Riley - Quorum Software | LinkedIn](http://www.linkedin.com/in/ryanriley)  
Blog: [http://wizardsofsmart.net/](http://wizardsofsmart.net/)  
Twitter: @panesofglass  
Website: [http://panesofglass.org/](http://panesofglass.org/)

On Thu, Jan 14, 2010 at 6:48 PM, Jimmy S.  
\<[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
wrote:  
All,

[IronRuby.net /](http://ironruby.net/Documentation/Rails) has been updated to show  
instructions for running Rails 2.3.5 on IronRuby, including using the  
official activerecord-sqlserver-adapter (v2.3). Thanks to Ivan for his  
work on ironruby-dbi!

The steps are extrememly simple now. Assuming you have IronRuby  
installed and a Rails app you’d like to run on IronRuby:

1. Install Rake, Rails, and IronRuby SQLServer

igem install rake rails ironruby-sqlserver

1. Add the following to the top of your app’s config/environment.rb:

require ‘rubygems’  
require ‘ironruby\_sqlserver’

1. Connect to SQLServer in config/database.yml:

development:  
mode: ADONET  
adapter: sqlserver  
host: YOURMACHINENAME\SQLEXPRESS  
database: app123\_development  
integrated\_security: true

1. Migrate the database and start the server:

irake db:migrate  
ir script\server

And that’s it! The documentation link above also has a walk through  
setting up IronRuby, Rails, and SQLServer, and shows a basic Rails  
“scaffold” running.

Coming soon are updated instructions for running rack-based web  
applications in IIS on IronRuby.

Let me know if you have any questions,  
~Jimmy

* * *

Ironruby-core mailing list  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)
