I am getting an error from a recent change I made using heroku console.
After I apply this:
u = User.where(:email => '[email protected]').first
u.invitation_limit = 10
u.save
I get this error:
ActionView::Template::Error (comparison of String with 0 failed):
On this line of code:
<% if current_user.invitation_limit > 0 %>
invitation_limit is an integer field in the database and the number 10 is clearly an integer, but do I need to use to_i, like this?
u.invitation_limit = 10.to_i
Curious if this is a common thing that I am unaware of.
Please let me know if you know anything about this.
Thanks in advance, Brian