Is using partials the best way to dynamically change content in RoR?
I have a lot of ajax calls that ask a page to insert partials where a user clicks, loading new content.
var url = '/images/thumbnails/'+ this.main_id; new Ajax.Updater(this.thumbnail_wrapper, url);
This loads content into the thumbnails_wrapper div. But I have so many partial urls generated on my site now. Is this really the best way to do this? I wonder if this is a messy solution somehow.. Thanks, new to RoR.
Yes i think its better way, but the that meters here is that how much batter way you mange the partials, and app should be REST. For proper recommendation need to know your proper scenario.