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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:39:14+00:00 2026-06-06T02:39:14+00:00

I have these urls: http://localhost:3000/assets http://localhost:3000/assets/new http://localhost:3000/assets/34 http://localhost:3000/assets/34/edit they work in my app. I

  • 0

I have these urls:

http://localhost:3000/assets
http://localhost:3000/assets/new
http://localhost:3000/assets/34
http://localhost:3000/assets/34/edit

they work in my app.

I have this routes.rb file:

devise_for :users

match "listings/show_notes" => "listings#show_notes", :as => :show_notes

resources :users

resources :listings

resources :assets

 authenticated :user do
  root :to => "listings#index"
 end

#this route is for file downloads
 match "assets/get/:id" => "assets#get", :as => :download

 resources :admin_dash_board,  :only => :index

I have the following output when I type in rake routes

 new_user_session GET    /users/sign_in(.:format)       devise/sessions#new
        user_session POST   /users/sign_in(.:format)       devise/sessions#create
 destroy_user_session DELETE /users/sign_out(.:format)      devise/sessions#destroy
       user_password POST   /users/password(.:format)      devise/passwords#create
   new_user_password GET    /users/password/new(.:format)  devise/passwords#new
  edit_user_password GET    /users/password/edit(.:format) devise/passwords#edit
                     PUT    /users/password(.:format)      devise/passwords#update
cancel_user_registration GET    /users/cancel(.:format)            devise/registrations#cancel
   user_registration POST   /users(.:format)               devise/registrations#create
   new_user_registration GET    /users/sign_up(.:format)       devise/registrations#new
 edit_user_registration GET    /users/edit(.:format)          devise/registrations#edit
                     PUT    /users(.:format)               devise/registrations#update
                     DELETE /users(.:format)               devise/registrations#destroy
          show_notes        /listings/show_notes(.:format) listings#show_notes
               users GET    /users(.:format)               users#index
                     POST   /users(.:format)               users#create
            new_user GET    /users/new(.:format)           users#new
           edit_user GET    /users/:id/edit(.:format)      users#edit
                user GET    /users/:id(.:format)           users#show
                     PUT    /users/:id(.:format)           users#update
                     DELETE /users/:id(.:format)           users#destroy
            listings GET    /listings(.:format)            listings#index
                     POST   /listings(.:format)            listings#create
         new_listing GET    /listings/new(.:format)        listings#new
        edit_listing GET    /listings/:id/edit(.:format)   listings#edit
             listing GET    /listings/:id(.:format)        listings#show
                     PUT    /listings/:id(.:format)        listings#update
                     DELETE /listings/:id(.:format)        listings#destroy
                root        /                              listings#index
  admin_dash_board_index GET    /admin_dash_board(.:format)    admin_dash_board#index

As you can see there are no routes for the resource :assets.

Any idea why? Or whats going on?

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-06-06T02:39:15+00:00Added an answer on June 6, 2026 at 2:39 am

    I think I found your answer here and here.

    Try to add this line in your application.rb:

    config.assets.prefix     = "/new_route"
    

    EDIT – also here with some other options to solve the problem….

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

Sidebar

Related Questions

I have a page which will have these urls, http://localhost:1218/Order-AUG17/Forms/Order.aspx?ContactName=HajaMubeen and http://localhost:1218/Order-AUG17/Forms/Order.aspx and in
I wanna get url path by javascript, for example, i have these urls: http://localhost:8080/blah/blah/index.php?p=1
I have the urls like http://localhost/mis http://localhost/mis/newsletter.php http://localhost/mis/cms.php?mainid=65 http://localhost/mis/news.php?mainid=93 Well I am using these
I have already have this code to force these URLs to HTTPS: RewriteCond %{HTTPS}
There are two URLs I have: http://localhost:65043/home/create/ http://localhost:65043/home/create/2 I want to check that the
I have two URLs with parameters http://localhost:8041/Reforge.aspx?name=CyanГ http://localhost:8041/Reforge.aspx?name=Cyanì In first URL Firefox encodes last
I am using urls like this parameters http://localhost/articles/?author=Ben%20Cooper%2CAlex%20Hunter&title=.....&tags=.. I urlencode them in the links.
I have the following URLs for my ASP.Net MVC 2 site: http://localhost:1919/TimeEntry/SummaryForWeek/15/2011 http://localhost:1919/TimeEntry/SummaryForMonth/4/2011 Both
How do I remove index from http://localhost/dashboard/index/create I have my urlManager setup like this:
I have urls like this: www.wunderwedding.com/weddingvenues/share-weddingvenue/175/beachclub-all-good www.wunderwedding.com/weddingvenues/share-weddingvenue/2567/castle-rock Since these urls no longer exist, I

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.