Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ArticlesController < ApplicationController
- def new
- end
- def create
- render plain: params[:article].inspect
- end
- end
- Template is missing
- Missing template articles/create, application/create with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}.`
- articles GET /articles(.:format) articles#index
- POST /articles(.:format) articles#create
- render plain: params[:article].inspect
- render text: params[:article].inspect
- class ArticlesController < ApplicationController
- def new
- end
- def create
- render text: params[:article].inspect
- end
- end
- {"title"=>"First article!", "text"=>"This is my first article."}
- # i.e. your params(whatever params hash contains)
- class ArticlesController < ApplicationController
- def new
- end
- def create
- params[:article].inspect
- render nothing: true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement