Hi, I''m trying to use Rails for the first time and since 3.1 is already in RC stage I thought I''d use it. The problem is I don''t want any of the asset pipeline functionality. I decided to use RequireJS in my project and I simply don''t need asset pipeline or Sprockets. I tried commenting out config.assets.enabled = true in application.rb or setting it to false. I also put require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "rails/test_unit/railtie" instead of require ''rails/all'' No matter what I do, when I run rails server I get the "Could not find a JavaScript runtime" error. Is it impossible to disable the asset pipeline or is JavaScript runtime needed for something else? Regards, Juliusz Gonera -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
In your application.rb file change config.assets.enabled to false. Dieter Lunn http://ubiety.ca On Thu, Jun 16, 2011 at 9:24 AM, Juliusz Gonera <jgonera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m trying to use Rails for the first time and since 3.1 is already in > RC stage I thought I''d use it. The problem is I don''t want any of the > asset pipeline functionality. I decided to use RequireJS in my project > and I simply don''t need asset pipeline or Sprockets. I tried > commenting out config.assets.enabled = true in application.rb or > setting it to false. > > I also put > > require "action_controller/railtie" > require "action_mailer/railtie" > require "active_resource/railtie" > require "rails/test_unit/railtie" > > instead of require ''rails/all'' > > No matter what I do, when I run rails server I get the "Could not find > a JavaScript runtime" error. Is it impossible to disable the asset > pipeline or is JavaScript runtime needed for something else? > > Regards, > Juliusz Gonera > > -- > 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I''ll just quote myself: "I tried commenting out config.assets.enabled = true in application.rb or setting it to false." On Jun 16, 6:56 pm, Dieter Lunn <coder2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> In your application.rb file change config.assets.enabled to false. > > Dieter Lunnhttp://ubiety.ca-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Should have paid more attention sorry. Do you have the execjs gem installed? Dieter Lunn http://ubiety.ca On Thu, Jun 16, 2011 at 1:45 PM, Juliusz Gonera <jgonera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''ll just quote myself: > > "I tried commenting out config.assets.enabled = true in application.rb > or > setting it to false." > > > On Jun 16, 6:56 pm, Dieter Lunn <coder2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> In your application.rb file change config.assets.enabled to false. >> >> Dieter Lunnhttp://ubiety.ca > > -- > 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@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
At the moment no. I recreated the gemset and commented out those lines in my Gemfile before running bundle install: #gem ''coffee-script'' #gem ''uglifier'' #gem ''jquery-rails'' Seems it doesn''t require a JavaScript runtime anymore. It seems weird to me though that with config.assets.enabled = false something still tried to use a JS engine. On Jun 16, 9:03 pm, Dieter Lunn <coder2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Should have paid more attention sorry. Do you have the execjs gem installed? > > Dieter Lunnhttp://ubiety.ca > > > > > > > > On Thu, Jun 16, 2011 at 1:45 PM, Juliusz Gonera <jgon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I''ll just quote myself: > > > "I tried commenting out config.assets.enabled = true in application.rb > > or > > setting it to false." > > > On Jun 16, 6:56 pm, Dieter Lunn <coder2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> In your application.rb file change config.assets.enabled to false. > > >> Dieter Lunnhttp://ubiety.ca > > > -- > > 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 this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
coffee-script requires execjs to compile the javascript files. Even with the asset pipeline disabled and coffee-script is required in your gemfile it will require execjs along with it. Dieter Lunn http://ubiety.ca On Thu, Jun 16, 2011 at 5:32 PM, Juliusz Gonera <jgonera-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> At the moment no. I recreated the gemset and commented out those lines > in my Gemfile before running bundle install: > > #gem ''coffee-script'' > #gem ''uglifier'' > #gem ''jquery-rails'' > > Seems it doesn''t require a JavaScript runtime anymore. > > It seems weird to me though that with config.assets.enabled = false > something still tried to use a JS engine. > > > On Jun 16, 9:03 pm, Dieter Lunn <coder2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Should have paid more attention sorry. Do you have the execjs gem installed? >> >> Dieter Lunnhttp://ubiety.ca >> >> >> >> >> >> >> >> On Thu, Jun 16, 2011 at 1:45 PM, Juliusz Gonera <jgon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > I''ll just quote myself: >> >> > "I tried commenting out config.assets.enabled = true in application.rb >> > or >> > setting it to false." >> >> > On Jun 16, 6:56 pm, Dieter Lunn <coder2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> In your application.rb file change config.assets.enabled to false. >> >> >> Dieter Lunnhttp://ubiety.ca >> >> > -- >> > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. >> > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > 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@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks, this clears it up. On Jun 17, 6:14 am, Dieter Lunn <coder2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> coffee-script requires execjs to compile the javascript files. Even > with the asset pipeline disabled and coffee-script is required in your > gemfile it will require execjs along with it. > > Dieter Lunnhttp://ubiety.ca > > > > > > > > On Thu, Jun 16, 2011 at 5:32 PM, Juliusz Gonera <jgon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > At the moment no. I recreated the gemset and commented out those lines > > in my Gemfile before running bundle install: > > > #gem ''coffee-script'' > > #gem ''uglifier'' > > #gem ''jquery-rails'' > > > Seems it doesn''t require a JavaScript runtime anymore. > > > It seems weird to me though that with config.assets.enabled = false > > something still tried to use a JS engine. > > > On Jun 16, 9:03 pm, Dieter Lunn <coder2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Should have paid more attention sorry. Do you have the execjs gem installed? > > >> Dieter Lunnhttp://ubiety.ca > > >> On Thu, Jun 16, 2011 at 1:45 PM, Juliusz Gonera <jgon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > I''ll just quote myself: > > >> > "I tried commenting out config.assets.enabled = true in application.rb > >> > or > >> > setting it to false." > > >> > On Jun 16, 6:56 pm, Dieter Lunn <coder2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> In your application.rb file change config.assets.enabled to false. > > >> >> Dieter Lunnhttp://ubiety.ca > > >> > -- > >> > 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@googlegroups.com. > >> > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- > > 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 this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.