On 3 Mar 2009, at 13:26, Adam Akhtar wrote:

>
> thanks fred, what im doing is pertty much like gmail. I have links  
> on my
> side nav equivalent to gmails "inbox" and "starred". When i click on
> inbox in gmail it renders the list of emails in my inbox without a
> refresh. Teh same with all "starred" etc. Id like that functionality.
>
> So i guess id have to extract that area of the screen into a partial  
> and
> call it via a page.replace_html "the_partial" and for standard html
> responses just render the same partial in the actions view? right???

Yes. If you're just updating that one page element you don't even need  
replace_html, just do

link_to_remote 'blah', :update => 'some_id', ...

and have the corresponding controller render some (html) partial in  
the normal way, the results of the render will be used to update the  
page element with that id

Fred
>
>
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


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