Render inside the page

Asked

Viewed 144 times

0

Guys I’m new in Rails and I’m having trouble with RENDER

I have a render "_Tables-client" inside the page and when I have run a method, I want to update only the specific render and not the whole page, has as?

  • Try to render partial ex. this link http://guides.rubyonrails.org/layouts_and_rendering.html and http://api.rubyonrails.org/classes/ActionView/PartialRenderer.html will load to the page but will save the session the imputed information

  • managed to solve this problem? can post an excerpt of your code to demonstrate what you want to do? read more here.

1 answer

1

You can use the AJAX method .load(), selecting only what you want to update and searching for updated data in your controller through the URL, you can also pass parameters.

$(selector).load(URL,data,callback);

https://www.w3schools.com/jquery/jquery_ajax_load.asp

Browser other questions tagged

You are not signed in. Login or sign up in order to post.