I am reading information out of the db, but even though the color_ids
match the radio_button does not get checked. Are only strings valid
for comparing? Id is an integer.
I have this other problem, that “color_id” is not a database column it
is a method that returns an integer on page. But when the button is
clicked I wand to update the columns paint_id of the table page. How
would I do that? I get the error “undefined method”.
Please help!
Thank you!
I have this other problem, that “color_id” is not a database column it
is a method that returns an integer on page. But when the button is
clicked I wand to update the columns paint_id of the table page. How
would I do that? I get the error “undefined method”.
Please help!
Thank you!
in Page, define the following
def color_id=(i) #do whatever you need to set the value here. #the variable will be the id of the checked box in the submitted
form
end