1)
i have added <td><%= check_box_tag("line_ids[]", record.id) %></td> in
_list_record.html to get a
checkbox per line.
2)
i have created an action_link in controller
config.action_links.add 'set_fertig_status',:label => 'Selektierte
Positionen Status setzen',
:type => :table,
:page => :true
3) in method i wanna update all selected lines
def set_fertig_status
Project.update_all(["project_status_id=?", 1], :id => params
[:line_ids])
self.update_table
end
BUT params is nil
and i get an error 'ActiveRecord::RecordNotFound (Couldn't find
Project with ID=set_fertig_status):'
routes.rb
map.resources :projects, :active_scaffold => true, :collection =>
{:browse => :get}, :member => {:select => :post}
how can i get this running ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---