jrubyonrails

JRuby on Rails vs. Ruby on Rails, what's difference?

I'm looking to try out JRuby and JRuby on Rails. I'm having trouble finding information on what's difference between JRuby on Rails and Ruby on Rails. What's the differences I need to look out for? ...

JRuby on Rails without a database

I'm kicking off a new Rails project in NetBeans using JRuby (v1.2.0) which uses Rails (2.3.2). I don't need a database, all my data comes from the cloud. I've uncommented this line in my environment config.frameworks -= [ :active_record, :active_resource, :action_mailer] However, I still get the following errors just trying to call an...

If I have jRuby on Rails installed can I use only Ruby?

What I mean by this is if I install jRuby on Rails, can I use only the ruby language to build my application? I wanted to install my rails application with jRuby in case I wanted to use Java in the future, though I don't need it now. Or do I not understand? Is jRuby ruby that has access to java libraries? ...

How do you query a database in the middle of a jruby on rails webpage?

Not sure how to ask it so sorry if I mess up my terminology. In using jruby on rails, how would I query two (or more database) to serve back to the view page? I have seen where I set up my database connection in database.yml and it works fine but I am now wondering how I move beyond this to hitting many databases with jdbc and puttting...

PDF generation with Prawn and Prawnto

Is anyone using Prawn / Prawnto with Jruby on rails? I installed prawn 0.5.01 and rails 2.3.2. I just installed prawn and prawnto and started playing with the PDF generation capabilities. I am concerned that the pranwto web site is no longer online - http://www.cracklabs.com/prawnto Is this rails plugin dead? Or has it moved somewhe...

Good framework for Ruby web development.

Basically I am java developer and exploring ruby and ruby related framework right now. I am mostly working on web based projects. I had heard about RoR and Merb for web development in ruby. I am looking for good tutorial/books for Merb. ...

How can I start JRuby on Rails from Java?

I need to start a copy of a Rails app from within Java. I would favor a lightweight HTTP server, as our installations will have a very small userbase (1-10, 10 being a huge installation). My design I am aiming for is for a single process, with the web interface written in Rails - running on JRuby in a background thread of the main serv...

Logging inside threads in a Rails application

I've got a Rails application in which a small number of actions require significant computation time. Rather than going through the complexity of managing these actions as background tasks, I've found that I can split the processing into multiple threads and by using JRuby with a multicore sever, I can ensure that all threads complete in...

Is JRuby a viable alternative to the MRI for Rails development?

Hey peeps. I am a beginner-verging-on-intermediate rails developer that is working hard to improve my skills. I am a little confused about the state of JRuby, and whether it is a viable alternative to switch to from the MRI. Currently I run a Mac at home and edit using textedit (MRI for ruby, terminal for rails commands, etc). At w...

jruby -S rake gems:install shows success but doesn't in fact install the gems

Has anyone used rake gems:install under jruby? running sudo jruby -S rake gems:install --trace give me the following output: ** Invoke gems:install (first_time) ** Invoke gems:base (first_time) ** Execute gems:base ** Invoke environment (first_time) ** Execute environment ** Execute gems:install gem install reek For more information o...

Automatically Refreshing Rails Metal In Development Mode

I am trying to develop a rails metal endpoint using sinatra, but is proving to be a pain because I have to restart the server every time I change the code. I am in Jruby and running from within a larger Java app. Is there an easy way to make this code refresh for every request? ...

Anybody has luck running Rails application on Weblogic using JRuby?

My application is developed on Rails 2.3.5, its running fine on Webrick, Mongrel, Tomcat and Glassfish. But when I try to the run the same war file that was generated using warbler gem in Weblogic, I am getting the following error: Application initialization failed: no such file to load -- rack from C:/bea/wlserver_10.3/samples/domai...

Any known problems using JRuby on Rails with Resin?

Resin is the only servlet container that my current web host allows / supports. I figure it should be fine (other resin vs tomcat vs etc issues notwithstanding), but want to make sure so I can take some action now if there are some known problems. ...

jruby rails memcached unmarshalling error with java classes

I have a rails app that is communicating with some java services over JMS. I'm caching a few of these objects in memcached on the rails side like so: @my_objects = MEMCACHE["some_key"] || @service.retrieve_objects MEMCACHE.set("some_key",@my_objects) if MEMCACHE["some_key"].nil? where MEMCACHE is MEMCACHE = MemCache.new(['localhost'...

jruby include java class performance vs include a package

I have a jruby rails app with a ruby module in lib that is name-spacing my java objects so I don't have conflicts. I'm wondering what the difference is between including the specific classes in that module and including the package. I've included the sample code below. In the console, for example 1 when I say MyMod:: and hit tab, it h...

Rails Time Zone

I understand that default behavior of rails is to save the database records and any date/datetime related columns to UTC time. And we can control the display of date/datetime to the users with config.time_zone in environment.rb. So basically config.time_zone setting is to control the display, by which rails converts records from UTC to t...

using maven to manage java dependencies in a jruby rails app

I'm trying to write a pom.xml that will allow me to run a command locally and fetch all dependencies that my jruby Rails app has. I'm seeing two different configs though and I'm not totally sure which to use (as I'm not a java person whatsoever) First, many Pom's i'm seeing just have a tag under the root of the pom.xml that list all d...

tomcat 5.5 web.xml change WEB-INF/lib directory

I have a jruby rails app that has some jar dependencies in rails lib/java. I prefer this to just putting them straight in lib as it separates my java libs from ruby libs. Works locally using jruby. Problem is, on deploy, tomcat is looking for a bunch of these jars (such as jruby) in WEB-INF/lib, not WEB-INF/lib/java. I think i need t...

jruby/activerecord-jdbc/tomcat/DB2 ready for enterprise?

I am trying to introduce RoR to my company and I have two ways of doing so in my mind: (1) rails/ibm_db2/passenger/DB2 - which is my preferable way but it is not really supported by company's infrastructure. (2) jruby/activerecord-jdbc/tomcat/DB2 - probably easier way to migrate relying on current infrastructure and java libs IF I have...

java.net is moving to Jruby???

There is a post on http://kenai.com/ from Oracle's Ted Farrell which has an interesting statement: We are in the process of migrating java.net to the kenai technology. Does this mean java.net will be powered by Jruby on rails?? ...