mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 04:34:03 +00:00
`if..else` is better than unless with return. On failed update render `edit` template and not render `new` template. On failed save redirect to index path and not render `new` template. Change `destory` to `withdraw`, cause `destroy` makes DELETE request when we are updating the event record. Check for success for save in withdraw (save can fail for reasons other than validation). |
||
|---|---|---|
| .. | ||
| _encouragement_text.html.haml | ||
| _form.html.haml | ||
| _proposal_form.html.haml | ||
| _tooltip.html.haml | ||
| edit.html.haml | ||
| index.html.haml | ||
| new.html.haml | ||
| show.html.haml | ||