rescuedcode/StaffPlan — comment on commit 7a6d4fc0e72b90807fa2e5a449339a7bbdadaecd
File:  line 0
By Veejay:

Rendering the show template for users with format: "json" now renders the JSON template created with Jbuilder.

After having a look in the StaffControllers#show action, I made the template so that it matches the format of method staff_as_json in the User model. I couldn't find a way to use that template to replace the current method call.

It also raises questions about different JSON needs for different actions.

Should those templates even be tied to a controller action in the first place?