I am using a legacy database and I have a table called TEAM_PLAYER.
I added a new field to it called player_note and in my viewdetails.html.erb, i added the following line of code to retrieve the note associated with a player.
<label>Player Note:</label> <span> <%=h @teamplayer.player_note %> </span><br/><br/>
However i am getting ‘undefined method `player_note’ for #’
Am i missing something?? Note that I am not using the dbase migration coz i am already using a legacy database.
Thanks for any hints provided.
But you said –
then why no migration?
Also you need to restart your rails application for newly added column to take effect.