Closed jamessullivan77 closed 7 years ago
We worked through a 500 error that was being caused by the user not being logged in and attempting to access the current_user.id
. This was solved by using the devise method authenticate_user!
and applying it in the before filter (as of Rails 5 now called before action):
# inside your controller
before_action :authenticate_user!
This will protect all routes from access by unauthenticated users, which corrected this particular problem.
After fixing the error, would like to combine the new marker button with
So it drops a marker on press
Controller