Added .try to params[:action]

possible fixes #22