> > > yep u can > > > > index.js.erb > > > > and in it, render your response > > > > buts its worse idea, return json, and build dom > > I'm not sure to understand. > You think it's better to return json and than build the dom from the > javascript? >
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. Cheers, Andy * http://en.wikipedia.org/wiki/Don%27t_repeat_yourself -- 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.