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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:11:35+00:00 2026-06-06T20:11:35+00:00

I’m working on a project and trying to render some images sitting under the

  • 0

I’m working on a project and trying to render some images sitting under the public directory in one of my show views. I’m able to access these images just fine on my index view, but it’s not quite so easy for show views it would seem.

So lets say in my view I have something like the following:

<%= "<img src=\"images/16x16/actions/filesave.png\" class=\"icon" title=\"save\">"%>

This would work in my index view perfectly fine, but for some strange reason I get this routing error in my show view:

ActionController::RoutingError (No route matches [GET]
“/uploads/images/16×16/actions/filesave.png”):

I noticed that for some peculiar reason it’s injecting the “/uploads/” route right before the “/images…” this is the cause of my problem and I can’t figure out why or how to stop it. This only happens with my show views.

Now there’s a lot going on in my routes.rb file, I know it’s ugly but I do plan on going in there and cleaning it up when I get the chance.

resources :upload_images

  get "upload_image/new"

  get "upload_image/index"

  get "upload_image/show"

  get "upload_image/delete"

  resources :help_categories

  resources :global_configs

  resources :competitions

  match '/teams/register', :controller => 'teams', :action => 'register'
  match '/teams/invite_users', :controller => 'teams', :action => 'invite_users'
  match '/teams/view_invitations', :controller => 'teams', :action => 'view_invitations'
  match '/teams/ignore', :controller => 'teams', :action => 'ignore'
  match '/teams/leave_team', :controller => 'teams', :action => 'leave_team'
  resources :teams



  resources :competitions do
    resources :matches
  end

  resources :registers
  resources :players do
    collection do
      post :edit_individual
      put :update_individual
      get :results
    end
  end
  resources :tournaments

  resources :matches

  resources :upload_categories

  resources :uploads, :except => [:new]

  match '/download/:id' => 'uploads#download'

  devise_for :users do    
    match 'logout' => 'devise/sessions#destroy'
  end

  resources :users, :except => [:new] do
    member do
      get 'upload_files'
      get 'delete_files'
    end
  end

  resources :games

  devise_for :videolinks


  resources :topics do
    collection do
      get "mark_all_viewed"
    end
    member do
      get 'show_new'
    end
  end


   resources :posts do
    member do
      get 'quote'
      get 'topic'
    end
  end

  resources :forums do
    member do
      get 'confirm_delete'
    end
  end

  resources :blog_entries, :except => [:index]
  resources :categories
  resources :videolinks
  resources :competition_games
  resources :competitions
  resources :news  
  resources :events 

  match 'uploads/find_uploads' => 'uploads#find_uploads'
  match 'uploads/add_upload_image' => 'uploads#add_upload_image'
  match 'forum_root' => 'forums#index'
  match 'upload_root' => 'uploads#index'
  match 'user' => 'forums#index'
  match 'news_root' => 'news#index'
  match 'topic_post' => 'forums#index'
  match 'quote_post' => 'forums#index'
  match 'new_upload' => 'forums#index'
  match 'videolinks/:id', :to => 'videolinks#show'
  match 'register' => 'users#sign_up'
  match 'login' => 'users#sign_in'

  match 'users/find_users' => 'users#find_users'
  match '/users/get_states/:country' => 'users#states'
  match '/ban/:username' => 'users#ban'
  match '/ban_user/:username' => 'users#ban_user'
  match ':username' => 'users#show'
  match ':username/edit' => 'users#edit'
  match ':username/delete_files_all' => 'uploads#index'
  match ':username/delete_files' => 'users#delete_files'
  match ':username/upload_files' => 'users#upload_files'
  match ':username/password/edit' => 'users#editpass'
  match ':username/edit_file/:id' => 'uploads#edit'
  match '/maketakeadmin/:username' => 'users#maketakeadmin'
  match ':username/destroy' => 'users#destroy'

  root :to => "home#index"

  resources :categories do
    member do
      get 'confirm_delete'
    end
  end

Another developer worked on the upload section of this application and it uses paperclip. By default it saves uploads in the public directory and we didn’t want that so he told me he did some weird hotfix to save uploads to a private directory off of the root of the application called “uploads”. Not sure if this might have anything to do with it.

  • 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-06T20:11:37+00:00Added an answer on June 6, 2026 at 8:11 pm

    Needed a forward slash at the start of the path.

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

Sidebar

Related Questions

I am trying to render a haml file in a javascript response like so:
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
public static bool CheckLogin(string Username, string Password, bool AutoLogin) { bool LoginSuccessful; // Trim

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.