I've got a controller which displays a list of documents in the index 
action. There are action links for each document, 'view' and 'edit' are 
normal links that go to the pages, but 'delete' and 'publish' are ajax 
links that replace content in the actions div.

This works perfectly, however I am now trying to implement the 'view' 
page, and I'm having trouble re-using those ajax actions.

Above the document details in the 'view' page there should be a menu 
with 'edit', 'delete' and 'publish'. The problem is that the update divs 
are not the same for the index and view pages so the ajax actions don't 
update anything visible on the 'view' page.

i'm not sure if i have explained this very well, so please ask for more 
information if necessary.

Grateful someone has some ideas about re-using the ajax actions in a 
different view with different elements.

Thanks

Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to