summaryrefslogtreecommitdiff
path: root/app/views/matches
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-02-20 17:13:51 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-02-20 17:13:51 -0500
commitcd1fabe40ca4d290df33a2590f3a1f2072103972 (patch)
tree98afd236e1d14e892602304e739fc65d450a43fd /app/views/matches
parentc14d0327a631a4321464c7c1e250d75458e13f49 (diff)
fix datatype names in generate.sh
Diffstat (limited to 'app/views/matches')
-rw-r--r--app/views/matches/_form.html.erb4
-rw-r--r--app/views/matches/index.json.jbuilder2
-rw-r--r--app/views/matches/show.json.jbuilder2
3 files changed, 4 insertions, 4 deletions
diff --git a/app/views/matches/_form.html.erb b/app/views/matches/_form.html.erb
index 7d0a371..34494c3 100644
--- a/app/views/matches/_form.html.erb
+++ b/app/views/matches/_form.html.erb
@@ -12,8 +12,8 @@
<% end %>
<div class="field">
- <%= f.label :tournament %><br>
- <%= f.text_field :tournament %>
+ <%= f.label :tournament_id %><br>
+ <%= f.text_field :tournament_id %>
</div>
<div class="actions">
<%= f.submit %>
diff --git a/app/views/matches/index.json.jbuilder b/app/views/matches/index.json.jbuilder
index 0839c83..c8ada7a 100644
--- a/app/views/matches/index.json.jbuilder
+++ b/app/views/matches/index.json.jbuilder
@@ -1,4 +1,4 @@
json.array!(@matches) do |match|
- json.extract! match, :id, :tournament
+ json.extract! match, :id, :tournament_id
json.url match_url(match, format: :json)
end
diff --git a/app/views/matches/show.json.jbuilder b/app/views/matches/show.json.jbuilder
index a381f65..2e45395 100644
--- a/app/views/matches/show.json.jbuilder
+++ b/app/views/matches/show.json.jbuilder
@@ -1 +1 @@
-json.extract! @match, :id, :tournament, :created_at, :updated_at
+json.extract! @match, :id, :tournament_id, :created_at, :updated_at