Displaying 1 result from an estimated 1 matches for "done_ico".
Did you mean:
domenico
2006 Aug 05
3
Four Days on Rails
...ding the tutorial and I have problems with the TinyInt(1) for the attribute "item.done". I thought this thread would be the best to post it. I''m using Rails 1.1.14. When in the partial template _list_stripes appears:
<%= list_stripes["done"] == 1 ? show_image("done_ico.gif") : " " %>
it always returns the  . This is cause I think Rails now considers tinyint(1) as a boolean, so to make this works the sentence may be changed to:
<%= list_stripes["done"] == true
---------------------------------...