summaryrefslogtreecommitdiff
path: root/app/views/alerts
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/alerts
parentc14d0327a631a4321464c7c1e250d75458e13f49 (diff)
fix datatype names in generate.sh
Diffstat (limited to 'app/views/alerts')
-rw-r--r--app/views/alerts/_form.html.erb4
-rw-r--r--app/views/alerts/index.json.jbuilder2
-rw-r--r--app/views/alerts/show.json.jbuilder2
3 files changed, 4 insertions, 4 deletions
diff --git a/app/views/alerts/_form.html.erb b/app/views/alerts/_form.html.erb
index f0da996..b60eaf2 100644
--- a/app/views/alerts/_form.html.erb
+++ b/app/views/alerts/_form.html.erb
@@ -12,8 +12,8 @@
<% end %>
<div class="field">
- <%= f.label :author %><br>
- <%= f.text_field :author %>
+ <%= f.label :author_id %><br>
+ <%= f.text_field :author_id %>
</div>
<div class="field">
<%= f.label :message %><br>
diff --git a/app/views/alerts/index.json.jbuilder b/app/views/alerts/index.json.jbuilder
index 685157e..0911a5c 100644
--- a/app/views/alerts/index.json.jbuilder
+++ b/app/views/alerts/index.json.jbuilder
@@ -1,4 +1,4 @@
json.array!(@alerts) do |alert|
- json.extract! alert, :id, :author, :message
+ json.extract! alert, :id, :author_id, :message
json.url alert_url(alert, format: :json)
end
diff --git a/app/views/alerts/show.json.jbuilder b/app/views/alerts/show.json.jbuilder
index 83fe24a..95481eb 100644
--- a/app/views/alerts/show.json.jbuilder
+++ b/app/views/alerts/show.json.jbuilder
@@ -1 +1 @@
-json.extract! @alert, :id, :author, :message, :created_at, :updated_at
+json.extract! @alert, :id, :author_id, :message, :created_at, :updated_at