Sha256: bc2af421a81b94967bc7151fc2546cac2de55e46cf92ded9864a013a9d0f148a
Contents?: true
Size: 281 Bytes
Versions: 10
Compression:
Stored size: 281 Bytes
Contents
class DirectPostsController < ApplicationController def new @post = Post.new end def create @post = Post.new(params.require(:post).permit(:title, :document_cache_id)) if @post.save redirect_to [:normal, @post] else render :new end end end
Version data entries
10 entries across 10 versions & 2 rubygems