carlsednaoui / nycio

NYC Tech Volunteer Database
6 stars 2 forks source link

App crashes at /events if logged out #55

Open carlsednaoui opened 10 years ago

carlsednaoui commented 10 years ago

I'll have to look into it (running to the office now)

image

mattjstar commented 10 years ago

When you add current_user to a controller that all users (signed in or not) can access you have to make sure to add an if signed_in? before calling it.

carlsednaoui commented 10 years ago

Thanks @mattjstar, I'll fix the bug soon :)

miclovich commented 10 years ago

This should be working... however, the before_filter at the event's controller should first "authenticate"...