ruby on rails - Should I use a controller? -
in ruby on rails application application lists records , have button filters update elements in page without refreshing page.
right use javascript onclick events on buttons show/hide records in page, somehow feel should using controller. feel have javascript in index.html erb file.
is correct way of filtering records (without page refresh) on erb index page done using controller or ok using javascript?
i think you're doing right thing, filter client-side.
doing request filtering have useless in case. consider reorganizing javascripts in simpler way. there lots of javascript frameworks can in job nowadays, such as:
Comments
Post a Comment