Column accessor available in console, not in view?!?

I did a simple migration…


class AddAdminDesignationToUsers < ActiveRecord::Migration
def self.up
add_column :users, :is_admin, :boolean
end

def self.down
remove_column :users, :is_admin
end
end

Now, if I go into the rails console, I can load a user from the DB and I
get correct results… u.is_admin? => false.

But if I put that in a view…

<% if user.is_admin? %>
blah
<% end %>

I get an error…
undefined method `is_admin?’ for #User:0x47750ac

Any ideas why? I’ve restarted the server, and everything else I could
think of.