|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
JRuby and Rails Ready for PrimetimeI am excited about the possibility of Rails under JRuby but is it ready for primetime? One of the great things about Rails is that it just works.. out of the box.. generates a working app. You don't have to tweak to get it to work.. it just works the first time.
I was hopeful when I brought up Rails under Netbeans with JRuby. I created a project (since it would not import my old Rails project) and added my app files, updated the database.yml, etc. and cranked it up with JRuby and Glassfish. Ooops, my ldap support does not work, so commented it out for now. Next.. oops it the images files do not display. I switched to JRuby with Mongrel... and they display. So I tried to debug the problem with images as to Netbeans or Glassfish. Arun Gupta suggested I try to document a bug or not. So I generated a WAR file and deployed it to Glassfish. Unfortunately it cannot cannot to MYSQL. I also tried tomcat with the same error. Yes I am running under windows, but the truth is that standard Rails works great out the box on windows. I typically develop under windows locally and then deploy to Linux. I have tried to figure out what is going on, but noone is responding on the MYSQL forum and searches in this forum indicate quite a few problem with MYSQL, JDBC, etc. So is there a well worn path and cookbook that just works.. out of the box? I can find great cookbooks for standard Rails, but where are the cookbooks with JRuby? Don't get me wrong, I think it has a lot of potential. I have played with Grails which offers similar promise. It works great with Netbeans. I can build and deploy a WAR file. There are great cookbooks and it works first time out of the box.. but it has some disadvantages due to the complexity of the underlying Java frameworks.. so a working JRuby and Rails would be great. Any hints? Ray |
|
|
Re: JRuby and Rails Ready for PrimetimeHi Ray,
The standard "cookbook" if you call it that should by now be very similar to a regular Rails app. The only differentiating steps are a) installing activerecord-jdbcmysql-adapter gem, b) setting up database.yml with adapter: jdbcmysql, and c) creating the databases manually in MySQL (rake db:create* don't currently work). Take a look at this page for a walkthrough: http://kenai.com/projects/jruby/pages/RunningRailsWithActiveRecord-JDBC I just updated the page so if you spot any errors, feel free to mention them. /Nick On Wed, May 20, 2009 at 5:54 AM, Ray Hooker <rhooker@...> wrote: > > I am excited about the possibility of Rails under JRuby but is it ready for > primetime? One of the great things about Rails is that it just works.. out > of the box.. generates a working app. You don't have to tweak to get it to > work.. it just works the first time. > > I was hopeful when I brought up Rails under Netbeans with JRuby. I created > a project (since it would not import my old Rails project) and added my app > files, updated the database.yml, etc. and cranked it up with JRuby and > Glassfish. Ooops, my ldap support does not work, so commented it out for > now. Next.. oops it the images files do not display. I switched to JRuby > with Mongrel... and they display. > > So I tried to debug the problem with images as to Netbeans or Glassfish. > Arun Gupta suggested I try to document a bug or not. So I generated a WAR > file and deployed it to Glassfish. Unfortunately it cannot cannot to MYSQL. > I also tried tomcat with the same error. Yes I am running under windows, but > the truth is that standard Rails works great out the box on windows. I > typically develop under windows locally and then deploy to Linux. I have > tried to figure out what is going on, but noone is responding on the MYSQL > forum and searches in this forum indicate quite a few problem with MYSQL, > JDBC, etc. > > So is there a well worn path and cookbook that just works.. out of the box? > I can find great cookbooks for standard Rails, but where are the cookbooks > with JRuby? Don't get me wrong, I think it has a lot of potential. I have > played with Grails which offers similar promise. It works great with > Netbeans. I can build and deploy a WAR file. There are great cookbooks and > it works first time out of the box.. but it has some disadvantages due to > the complexity of the underlying Java frameworks.. so a working JRuby and > Rails would be great. Any hints? > > Ray > -- > View this message in context: http://www.nabble.com/JRuby-and-Rails-Ready-for-Primetime-tp23634878p23634878.html > Sent from the NetBeans Ruby Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |