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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:14:28+00:00 2026-05-31T08:14:28+00:00

I used scaffold to build a table called assets. The files were created. The

  • 0

I used scaffold to build a table called “assets”. The files were created. The “rake db:create” worked fine. I added ” resources :assets” to my routes.rb file. I now get route errors. I ran “rake routes” and none of the routes for “assets” show up.

Is it bad to use a table name “assets”?
Or is something else wrong?

  • 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-31T08:14:29+00:00Added an answer on May 31, 2026 at 8:14 am

    The asset pipeline uses /assets by default.

    You can either change the default assets path by using this in application.rb:

    config.assets.prefix = '/something-else'

    Or change the routing for your assets resource by using:

    resources :assets, :path => 'something-else'

    edit: Actually the second option is probably the better choice because I forgot that asset_path is available by default and belongs to the asset pipeline. If you changed your default assets prefix and used asset_path @asset hoping to generate a link to assets#show then it might cause problems.

    Use the :as option in your routes to change the path/url methods it generates.

    resources :assets, :path => 'things', :as => 'things'

    things_path results in /things and routes to the index action of the assets controller

    thing_path @asset results in /things/:id and routes to the show action of the assets controller

    etc.

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

Sidebar

Related Questions

I created a new Rails project, I used scaffold and then tried to: rake
I used nifty_scaffold to generate scaffold for a new model called Fax In routes.rb,
I have a controller called 'exposures' which I created automatically with the script/generate scaffold
I used generate scaffold to setup the basic RESTful actions however I want to
I used the phonegap website to create an IPA file. Now I want to
I've gone over the tutorial, used the scaffold command to make a model, etc.
Used this tutorial I have installed jogl, jocl, gluegen, joal libs and added its
Used http://www.ilbcfreeware.org/software.html - I only get static from the files that ilbc_test.exe creates. Does
I have a problem, i made a scaffold, generating the table requirements, i want
I have used Subsonic ORM in ASP.NET. It has Scaffold user control that generates

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.