Ruby on Rails Sunday, December 1, 2019

The log only shows a 500 response How do I find the error?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b4e23064-1e81-487c-b3fb-a2a09f1c2c75%40googlegroups.com.

Ruby on Rails



On Saturday, November 30, 2019 at 9:01:50 PM UTC-5, Ariel Juodziukynas wrote:
The form looks ok, the parameters on the request too, it's impossible to tell you something else if you have nothing on the logs (rails and the browser's network tab) that could indicate an error

El sáb., 30 nov. 2019 a las 22:37, fugee ohu (<fuge...@gmail.com>) escribió:
 I guess I'd better explain the form I just posted is from the index view and on submit it's supposed to launch the new action and load the next form

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a4caf763-b02f-4d25-980d-a55310a55fa1%40googlegroups.com.

It gets a 500 response
127.0.0.1 - - [01/Dec/2019:08:25:49 EST] "GET /items/new?utf8=%E2%9C%93&item%5Bitem_type_id%5D=1&commit=New+item HTTP/1.1" 500 0
http://localhost:3000/items -> /items/new?utf8=%E2%9C%93&item%5Bitem_type_id%5D=1&commit=New+item
How do I find the error?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/77108a16-3395-4562-aabd-dbd77d8f80ee%40googlegroups.com.

Ruby on Rails

When I click submit nothing happens The console only shows the request

items/index.html.erb:

<%= 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 %>

new.html.erb:

<%= render form %>

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/53e9cef1-537b-4b77-8693-91b0e343f565%40googlegroups.com.