Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6562077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:39:59+00:00 2026-05-25T13:39:59+00:00

I have installed rails 3.1 with apache2 and passenger on ubuntu 10.04 . using

  • 0

I have installed rails 3.1 with apache2 and passenger on ubuntu 10.04. using ruby 1.9.2 with RVM.
When I load the application in browser in production (development version works fine on my machine), it does not work.

My Production Error Log is:

Started GET "/articles" for 117.230.75.50 at 2011-09-12 13:51:34 +0000
Processing by ArticlesController#index as HTML
Rendered articles/index.html.erb within layouts/application (56.4ms)
Completed 500 Internal Server Error in 126ms

ActionView::Template::Error (application.css isn't precompiled):
    2: <html>
    3: <head>
    4:   <title>Youexpress</title>
    5:   <%= stylesheet_link_tag    "application" %>
    6:   <%= javascript_include_tag "application" %>
    7:   <%= csrf_meta_tags %>
    8: </head>
  app/views/layouts/application.html.erb:5:in `_app_views_layouts_application_html_erb__385712067674585148_29380260'
  app/controllers/articles_controller.rb:7:in `index'

But, when I remove the link_tags in app/views/layouts/application.html.erb like this, the application works fine in production mode.

<!DOCTYPE html>
<html>
<head>
  <title>Youexpress</title>
</head>
<body>

<%= yield %>

</body>
</html>

How do I get Around this? When I do bundle exec rake assets:precompile I get the following error:

rake aborted!
no such file to load -- uglifier
  (in /home/username/youexpress/vendor/bundle/ruby/1.9.1/gems/jquery-rails-1.0.14/vendor/assets/javascripts/jquery-ui.min.js)

Note: In the above error it shows ruby/1.9.1 not 1.9.2 ( I’ve installed 1.9.2 )

Please help with my situation.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:40:00+00:00Added an answer on May 25, 2026 at 1:40 pm

    I’ve found the answer myself, The reason for the error is rails app needs javascript runtime for certain features of sass, coffeescript and uglifier to work.

    There are many ways to solve this, by installing javascript runtimes like nodejs

    But, the solution I went with, and perhaps the easiest one is, adding gem 'therubyracer' to my Gemfile and then running bundle install

    Excerpt from my Gemfile is below

    # Gems used only for assets and not required
    # in production environments by default.
    group :assets do
      gem 'therubyracer'
      gem 'sass-rails', "  ~> 3.1.0"
      gem 'coffee-rails', "~> 3.1.0"
      gem 'uglifier'
    end
    

    adding therubyracer also fixes rake assets:precompile

    Hope this helps. I’ve spent days searching for this solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have ruby on rails installed on my ubuntu 8.10 desktop. Script/generate came up
I just installed passenger (apache2) on my ubuntu server to deploy my rails 3.1
I am using RVM and have installed rails 3.1.0 multiple times but once I
I am struggling with the route setup for a Rails application. I have installed
I have started developing a new Rails app on my server using RVM, Rails
I have a Rails 3.1 application thats using Paperclip. It's working perfectly locally but
I'm trying to use setup the rails application on apache2 using the virtual server
I have just installed Rails Ready script from GitHub on my Ubuntu Server 10.04.
I just installed Ruby EE 11.01. I had a Rails 2.3.8 application that was
I have server (centOS 5.5) and WHM installed. I installed manually Ruby 1.9.2, Rails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.