On 10 October 2015 at 23:16, Greg Bressler wrote:
> Thanks, Christian. you've given me some things to consider, but
> Present? is only in the error message, not in my code.
Have a look at line 16 in
https://github.com/GBressler/esl-site/blob/master/app/controllers/application_controller.rb
Coli
My error was that I overlooked adding authorization for User in my
CanCan ability.rb file. It fixes most of my errors, but still leaves my
with the problem of not being able to sign out or having the dynamic
elements of my html.erb pages work.
--
Posted via http://www.ruby-forum.com/.
--
Yo
Thanks, Christian. you've given me some things to consider, but
Present? is only in the error message, not in my code. Things seem to
work a little better if I comment out the authorize! line in my show and
edit methods, but then the sign out seems to break as well as the
dynamic elements of
Ruby is case-sensitive. In your first jpeg, change the `PRESENT?` method
to `present?` (on line 16 of your UsersController file)
Your second jpeg is showing that you haven't initialized your @user
object in the index action. You can initialize it in the UsersController
file, in the `index` meth
4 matches
Mail list logo