Forgot to add the keyword end in the ability.rb model, fixed it