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 6718751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:00:31+00:00 2026-05-26T09:00:31+00:00

I am new to rails and using version 3.1.0 and trying to deploy to

  • 0

I am new to rails and using version 3.1.0 and trying to deploy to heroku. I have a very simple application that i have managed to get up and running on heroku after working my way through several issues. I used the command

bundle exec rake assets:precompile

to get heroku to load the assets for the application (i read that heroku requires this for version 3.1.0). The problem is that when i try to run the application, the server gives the error

ActionController::RoutingError (No route matches [GET] "/assets/all.js"):

i have all of the required javascript files in public/javscripts but i cannot find any version of all.js in the assets directory. I have included

config.assets.precompile << '*.js'

in config/application.rb but to no avail.

I was wondering if someone could tell me how I get the precompile to create all.js in the assets directory or if I am completely off track here. i was under the impression that the precompile function compiled all of the javascript files into a single optimized file.

Also, if anyone has any good links for a beginner to understand how the precompile functionality works in rails I would be very appreciative.

Thanks in advance.

  • 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-26T09:00:32+00:00Added an answer on May 26, 2026 at 9:00 am

    The best guide is the official rails guide. There is also the Railscast about it.

    In a nutshell your Javascript files go in app/assets/javascript from where the precompile task will process them and put then in the public/assets directory. You should not have to change the precompile config option if the follow the defaults. Don’t forget to the use the correct helpers to reference your files.

    Read the resources above, and if you are converting an existing app watch the Railscast and follow the last section of the guide – these should point you in the right direction.

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

Sidebar

Related Questions

I have built a very simple blog application using Ruby on Rails. New to
I am new to Rails and we are using version 2.3.5 running on Heroku.
I have a working Rails application on version 2.3.5 - I am using many
Hey, i have some experience with MVC. but I'm new to rails. I'm using
I am trying to install the new version of the twitter-bootstrap-rails gem (v2), but
I'm brand new at Ruby. Trying to set up the first application/project using Aptana
I'm using Ruby on Rails (Edge, the development version), and Ruby rvm 1.9.2. application.js
I'm trying to get metric-fu running on a rails project I'm working with. Every
I'm trying to build a similar version of Rails ActiveRecord in Javascript, using underscore
I'm kinda new to using Rails, and an app I am working on is

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.