The following line works fine in MySQL, but in Postgresql I get a rail error, "Fixnum does not convert to string Can be done ".
viewable.update_editrile (: total_views, viewable.Tot_views.to_i + 1)
Total_view is an integer field
The short answer is "yes" the rail should know how to make that column as an integer Deserialize
viewable.increment (
: total_view))
Comments
Post a Comment