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.

Need Your Help

How do I build a loop in JavaScript?

javascript loops

How can I build a loop in JavaScript?

Replace all special characters from a string using PHP

php encoding character-encoding replace

I am using jQuery editor with PHP it works fine for plane text (text with out special characters)

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.