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

  • Home
  • SEARCH
  • 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 6657427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:45:59+00:00 2026-05-26T01:45:59+00:00

Currently working on a project where we need to drop in various static html

  • 0

Currently working on a project where we need to drop in various static html pages + static assets for those from time to time that “just work.” We cannot have anyone editing the html directly to place paths in for the assets. We need it to simply work such that the html + asset folders are placed directly into /public and the content is served up as it was generated.

When testing this behavior in production, it’s a no go with errors such as:

ActionController::RoutingError (No route matches [GET] "/some_folder/some-image.png"):

I assume this is a result from what I’m reading from 3.1.x’s asset pipeline.

How do you alter the routes such that these will be served up directly? Or is there a preferred way to keep this precise behavior? (Ultimately this will be deployed on heroku.)

Adding some more details as current remarks have not yet pushed my issue over the edge in terms of a solution:

In my present scenario I’m running it straight on WEBrick rails s -e production to test it out. In development mode this does work properly; the only exception is in production.

I am also running this prior to running the server:
bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile --trace

When I actually attempt to load the page in production, I see the following output:

cache: [GET /] miss
cache: [GET /test_files/index.css] miss
cache: [GET /test_files/index.js] miss
cache: [GET /test_files/logo.png] miss
cache: [GET /test_files/background.png] miss
cache: [GET /test_files/horizontal.png] miss
cache: [GET /favicon.ico] miss
  • 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-26T01:46:00+00:00Added an answer on May 26, 2026 at 1:46 am

    Upon further scrutiny of the production.rb I am seeing: “config.serve_static_assets = true” that when set to false by default evokes the issue experienced in webrick. So when setting that to true it serves the files up properly.

    From some additional reading it appears that perhaps Heroku needs this set to false as well, which is the environment to which we’re deploying.

    Thanks for the input, but this appears to be the approach to take for now and I’d certainly appreciate any further input if this is NOT the correct answer or if there’s a better approach.

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

Sidebar

Related Questions

Im currently working on a project that requires the following. I need to be
I'm currently working on a project where I need to transfer objects from ruby
I'm currently working on a project where I need to transfer objects from ruby
I am currently working on a project that is a spinoff (fork) from a
I am currently working on a project where users need to be able to
I am currently working on a project where I need to generate multiple values
I'm currently working on a pet project and need to do C++ development on
I am currently working on a large project and will relatively soon need a
In the project I am currently working on, we have the need to develop
Currently we are working on a project in which we need to come up

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.