rails params path with ajax
I am currently using some URL parameters to sort and categorize blog posts. For example, the parameter category=politics
would pull all postings with the category of politics.开发者_运维知识库 Is there any way to load this with ajax or is a page refresh the best way?
It really depends on your User Interface.
I tend to use Ajax a lot, it makes websites much more "smooth".
Well, your question is very close to this great Railscast, have a look! http://railscasts.com/episodes/240-search-sort-paginate-with-ajax
精彩评论