I had a scaffold named b_page I wanted to create another column , so I ran a migration:
rails g migration add_status_to_b_page status:string
so migration was successful. Users should be able to update their status so I put this on the _form.html.erb:
<div class="field">
<%= f.label :status %><br>
<%= f.text_field :status %>
</div>
was successful but then i added it to the show.html.erb
<%= @b_page.status %>
but everytime i make a new b_page or edit the current one I dont see it on show.html.erb
Aucun commentaire:
Enregistrer un commentaire