Hello community!
Here is the problem:
I’m using select_tag and options_for_select for the 50 U.S States to be
sent to the database table called “properties”. But upon a new posting
or editing a posting, it does not post to the database.
<% form_tag :propertiy, :url => properties_url, :html => {:method =>
:put }%>
State: <%= select_tag ("state[]" , options_for_select(['AL', 'AK', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FL', 'GA', 'HI', 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', 'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY'])) %>
Can someone please help?