This commit is contained in:
ahinz 2014-12-11 15:39:50 +01:00
parent 967c4d3520
commit cd73e4810a
2 changed files with 3 additions and 16 deletions

View File

@ -25,7 +25,7 @@
<div class="control-group">
<%= f.label :content, :class => 'control-label' %>
<div class="controls">
<%= f.text_field :content, :class => 'form-control' %>
<%= f.text_area :content, :class => 'form-control' %>
</div>
<%= error_span(@article[:content]) %>
</div>
@ -43,20 +43,7 @@
</div>
<%= error_span(@article[:active]) %>
</div>
<div class="control-group">
<%= f.label :created_by, :class => 'control-label' %>
<div class="controls">
<%= f.text_field :created_by, :class => 'form-control' %>
</div>
<%= error_span(@article[:created_by]) %>
</div>
<div class="control-group">
<%= f.label :updated_by, :class => 'control-label' %>
<div class="controls">
<%= f.text_field :updated_by, :class => 'form-control' %>
</div>
<%= error_span(@article[:updated_by]) %>
</div>
<%= f.submit nil, :class => 'btn btn-primary' %>

View File

@ -1,4 +1,4 @@
json.array!(@articles) do |article|
json.extract! article, :id, :title, :content, :rate, :active, :created_by, :updated_by
json.extract! article, :id, :title, :content, :rate, :active, :created
json.url article_url(article, format: :json)
end