Rails: Render Partial from controller
问题 I have a view, that contains a submit button, and on submit I need to render a partial view in the same page. I noticed that when I use render partial in controller, the other view opens in another page. So based on this answer Rendering a partial from a controller in rails I did the following: in my controller I added this to the main action (manage_payments): def manage_payments @guardian = Guardian.find(params[:id]) @students=Student.find_all_by_sibling_id(@guardian.ward_id) if request