Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

duleorlovic's Profile

GitHub User: duleorlovic

Comments by

Avatar

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:

ruby
   <% if ! f.object._destroy %>

     render ...

   <% end %>