starburstgem / starburst

In-app announcements to users in your Rails app
MIT License
257 stars 29 forks source link

Getting 'false' for respond_to?(Starburst.current_user_method) in Starburst::AnnouncementController #13

Closed bkessler100 closed 8 years ago

bkessler100 commented 8 years ago

mark_as_read fails because of this. If I remove this check, everything seems to work but I'm not sure that's a good idea.

I wonder if I missed a step because in my installation I didn't create a new ApplicationController as per instruction:

"Add the following line to your ApplicationController (app/controllers/starburst/application_controller.rb)"

I just added it to my own ApplicationController as seems to be the case in the dummy app.

bkessler100 commented 8 years ago

Turned out my current_user was not a public method in ApplicatinoController.

Still think the documentation should be changed to: "Add the following line to your ApplicationController (app/controllers/application_controller.rb)" as it causes unnecessary confusion.