$('#new-meal').html('<%= j render partial: 'meals/new_form' %>'); $('#food_name').focus();