I am currently learning Rails Guides. I went through the steps but still encountered a mistake.
My Ruby version is ruby 2.1.1p76 and the Rails version is
ruby 2.1.1p76
You no need template means you could use render nothing: true
Try like this:
class ArticlesController < ApplicationController def new end def create params[:article].inspect render nothing: true end end
Please refer this link click here