Code Shop

A bit of Ruby, a bit of JavaScript, a bit of love...

    • Edit
    • Delete
    • Autopost

    Setting up JRuby on Rails

    I use JRuby a lot more than I use MRI Ruby. I just like the Java VM a lot more. Anyways, to setup a JRuby project you need to do a few different things. Gem install activerecord-jdbc-adapter and one of these based on the database you are going to be using.

    1 activerecord-jdbcderby-adapter
    2 activerecord-jdbch2-adapter
    3 activerecord-jdbchsqldb-adapter
    4 activerecord-jdbcmssql-adapter
    5 activerecord-jdbcmysql-adapter
    6 activerecord-jdbcpostgresql-adapter 
    7 activerecord-jdbcsqlite3-adapter

    Then run:

    1 ./script/generate jdbc

    Everything else should be the same.

    Tags » jruby rails ruby
    • 28 May 2010
    • Views
    • 0 Comments
    • Permalink
    • Favorited 0 Times
    • Tweet

    Comments 0 Comments

    Leave a Comment

  • Abhi Yerra's Posterous

    An entity composed of reality and pseudo-reality. Enjoys coding, news, history, photography.

  • About Abhi Yerra

    An entity composed of reality and pseudo-reality. Enjoys coding, news, history, photography.

  • Subscribe

    Subscribe to this posterous
    Unsubscribe
    Follow this posterous RSS
  • Follow Me

             

Theme created for Posterous by Obox