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?
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?
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);
Browser other questions tagged ruby-on-rails
You are not signed in. Login or sign up in order to post.
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
– Marcio de Jesus
managed to solve this problem? can post an excerpt of your code to demonstrate what you want to do? read more here.
– Daniel