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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:14:01+00:00 2026-05-15T01:14:01+00:00

NameError in GenresController#index uninitialized constant GenresController RAILS_ROOT: C:/Users/Will/Desktop/INSTAN~1/rails_apps/talewiki I’ve created a table called Genres

  • 0

NameError in GenresController#index

uninitialized constant GenresController
RAILS_ROOT: C:/Users/Will/Desktop/INSTAN~1/rails_apps/talewiki

I’ve created a table called Genres and when I try to connect to it via local host I get the above error.

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-05-15T01:14:02+00:00Added an answer on May 15, 2026 at 1:14 am

    With all the questions you’re asking I believe you’re an absolute beginner regarding ROR. Perhaps you should visit some tutorials to learn rails.

    I don’t know what your genre model describes, but I think it will have a name.

    Basic steps for a basic genre model:

    1. Delete the table for your genres if created manually (with SQL code)

      DROP TABLE genres;
      
    2. generate a complete scaffolding for genres:

      $ ruby script/generate genre name:string
      $ rake db:migrate
      
    3. Now you have a complete controller for all CRUD actions for a simple genre model

    If I were you I would read some tutorial about RoR, because you make the impression that you don’t understand RoR or the MVC principle behind it. A good start would be: http://storecrowd.com/blog/top-50-ruby-on-rails-tutorials/

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

Sidebar

Related Questions

I'm getting uninitialized constant Date (NameError) with the following code: class Test attr_accessor :reqs
I'm new to rails and getting the following error: NameError in FriendshipsController#create uninitialized constant
I got NameError when I try to run this codes.global name j is not
I looked at a number of existing questions about NameError exceptions when scripts are
I'm getting a weird instance of a NameError when attempting to use a class
I get: TemplateSyntaxError at /blog/post/test Caught NameError while rendering: global name 'forms' is not
On my ubuntu box, irb (ruby) gives a NameError when I try to use
In Python 2: raw_input() In Python 3, I get an error: NameError: name 'raw_input'
# Example: provide pickling support for complex numbers. try: complex except NameError: pass else:

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.