added AlertsHelper
updated methods because of rails' 4 deprecations
added #flashes so that AlertsHelper works
added scope.
updated method because of deprecations
adding comments
symbols is faster.
hiding form after commenting