<%= simple_form_for(@post) do |f| %> <%= f.input :title %> <%= f.input :category, as: :select, collection: ["a", "b", "c"] %> <%= f.input :published_at %> <%= f.input :content %> <%= f.input :is_published %> <%= f.submit %> <% end %>