Hello,
I have a form that the user is going to interact with, by updating, etc. The data is being pulled from the database, so that the user can see previous data and add new ones as well. So basically when I try to execute the code below, I get an error, saying that there is no method...
@display = Sales.find(:all, :conditions => ['year =?', _year])
render :partial => "display" #which renders the table that has the form in it.
<td><%= text_field 'display', 'price'%></td> #is the input field
I have price as a column in my database :S
Thanks for the help guys! Merry X-mas