Esta aparecendo no console mas não cria no banco nem aparece mensagem de erro.
Este é o erro que aparece no console >>> Completed 500 Internal Server Error in 246ms (ActiveRecord: 0.0ms)
ActionView::Template::Error (can't add a new key into hash during iteration): 4: 5: <%= csrf_meta_tags %> 6: 7: <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> 8: <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> 9: 10:
app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb___50395374_38236848'Completed 200 OK in 341ms (Views: 322.7ms | ActiveRecord: 0.0ms)
::1 - - [07/Feb/2020:02:13:10 Hora oficial do Brasil] "GET /produtos/new HTTP/1.1" 200 2842
- -> /produtos/new ::1 - - [07/Feb/2020:02:13:10 Hora oficial do Brasil] "GET /produtos/new HTTP/1.1" 500 0
- -> /produtos/new Started POST "/produtos" for ::1 at 2020-02-07 02:13:25 -0300 Processing by ProdutosController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"T8h8wPMcGFITunL7mUT9JCgnFL1jyMRAdO7nYkXOuwOsEJ6lmHqhsNJRYp4Sp+GypzStKzg7vmiiFt1ShTCyPQ==", "produto"=>{"id"=>"555", "nome"=>"teste02", "imagem"=>"trtereere"}} Rendering produtos/create.html.erb within layouts/application Rendered produtos/create.html.erb within layouts/application (1.0ms) Completed 200 OK in 181ms (Views: 155.3ms | ActiveRecord: 0.0ms)
pode ver que ele nao cria no banco