When doing something similar to your example on
https://github.com/activescaffold/active_scaffold/wiki/Adding-custom-actions,
the action completes correctly but when I click on the bottom paging
options, the url for the next page has been changed to the url of the
action that just took place causing an error similar to `Couldn't find
Invoice with 'id'=paid`. The same happens if I just process the action
without *process_action_link_action* and then call *list*. How do I make
sure that the paging will work properly based on the original list?
```
class InvoicesController < ApplicationController
active_scaffold do |config|
config.action_links.add :paid, :type => :collection, :method => :put,
:position => false
[more configuration]
end
def paid
process_action_link_action do
self.successful = true
each_record_in_page { |record| record.paid! }
end
end
end
```
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.