Hi,

that s a good starting point, however you have to add some more code.

project -> tasks example.

First of all you have to add the following in your tasks controller:
config.actions << :batch_base
config.actions << :batch_create
config.batch_create.default_batch_by_column = :project

Add the following to your projects controller activescaffold
configuration:
conf.actions.add :mark
conf.action_links.collection.batch.add 'batch_new', :label
=> :create_project_tasks, :controller => :tasks, :type
=> :collection, :parameters => {:batch_scope =>
'MARKED'}, :dynamic_parameters => Proc.new { {:batch_create_by =>
params[:eid] || params[:controller]} }


If you open your projects controller you can select several projects
and click on batch_new action_link.
You may batch create a task which will be added to all selected
projects.

Hope that helps.

--
Volker



On 3 Apr., 14:22, ruinen <[email protected]> wrote:
> I updated my app to run with Rails 3 / Ruby 1.9 and installed Volker's
> version of active scaffold and the batch plugin. I've add the config
> statement:
>
>     config.actions << :batch_base
>     config.actions << :batch_create
>
> ... however all I get it a Batch -> Create link and then the create
> form looks pretty much identical to a single create. I can't seem to
> work out how to get it to work. I've read Volker's blog, yet no clues
> there. Anybody got any ideas?

-- 
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