render index method rails with js code example Example: render partial rails <%= render "shared/menu" %>