_form.html.erb 311 B

1234567891011
  1. <%= bootstrap_form_for(@news_post) do |f| %>
  2. <%= render 'shared/error_messages', object: f.object %>
  3. <%= f.text_field :name, label: 'Title' %>
  4. <%= f.text_area :content %>
  5. <%= f.hidden_field :news_feed_id %>
  6. <%= f.hidden_field :news_feed_type %>
  7. <%= f.submit class: "btn btn-primary" %>
  8. <% end %>