Minor changes to a model and controller file

Fixed a minor syntax error. format.json was ommitted. Additionally, removed a field from the list of attr accessible.