Skip to main content
Ask A Question
Notifications
You’re not receiving notifications from this thread.
Subscribe

form using form_with not loading

Rails • Asked by Fugee Ohu

127.0.0.1 - - [30/Nov/2019:19:55:21 EST] "GET /items/new?utf8=%E2%9C%93&item%5Bitem_type_id%5D=9&commit=New+item HTTP/1.1" 200 1758
http://localhost:3000/items -> /items/new?utf8=%E2%9C%93&item%5Bitem_type_id%5D=9&commit=New+item

<%= form_with(model: @item, url: new_item_path(@item), method: "get") do |f| %>

 <div class="field">
     <%= f.select :item_type_id, nested_set_options(ItemType.all, @item_type) {|i| "#{'-' * i.level} #{i.name}" }, {:include_blank => "Select"}%>
 </div>

<div class="actions">
    <%= f.submit "New item" %>
</div>

<% end %>


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 31,353+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.