diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-02-20 17:13:51 -0500 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-02-20 17:13:51 -0500 |
commit | cd1fabe40ca4d290df33a2590f3a1f2072103972 (patch) | |
tree | 98afd236e1d14e892602304e739fc65d450a43fd /app/views/pms | |
parent | c14d0327a631a4321464c7c1e250d75458e13f49 (diff) |
fix datatype names in generate.sh
Diffstat (limited to 'app/views/pms')
-rw-r--r-- | app/views/pms/_form.html.erb | 8 | ||||
-rw-r--r-- | app/views/pms/index.json.jbuilder | 2 | ||||
-rw-r--r-- | app/views/pms/show.json.jbuilder | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/app/views/pms/_form.html.erb b/app/views/pms/_form.html.erb index bbc6aee..480e308 100644 --- a/app/views/pms/_form.html.erb +++ b/app/views/pms/_form.html.erb @@ -12,12 +12,12 @@ <% 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 :recipient %><br> - <%= f.text_field :recipient %> + <%= f.label :recipient_id %><br> + <%= f.text_field :recipient_id %> </div> <div class="field"> <%= f.label :message %><br> diff --git a/app/views/pms/index.json.jbuilder b/app/views/pms/index.json.jbuilder index aebdc08..fcfca84 100644 --- a/app/views/pms/index.json.jbuilder +++ b/app/views/pms/index.json.jbuilder @@ -1,4 +1,4 @@ json.array!(@pms) do |pm| - json.extract! pm, :id, :author, :recipient, :message + json.extract! pm, :id, :author_id, :recipient_id, :message json.url pm_url(pm, format: :json) end diff --git a/app/views/pms/show.json.jbuilder b/app/views/pms/show.json.jbuilder index 651e78f..94252e9 100644 --- a/app/views/pms/show.json.jbuilder +++ b/app/views/pms/show.json.jbuilder @@ -1 +1 @@ -json.extract! @pm, :id, :author, :recipient, :message, :created_at, :updated_at +json.extract! @pm, :id, :author_id, :recipient_id, :message, :created_at, :updated_at |