Any idea what I could be doing wrong here? I know it's not very useful to say ability.can? :manage, all; however I'm just trying to get started with CanCan.
I do have the gem, and have run generate cancan:ability.
Thanks.
Error and Code:
uninitialized constant Ability::CanCan Extracted source (around line #4):
1:
2: <% if current_user %>
3: <p>Currently logged in as <strong><%= current_user.email %></strong></p>
4: <% current_ability = Ability.new(current_user) %>
5: <%if can? :manage, :all %>
6: <p>Hey Buddy, You're Authorized ;)</p>
7: <% end %>