rails use counts in diferent views
- by Oluf Nielsen
Hello i guess this is going to be pretty noob question.. But..
I have an scaffold called list, which has_many :wishes. And with that information in my model, I can in my list view use this code
<%=h @list.wishes.count %
well now I have made an controller called statusboard..
And in that' I have 3 functions.. Or how to say it.. but it is…