From c0a9d8c1e5aaf9b0797a11433283e594865dd581 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sun, 20 Apr 2014 22:56:48 -0400 Subject: [PATCH] Return time entry on successful create --- app/views/api/v1/time_entries/create.json.jbuilder | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 app/views/api/v1/time_entries/create.json.jbuilder diff --git a/app/views/api/v1/time_entries/create.json.jbuilder b/app/views/api/v1/time_entries/create.json.jbuilder new file mode 100644 index 0000000..5bc0f01 --- /dev/null +++ b/app/views/api/v1/time_entries/create.json.jbuilder @@ -0,0 +1,4 @@ +json.time_entries [@time_entry] do |time_entry| + json.array! time_entry + #json.set! :href, api_time_entry_path(time_entry) +end