Added .try to params[:action]
possible fixes #22
Merge pull request #39 from jvanbaarsen/fix-issue-22

Added .try to params[:action]