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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:08:48+00:00 2026-05-27T20:08:48+00:00

I accidentally generated a singular controller comm_log without ‘s’. ‘s’ was added to controller

  • 0

I accidentally generated a singular controller comm_log without ‘s’. ‘s’ was added to controller name, helpers, views, specs and routes. The customer_comm_log_path(f.customer_id, f.id) seems not right.

The relation is a comm log belongs to a customer and a customer has many comm logs.

  resources :customers do
    resources :comm_logs
  end

The output of rake routes (related) is:

         comm_logs_index GET    /comm_logs/index(.:format)                                      {:controller=>"comm_logs", :action=>"index"}
           comm_logs_new GET    /comm_logs/new(.:format)                                        {:controller=>"comm_logs", :action=>"new"}
        comm_logs_create GET    /comm_logs/create(.:format)                                     {:controller=>"comm_logs", :action=>"create"}
          comm_logs_show GET    /comm_logs/show(.:format)                                       {:controller=>"comm_logs", :action=>"show"}
       comm_logs_destroy GET    /comm_logs/destroy(.:format)                                    {:controller=>"comm_logs", :action=>"destroy"}

      customer_comm_logs GET    /customers/:customer_id/comm_logs(.:format)                     {:action=>"index", :controller=>"comm_logs"}
                         POST   /customers/:customer_id/comm_logs(.:format)                     {:action=>"create", :controller=>"comm_logs"}
   new_customer_comm_log GET    /customers/:customer_id/comm_logs/new(.:format)                 {:action=>"new", :controller=>"comm_logs"}
  edit_customer_comm_log GET    /customers/:customer_id/comm_logs/:id/edit(.:format)            {:action=>"edit", :controller=>"comm_logs"}
       customer_comm_log GET    /customers/:customer_id/comm_logs/:id(.:format)                 {:action=>"show", :controller=>"comm_logs"}
                         PUT    /customers/:customer_id/comm_logs/:id(.:format)                 {:action=>"update", :controller=>"comm_logs"}
                         DELETE /customers/:customer_id/comm_logs/:id(.:format)                 {:action=>"destroy", :controller=>"comm_logs"}

Is there a way to fix the singular controller? 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-05-27T20:08:48+00:00Added an answer on May 27, 2026 at 8:08 pm

    Try script/destroy your_controller_name using the same controller name used to create it.

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

Sidebar

Related Questions

I accidentally added and committed a file with the wrong name. No problem. Tortoise
I accidentally added a binary file to SVN with the add command, and now
I accidentally added a word I'm forever mis-spelling into Eclipse's spell-checker dictionary. How do
when I was on my project, I accidentally named a array name like this
I accidentally added a folder of images and committed. Then, I made one more
Accidentally I may forget to describe some parameters or exception throwing (or something else)
Accidentally I mixed up between 32Bit and 64Bit library files on my x86 embedded
I accidentally committed too many files to an SVN repository and changed some things
I accidentally pushed a commit to GitHub. Is it possible to remove this commit?
I accidentally reverted all my changes with bzr revert before committing. Are all my

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.