Do But Don’t Show
My current project is filled with Ajax calls and the front-end is handled mostly by JavaScript. Subsequently, there are times I just want to return 200 without any content. Rails provides a way to do this by:
render :nothing => true
This allows the execution of a method in controller without a render or a view.
Comments
Leave a Reply
You must be logged in to post a comment.