On 3 January 2012 15:44, bryan <[email protected]> wrote: > Hi, > I have a method called by GET myapp/products > > when products is called it returns data to render > > in a particular point inside of that render I would like to call a > method that I generally call by > GET myapp/news > allow that method to render and put it into my combined output. > in other words something that might be better suited to an Ajax > request or an Iframe but currently I would like it to execute in one > single request. > > To retrieve the rendered data from my second method would I have to > do it as a HTTP GET? or is there some other Rails way.
Read up on view helpers and partials for ideas on how to do this. Extract the common code out to a helper and call it from both actions. Colin -- 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.

