sferik/rails_admin — Issue #815: can't create/update namespaced models
Author: cthulhu666
Created: 2011-11-03 13:40:34+00:00
State: open

Let's say we have a model Foo::Bar
new/edit forms are submiting 'bar' params, but getAttributes method in MainController expects 'foo_bar' params.
It seems like adding:
:as => @abstract_model.to_param.singularize.gsub('~','_')

to form_for fixes the problem, but probably there is a cleaner solution.