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
The scaffolded expected post params dosen't include the class namespace .underscore.gsub(/^.*\//, '') whereas the form builder include the class namespaces .class.to_s.underscore.gsub(/\//, '_').
Edit : I meant the scaffolded parameters in controllers doesn't match form helper params for the model name. One is stripping the modules/namespaces whereas the other is not.
The scaffolded expected post params dosen't include the class namespace
.underscore.gsub(/^.*\//, '')
whereas the form builder include the class namespaces.class.to_s.underscore.gsub(/\//, '_')
.Generator
https://github.com/padrino/padrino-framework/blob/master/padrino-admin/lib/padrino-admin/generators/templates/page/controller.rb.tt#L15
https://github.com/padrino/padrino-framework/blob/master/padrino-admin/lib/padrino-admin/generators/orm.rb#L20
Form helpers
cc @dariocravero
The text was updated successfully, but these errors were encountered: