vhochstein / active_scaffold

Rails 4 Version of activescaffold supporting jquery
MIT License
156 stars 34 forks source link

column_value_from_param_simple_value, value is a Array #181

Closed nakedmoon closed 8 years ago

nakedmoon commented 13 years ago

When have a record_select list form_ui and use inlace editor, the params submitted with POST request is a Array containing the name and the id of associated object (['Test',1]). The column_value_from_param_simple_value method try to find the record with column.association.klass.find(value), but value = ['Test',1]. The solution is passing only the id of associated object or find on value[1] instead on value.

vhochstein commented 13 years ago

Well, I would say, you are even further than I expected it could go.

For me record_select isnt working at all in inplace_editor