mm, u can do it but 1) u should write yet anothe action at controller, its not like REST 2) its will be more slower, than render at mobile device, from json
Ivan Nastyukhin dieinz...@me.com On Jun 3, 2010, at 5:39 PM, Andy Jeffries wrote: > I'd do it as the OP requested, have a partial used in both places and return > that. > > Sorry, just realised you were the OP :-) > > In particular I'd use jQuery's load method to load the URL in to an element > (the original page's container for this section): > > http://api.jquery.com/load/ > > And from within the controller just render the partial: > > render :partial => "my_data" > > (having a view called _my_data.html.erb). > > Cheers, > > > Andy > > -- > 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 rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.