I have the following in a controller:
@users = User.order("created_at").all
@user_count = @users.length.to_i
@active_7_day = .....count.to_i
@mystat = (@user_count / @active_7_day)
No errors which is nice, but in the view @mystat is always 0? How do you do division in Rails?
Thanks
The result is probably a float.