R
R
Rouslan9432019-11-20 14:55:16
Ruby on Rails
Rouslan943, 2019-11-20 14:55:16

What does scope: hash do?

help people newbie) what does scope: do in the form_with argument? here is an example from the documentation <%= form_with scope: :article, local: true do |form| %>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikola Okonesh, 2019-12-01
@nikolaokonesh

Run it in the terminal
. There you will see in the app/views/articles/_form.html.erb partial
how it should actually be
Local: true I think it will not be needed, because it eliminates remote:true. Kill it short.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question