RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: duleorlovic
In case of unsuccessful update action, all fields that were marked for removing (_destroy = true) will be shown again. To hide them you can use something like this:
<% if ! f.object._destroy %> render ... <% end %>
In case of unsuccessful update action, all fields that were marked for removing (_destroy = true) will be shown again.
To hide them you can use something like this: