I currently add some custom links *above* an active scaffold using a
method from a plugin like this:
<%= plugin_method_creates_links({:id => section.id}) %>
<%= render :active_scaffold => 'section', :label => "Section"} %>
So the links generated by the plugin are completely separate from the
scaffold, but act upon the data the scaffold does.
These links have an onClick() event that calls a JavaScript function -
something like...
<a ... onClick(javascript:doWhatIWant(105))>Do</a>
...where the 105 comes from the :id param passed into the
plugin_method_creates_links() method
What I really need is to have these links appear *next to* the
standard scaffold "Create" link, within the scaffold.
I looked at the action_links docs, but see no way to invoke the plugin
method I need to use. For that matter, I don't see how to use them to
create the links I need at all - even if I forget the plugin and do it
myself. I don't see how to say "I want the onClick event of this link
to call the doWhatIWant() JS function, passing in the current
section's id.
Can anyone suggest how I might proceed?!
I was looking at overrides - is there a way overrides could be used
here. It doesn't look like it to me.
Thanks very much,
Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---