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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:13:43+00:00 2026-05-31T04:13:43+00:00

Initially I ran rails g scaffold Post title:string content:text and after migrating everything worked

  • 0

Initially I ran rails g scaffold Post title:string content:text and after migrating everything worked fine.

However, later on I decided to add a tags column, so I did rails g migration AddTagsToPosts tags:string and rake db:migrate.

Although the output from those commands seemed normal, the /posts/new page still only shows the initial two fields, title and content. The same goes for /posts/x/show and /posts/x/edit.
The view file itself only contains render 'form', so apparently I missed something here?

Do I have to run any additional commands to add the new fields to the forms?

Just starting to get into Rails, and this particular issue is pretty hard to google so I figured I’d ask the question here.

  • 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-31T04:13:44+00:00Added an answer on May 31, 2026 at 4:13 am

    Adding the migration doesn’t change the views that were creating by generating the scaffold. So you either need to re-run the generation for the scaffold, or just manually edit the _form file to add the new columns.

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

Sidebar

Related Questions

Right, initially ran: c:\regsvr32 Amazing.dll then, (accidentally - I might add) I must have
We have few components like libraries dlls When initially created I ran the following
Initially I wanted a checkmark where the text is placed on the left of
I just ran the following commands on my Ruby on Rails project: git init
Initially I ran this code without the leading cmd and I received an access
I'm new to jsp and have ran into some trouble. Initially, the jsp file
I am trying to set up TeamCity. Initially, I ran into various issues but
I am building a JApplet in NetBeans. When the application is initially ran it
Initially I thought this was going to work, but now I understand it won't
Initially I deployed packages on SQL server but since my machine is not having

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.