> > > It's faster/lighter to do it that way. > > > > However, you often break DRY* as you have two sets of logic used to > > create > > markup from a dataset (one in Rails and one is JS). So I'm not sure I > > agree > > with Ivan. > > If you don't agree how would you do it? >
I'd do it as the OP requested, have a partial used in both places and return that. It depends on the amount of data/size of partial to be displayed - but as it's a mobile device I can't imagine it will be huge... 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.