I am running several views of the same model in Active Scaffold for
workflow purposes. Each view uses inplace_edit = true.

The model is called Car and there is a CarsController and inplace_edit
works fine.

The other 'view' is called (for example purposes) Cars2Controller and
inplace_edit fails with ActionController::UnknownAction on the
update_column action.

I'm guessing Cars works because AS tries to figure everything out via
the names and so automatically provides a 'column_update' method on
CarsController which updates the Cars model, whereas Cars2 fails as
there is no Cars2 model.

What is the right way to make Cars2 work with inplace_edit? I'm
assuming it's going to be one of three options:

(1) Create a Cars2 model as a sub-class of Cars - not sure how this
would work given I haven't implement polymorphism or a type column.

(2) Build a custom update_column model for the Cars2 controller. Any
pointers here?

(3) (Hopefully) Sergio will point out some setting that's in the docs
that I couldn't find that says 'use this model instead of guessing it'
for the controller.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to