Hi,
Is there an easy way to tell active scaffold to call a method rather
than update a column? I have a post model that uses a state_machine
plugin, and so it has something like:
state_machine :status, :initial => :open do
event :complete do
transition :pending => :completed
end
end
...
So, I would like to be able to have a select box in active scaffold
that has options such as 'complete', and by updating the model, it
will call
post.complete to let the state machine handle it, rather than just
updating the column.
Is this possible?
Thanks.
-patrick
--
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.