Change attribute name to content
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
json.extract! article, :id, :title, :text, :created_at, :updated_at
|
||||
json.extract! article, :id, :title, :content, :created_at, :updated_at
|
||||
json.url article_url(article, format: :json)
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<%= form.label :text %>
|
||||
<%= form.rich_text_area :text %>
|
||||
<%= form.label :content %>
|
||||
<%= form.rich_text_area :content %>
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
|
||||
Reference in New Issue
Block a user