You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NameError: undefined local variable or method `form' for #<Hanami::View::Rendering::Scope:0x007fcd04857d60> Did you mean? format form_for fork
/Users/nikita/.rvm/gems/ruby-2.3.0@ossboard/gems/hanami-view-1.0.0/lib/hanami/view/rendering/layout_scope.rb:221:in `method_missing'
/Users/nikita/.rvm/gems/ruby-2.3.0@ossboard/gems/hanami-view-1.0.0/lib/hanami/view/rendering/scope.rb:73:in `method_missing'
/Users/nikita/Projects/ossboard/apps/admin/templates/tasks/edit.html.slim:3:in `block in singleton class'
The text was updated successfully, but these errors were encountered:
I've done temporary fix, there is no 500 more, but we should decide how to handle fields that not passed validation. Should I show flash with errors on top of the page or highlight every field, like Simple Form does?
Also, I'm a bit stuck, may be you can advice me something and I will not spent extra time looking for a solution. The point is that when we update tasks/users in Update action, if operation is not successful we remain in the Update action, so we need method form in Update view. But the form will be 90% the same as in the Edit view. So where should I extract this method?
Steps to reproduce:
The text was updated successfully, but these errors were encountered: