JRuby on Rails is a term to describe a Ruby On Rails application running on JRuby.
Questions tagged [jrubyonrails]
367 questions
138
votes
5 answers
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?

epochwolf
- 12,340
- 15
- 59
- 70
21
votes
3 answers
JRuby Performance
I have a Rails 3.2.2 application that I am looking to run using JRuby 1.6.7 (1.9.2 mode).
I have a sample app running in MRI ruby 1.9.3 and a typical request is returning in ~40ms:
Completed 200 OK in 36ms (Views: 27.5ms | ActiveRecord:…

Larry Gebhardt
- 232
- 2
- 7
18
votes
5 answers
How to test cookies.permanent.signed in Rails 3
I have a action in some controller that set some value in a permanent signed cookie like this:
def some_action
cookies.permanent.signed[:cookie_name] = "somevalue"
end
And in some functional test, I'm trying to test if the cookie was set…

Joao Pereira
- 2,454
- 4
- 27
- 35
17
votes
1 answer
JRuby on Rails: Adding a folder to the classpath
I'm trying to add an entire folder to the JRuby 1.5 classpath for my Rails app. The JRuby Wiki suggests the following: "... add the config directory to the JRuby classpath in config/environment.rb:"
$CLASSPATH <<…

organicveggie
- 559
- 5
- 22
14
votes
4 answers
Rails log shifting is keeping old log open and filling it up
I help to maintain a Rails website. It's running JRuby 1.5.5, Rails 2.3.10, on a Solaris Sparc machine. I have a problem related to logging.
To stop our logfiles growing too large and filling the disk, we're using the log-shifting that's built in…

Neil Brown
- 3,558
- 1
- 27
- 36
13
votes
4 answers
jruby on rails scheduling options
I'm using JRuby 1.5.6 on Rails to build myself an application that will periodically go away and retrieve any RSS podcasts that I have subscribed too.
I've chosen JRuby primarily because I'm familiar with Java, wish to utilise the Rails framework…

Phil Ostler
- 429
- 3
- 14
10
votes
5 answers
How do I use JRUBY_OPTS with RVM?
It seems that the idiomatic way to provide flags to JRuby in an RVM-based Rails project is to set the environmental variable JRUBY_OPTS or PROJECT_JRUBY_OPTS, the latter perhaps being done automatically, since I see I can uncomment this line from my…

Paul Biggar
- 27,579
- 21
- 99
- 152
10
votes
6 answers
jRuby on Rails vs Grails
I'm looking to develop a greenfield web application which will reuse a lot of Java components. To me, the obvious options for this are Grails or jRuby on Rails, but I'm having trouble finding objective comparisons of the two. Are there any clear…

Armand
- 23,463
- 20
- 90
- 119
10
votes
2 answers
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…

Mark Westling
- 5,904
- 4
- 26
- 30
10
votes
1 answer
JRuby 1.7.1 and PsychParser error parsing UTF-8 YAML file (Rails 3.2.8)
In our JRuby/Rails project, we are using the i18n gem, and support Japanese as well as English. Our config/locales.ja.yml file is in UTF-8, without any BOM.
When running Rails 3.2.9 on JRuby 1.7.1, we now see the following error:
% jruby -S rake…

buruzaemon
- 3,847
- 1
- 23
- 44
10
votes
1 answer
invalid encoding in marshaling stream: I"◄co OR [I"co]
I have problem while coding in Jruby on Aptana framework;
when I run the rails server, it throws "Invalid encoding in marshalling stream"
which I don't know how to solve?
It throws an error on "<%=stylesheet_link_tag%> and…

Vishal Deshmukh
- 147
- 9
8
votes
1 answer
Braces: [Brackets], (Parentheses) & {Curlies} in Ruby & Rails
So the loose tolerance of Ruby to use braces sometimes and not REQUIRE them has led to alot of confusion for me as I'm trying to learn Rails and when/where to use each and why?
Sometimes parameters or values are passed as (@user, @comment) and other…

Meltemi
- 37,979
- 50
- 195
- 293
8
votes
2 answers
Convert a Ruby on Rails project to a JRuby on Rails project
is there any particular way to convert a Ruby on Rails project to a JRuby on Rails project?
There now is a need to get the Rails side to talk to a Java server via RMI so was wondering how to make the conversion. Thanks.

peppermonkey
- 93
- 1
- 3
7
votes
3 answers
Environment Variables or YAML config files
The background:
Step 1 -> We have a box that runs unit and functional tests of an application by running it in test mode with a specific configuration.
Step 2 -> Upon success of Step 1, we run integration tests of an application by running it in…

karthiks
- 7,049
- 7
- 47
- 62
7
votes
2 answers
Logging with log4j on tomcat jruby-rack for a Rails 3 application
I just spent the better part of 3 hours trying to get my Rails application logging with Log4j. I've finally got it working, but I'm not sure if what I did is correct. I tried various methods to no avail until my very last attempt. So I'm really…

John
- 9,254
- 12
- 54
- 75