jrubyonrails Questions

6

Solved

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 fo...
Formate asked 30/9, 2008 at 3:0

5

Solved

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 automati...
Grosso asked 27/11, 2011 at 2:53

1

Solved

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...
Veradi asked 12/12, 2012 at 7:48

2

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 ...
Illfavored asked 31/12, 2010 at 18:47

0

I have a JRubyOnRails application running in Tomcat. After browsing to my application (localhost), logging in and then doing nothing, the Heap space seems to be growing continuously... Is that nor...
Heikeheil asked 26/6, 2013 at 13:37

2

I couldn't get jruby to work with Rails 4 without a hack: In railties/lib/rails/engine.rb, I had to initialize Railties with const_get, otherwise def railties @railties ||= self.class.const_get(...
Milli asked 25/1, 2013 at 18:9

1

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 ...
Acculturation asked 31/7, 2012 at 8:44

3

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 ...
Nydianye asked 20/4, 2012 at 19:21

1

I have a rails app which is on torquebox. I am using processors to some background jobs. I have alloted 4 workers to that processor. queues: /queue/company: messaging: /queue/company: CompanyW...
Mantic asked 17/1, 2013 at 6:34

6

Solved

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...
Patsis asked 17/11, 2010 at 12:39

5

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...
Hardman asked 12/2, 2011 at 18:38

4

Solved

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 ...
Demakis asked 4/10, 2011 at 14:15

4

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 famil...
Aristotelianism asked 8/12, 2010 at 16:9

1

Solved

I am trying to obtain access to Object#try in ruby. I thought that just including activesupport would do the trick, but it doesn't. irb(main):001:0> require 'rubygems' => true irb(main):002...
Agraffe asked 31/3, 2011 at 22:19

1

Solved

I am trying to implement functionality wherein an attribute, once set, cannot be changed on an ActiveRecord model. To this end, I have written the following methods: def address self[:address] en...
Alexi asked 1/3, 2011 at 19:56

3

Solved

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 inte...
Detach asked 12/1, 2011 at 18:41

1

Solved

I just started with JRuby on Rails and absolutely love it. I know how to use current classes within the Java API in my Rails app, but if I wanted to create a new custom class written in purely Java...
Lachrymal asked 12/10, 2010 at 17:24

2

Solved

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 fo...
Vinegary asked 21/10, 2009 at 2:52

4

Solved

We're running a small web application written JRuby on Rails running under Tomcat. We're using a Spring back-end that's shared with another production web application. Unfortunately, we keep runnin...
Greek asked 16/7, 2010 at 16:20

1

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 parameter...

2

Solved

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 t...
Iz asked 9/7, 2010 at 19:59

1

Solved

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:...
Hiatus asked 6/7, 2010 at 23:13
1

© 2022 - 2024 — McMap. All rights reserved.