JRuby on Rails is a term to describe a Ruby On Rails application running on JRuby.
Questions tagged [jrubyonrails]
367 questions
2
votes
2 answers
Integrating standard java into web frameworks such as Stripes, Grails JRuby and Rails
For various reasons we have to use a java based web framework to create a proof of concept site. We've a lot of algorithms written in standard java that will have to hook into the site.
So right now I'm considering stripes, grails and jruby and…

Steve
- 21,163
- 21
- 69
- 92
2
votes
1 answer
JRuby with Tomcat
I have been working with Ruby 1.9.2 with rails 3.0.6, and i am new to JRuby. I want to know whether Apache Tomcat ( web server ) can serve multiple requests of single Jruby WAR file ? Any website that can confirm the issue? I googled for the same…

Rashmi
- 629
- 1
- 11
- 35
2
votes
0 answers
Compiled Jruby application Instance variable error
How do I use instance variable in jruby compiled application?
Here is where the instace variable is used
def index
@samaple = ["It's works"]
render json: @samaple
end
It's shows the following error when deployed:
Internal Server Error…

Harish
- 131
- 2
- 8
2
votes
1 answer
Recommended way to structure rspec modules?
I have a rails app, plus code in lib. I have the spec directory under RAILS_ROOT.
How should I put my tests in spec?
Currently, I am thinking of the following:
spec/lib
spec/controllers
spec/models
Further, I do some common setup / use common steps…

rmk
- 4,395
- 3
- 27
- 32
2
votes
1 answer
how/where to set --fast mode for jruby when using it within jruby/rack inside tomcat?
how/where to set --fast mode for jruby when using it within jruby/rack inside tomcat?
This --fast mode is explained in this page
jruby performance tuning

so_mv
- 3,939
- 5
- 29
- 40
2
votes
3 answers
rails app load testing with jmeter
I am trying to load test a rails app with jmeter but have not gotten pass login.
In application_controller I commented out protect_from_forgery so as not to have to use the authenticity_token.
It now looks like the app session id cookie from…

Rafael
- 1,061
- 4
- 16
- 32
2
votes
3 answers
Attachment_fu issue
I am trying to use attachment_fu + image science on jRuby-1.5.2 and Rails 3. I have followed the attachment_fu docs. However, when I upload the form form the browser, i get an error on validate_as_attachment saying size cannot be blank. This is what…

Dhaval
- 21
- 1
2
votes
1 answer
Unit testing Rails applications' controller's helper Module - How?
In my rails application there exists a controller helper which is a Module (not a Class) with lot of helper methods defined in it. I wish to write unit test cases for this before I do code refactoring of this module so as to ensure that my…

karthiks
- 7,049
- 7
- 47
- 62
2
votes
0 answers
How to create war file for jruby on rails application
I have a rails project which is using jruby-9.1.2.0 with java version "1.8.0_101".
Now i want to create a warble file for my project, so i am using this below command
warble
But it is giving me following error ERROR: Can't find header dir for…

chandradot99
- 3,616
- 6
- 27
- 45
2
votes
1 answer
Jruby: Not able to start webrick server in jruby on rails application
I have install jruby 1.7.16 and rails 4.1.8 on my ubuntu machine. i have existing jruby application which i want to run using webbrick server but i am not able to run it. whenever i start webrick server using command rails s i am getting below…

Sanjay Salunkhe
- 2,665
- 5
- 28
- 52
2
votes
1 answer
Prevent jRuby on Rails app with Puma/IIS from falling asleep after a set amount of time
We are running an application on Windows Server 2012, using jRuby 1.7.20.1, puma, and IIS 8+.
The start up time on jRuby is a little long which is fine, because the app runs really fast after that as long as it is receiving requests. The issue is…

Matt Ramirez
- 673
- 6
- 19
2
votes
5 answers
How reliable is JRuby?
I'm interested in promoting JRuby in our office as the platform hosting Rails applications.
But how reliable is it?
Is its performance better than MRI 1.8.7?
JRuby 1.5 states that it is 100% compatible with Ruby 1.8.7, does this mean that JRuby can…

Chiron
- 20,081
- 17
- 81
- 133
2
votes
1 answer
JRuby: Rake fails with Gem::Version error
I get the following error on any call to rake. I am working on a Rails 3 running on JRuby (1.5.1) installed with RVM. I don't think this was always the case, but I'm not sure how to track it down. Am I correct in think this has something to do…

Eric M.
- 5,399
- 6
- 41
- 67
2
votes
0 answers
java_annotation removed after become_java
I have following piece of code
require 'java'
require 'jruby/core_ext'
class AnnoTest
java_signature 'void run()'
def run
puts "inside run"
cls = AnnoTest.become_java!
puts cls.to_s
cls.declared_methods.each do |method|
…

Hitesh Raghuvanshi
- 73
- 1
- 10
2
votes
1 answer
Need to access Heroku Postgres DB of a JRuby on Rails app in Java
I need access to the Postgres DB in Java within my JRuby on Rails App. Is this allowed/done. Has anyone done it?
So could I just make a singleton connection to the db via jdbc and manipulate the postgres db?
If so, please can you point me to some…

user2511030
- 515
- 1
- 4
- 14