Jruby vs ruby

Hello,

Currently in my rails application, I am using ruby 1.9.3. There is a
requirement for which I need to use jruby.
If I am using jruby, then I can’t use ruby.
Will there be any affect if I switch from ruby to jruby in my
application ?
Will the rails application behave normally ?
Any code changes I need to do for that ?

On 21 September 2012 10:47, Avi [email protected] wrote:

Hello,

Currently in my rails application, I am using ruby 1.9.3. There is a
requirement for which I need to use jruby.
If I am using jruby, then I can’t use ruby.
Will there be any affect if I switch from ruby to jruby in my application ?
Will the rails application behave normally ?
Any code changes I need to do for that ?

Hi.
I use jruby in all my applications the advantage is that you can mix
java code if you want oherwise you can use pure ruby syntax.

Will there be any affect on ruby code if we change from ruby to jruby ?

On Fri, Sep 21, 2012 at 4:23 PM, Mauro [email protected] wrote:

For more options, visit https://groups.google.com/groups/opt_out.


Thanks & Regards,
Avinash Behera
M-09538712979

On 21 September 2012 13:16, Mauro [email protected] wrote:

end
To create a new app using jruby for rails 3:

jruby -S rails new myapp -m http://jruby.org/rails3.rb

Thanks.

On Fri, Sep 21, 2012 at 4:57 PM, Mauro [email protected] wrote:

group :assets do
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit https://groups.google.com/groups/opt_out.


Thanks & Regards,
Avinash Behera
M-09538712979

On 21 September 2012 13:07, avinash behera [email protected]
wrote:

Will there be any affect on ruby code if we change from ruby to jruby ?

I think no, you have to control your gems, if you use jruby you have to
add:

the javascript engine for execjs gem

platforms :jruby do
group :assets do
gem ‘therubyrhino’
end
end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs