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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:36:28+00:00 2026-06-03T07:36:28+00:00

I have a users_controller which has this function in it: def process_csv puts ‘processing

  • 0

I have a users_controller which has this function in it:

def process_csv
puts 'processing csv file'
end

Then I have a show.html.erb file with a “link_to” tag on it.

<%= link_to 'Click HERE to open file', @user.image.url  %><br/><br/><br/>
<%= label_tag(:q, "Parse CSV File:") %><br/>
<%= link_to 'Parse CSV', {:controller => "users", :action => "process" } %>
<% end %>

This is the output of my rake routes:

 process_users GET    /users/process(.:format)     users#process
    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

This is my routes.rb file

 resources :users do
  collection do
     get:process
 end
 end

resources :listings

When I click on the link in the show.html.erb file. I was hoping to be directed to the process.html.erb view. Instead I get an error:

Routing Error
No route matches [GET] "/assets"

Ive tried a lot of combinations of switching things however nothing has worked as yet. So Im wondering if anyone can give me a hand.

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-03T07:36:30+00:00Added an answer on June 3, 2026 at 7:36 am

    the error is caused by ‘assets’, but not ‘routes’, so please make sure you are using ‘asset-pipeline’ correctly.

    if you are under ‘development’ mode, please put all the image/js/css under “app/assets” folder.

    if you are under ‘production’ mode, please make sure you have done this: bundle exec rake assets:precompile

    for more information of assets pipeline , please refer to: http://guides.rubyonrails.org/asset_pipeline.html#in-production

    BTW, since you are using RESTful routes, please modify your ‘link_to’ from :

    <%= link_to 'Parse CSV', {:controller => "users", :action => "process" } %>
    

    to:

    <%= link_to 'Parse CSV', process_csv_users_path %>
    

    at the same time, give the corresponding action a more readable name:

    resources :users do
      collection do
        get :process_csv   
      end
    end
    

    and in your controller:

    class UsersController ...
      def process_csv
        puts "bla bla bla"
      end
    end 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this simple code in my user_controller.rb file #listing all users def index
I have a controller which has a method called history class UsersController < ApplicationController
I have a partial view which has dual list boxes and four buttons; exactly
i have a product table which has a Title as string. inside my view
Here is a problem I have encountered. I have jsp page which has a
I have a CakePHP 1.3 application that has a login system, which works well.
I have a 9000-line PHP file which consists of about 30 discrete areas, navigated
I have a CI app that has a auth controller and switchuser function. Basically
I am working on an application which has a registration form and I have
I have a form which users must fill out and submit. The controller action

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.