I have sending button with remote: true attribute, and if my controller doesnt have respond_to format.js, data, sended by button with remote: true, is showing without refresing web page. This behaviour incorrect?
1
votes
I believe with remote=true you won't refresh the web page... that's how it's suppose to work. But I don't understand the question very well, could you elaborate?
- Luis Ortega Araneda
guides.rubyonrails.org/…
- Sebastian Palma
To expand on the comment from @SebastianPalma (just a wee bit): This behavior is correct.
- jvillian
1 Answers
0
votes
remote: true
option is mostly used for ajax request. For example you can do something on back-end only or return some javascript code that will do something with your current html page. So yes, such behavior is a norm.
There is more information in official rails guides.