I am creating a scaffold -
rails g scaffold Contact email:string email_provider:string
but I want the email provider to be a drop down (wi
<%= f.select :email_provider, ["gmail","yahoo","msn"]%>
Rails drop down using has_many association for article and category:
has_many :articles belongs_to :category <%= form.select :category_id,Category.all.pluck(:name,:id),{prompt:'select'},{class: "form-control"}%>