summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/application/json/_tutorials.jbuilder16
-rw-r--r--app/views/my/kitchens/show.html.erb2
2 files changed, 18 insertions, 0 deletions
diff --git a/app/views/application/json/_tutorials.jbuilder b/app/views/application/json/_tutorials.jbuilder
new file mode 100644
index 00000000..2c7f7692
--- /dev/null
+++ b/app/views/application/json/_tutorials.jbuilder
@@ -0,0 +1,16 @@
+json.cache! items do
+ json.array! items do |tutorial|
+ json.id tutorial.id
+ json.heading tutorial.heading
+ json.description tutorial.description
+ json.url tutorial.url
+ json.image_url tutorial.image_url
+ json.author tutorial.author
+ json.author_url tutorial.author_url
+ json.created_at tutorial.created_at
+ json.updated_at tutorial.updated_at
+ json.tags tutorial.tags do |tag|
+ json.name tag.name
+ end
+ end
+end
diff --git a/app/views/my/kitchens/show.html.erb b/app/views/my/kitchens/show.html.erb
index 17189319..519d8b1c 100644
--- a/app/views/my/kitchens/show.html.erb
+++ b/app/views/my/kitchens/show.html.erb
@@ -10,6 +10,8 @@
<%= backbone_collection_for @categories %>
<%= backbone_collection_for @tags %>
+<%= backbone_collection_for @cakes %>
+<%= backbone_collection_for @tutorials %>
<%= javascript_tag do %>
csx.initialize({ access_token: '<%= current_user.authentication_token %>' });