update routes.rb;
update ApplicationController to inherit ActionController::Base;