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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:01:17+00:00 2026-06-15T14:01:17+00:00

Here is my simple app: class Blog < E map ‘/’ # actions goes

  • 0

Here is my simple app:

class Blog < E
  map '/'

  # actions goes here
end

app = EApp.new do

  # assets_url '/', true

  mount Blog
end

app.run server: :Thin, Port: 6040

It works well until i uncomment assets_url '/', true.

If i do so, all my routes returning 404 and only routes pointing to files in assets folder works.

Any ideas?

  • 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-06-15T14:01:19+00:00Added an answer on June 15, 2026 at 2:01 pm

    Everything looks correct except assets URL.

    You are mounting your app and assets server on same URL – /

    Assets server has precedence, thus your app routes wont work.

    Simply mount your assets on a corresponding URL, /assets, /static, /etc

    app = EApp.new do
    
      assets_url '/assets', true
    
      mount Blog
    end
    

    UPDATE: as of version 0.4.6, assets server moved to Espresso Lungo

    So install el gem – $ gem in el – or add it to Gemfile – gem "el"

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

Sidebar

Related Questions

Building a simple app here; the methods in question: static coin class public static
Here's a simple android app I've created to demonstrate my problem: public class OptionMenuTest
All my code is here,quite simple,and I don't konw where it goes wrong. Person
Let's say I have the simple rails blog app. And I have a custom
I'm new to designing OO systems. I have a simple Flash Cards app where
I am new to iOS and trying to make my own simple app. I
I am working with DataMapper and Sinatra to create a simple app. Here's the
I'm new to WPF and I'm trying to make a simple app, a stopwatch.
I've made a very simple app that just displays a Google map. However, it
I'm just trying to get a simple test app working with AlarmManager. public class

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.