On 3 Mar 2009, at 12:29, Adam Akhtar wrote:
> > when a user clicks on a link_to_remote I would like to it to render a > view that i already have established. I know about page.redirect_to > but > that would force a refresh. Id like to do something like page.replace > "an_existing_view" > is this possible or would i have to convert the view into a partial > first? You can replace any element on the page (so I suppose you could do an update on the body element, although I've never done that. It is most common to have a partial for exactly that bit of the page that needs refreshing (if you're using ajax to refresh the entire page then it seems to me like you might as well keep it simple and just do a non ajax update) but you shouldn't have to do that. 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 -~----------~----~----~----~------~----~------~--~---

