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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T00:06:27+00:00 2026-06-19T00:06:27+00:00

I created a scaffold example and have made many changes to its controller and

  • 0

I created a scaffold “example” and have made many changes to its controller and views.

Now I want to rename it to “sample”, is there any way to do it without breaking anything ? it will be difficult to manually edit controller, model, views and migration file so I was hoping there may be something to ease up this.

  • 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-19T00:06:28+00:00Added an answer on June 19, 2026 at 12:06 am

    It’s currently not possible.

    You will need to edit the existing controller manually. You can use and advanced IDE, such as RubyMine, to help you with the job.

    Also, I don’t suggest you to change the existing scaffold. You can create a new one, make sure it’s working properly, then remove the old one.

    Be careful to not rename migrations or your app it’s likely to break. Migrations should not be changed once applied, to change the schema you should create a new migration.

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

Sidebar

Related Questions

I have a simple controller that was created through a scaffold and has a
I created model objects of from generating a scaffold, but now I want to
I have created model, controller and view with rails scaffold generator: rails g scaffold
If I want to change the default controller template created by scaffold in Rails
I made these changes appropriately: Now in 'app/controllers/ users_controller.rb ' I have this code:
I have created an MVC 3 view, just by adding a controller and scaffold
I created a scaffold class, now i want to add another method in the
I have a rails model called 'audioclip'. I orginally created a scaffold with a
I have a Profile scaffold (and User which got created with Devise), each user
I have 2 controllers that I created using scaffold generator of rails. I wanted

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.