Displaying 1 result from an estimated 1 matches for "paulog".
Did you mean:
paulo
2009 Sep 16
5
piece of code that runs only once
hi, an strange error is happening here
in User model i have the following method:
def falta_votar
Category.find(:all) - votes.collect {|v| v.category}
end
and in the default.html.erb layout i have:
<%= current_user.falta_votar.size %>
but it only works once, when i try to access another page i get an
error message saying that the falta_votar method is nil, then i have
to restart