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 ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/wd-IOs8rq3UJ. For more options, visit https://groups.google.com/groups/opt_out.
On 21 September 2012 10:47, Avi <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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 <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 21 September 2012 10:47, Avi <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Thanks & Regards, *Avinash Behera* *M-09538712979* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 21 September 2012 13:07, avinash behera <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 21 September 2012 13:16, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 21 September 2012 13:07, avinash behera <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 > endTo create a new app using jruby for rails 3: jruby -S rails new myapp -m http://jruby.org/rails3.rb -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Thanks. On Fri, Sep 21, 2012 at 4:57 PM, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 21 September 2012 13:16, Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On 21 September 2012 13:07, avinash behera <aavinash.behera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > 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 > > To create a new app using jruby for rails 3: > > jruby -S rails new myapp -m http://jruby.org/rails3.rb > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Thanks & Regards, *Avinash Behera* *M-09538712979* -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.