CanCan works properly now. Just have to work on appropriate redirection paths and particular abilities.

Take a look the index.html.erb file for restricting access in the View s layer.