Hi everyone I am new to RoR and i am struck in a problem . I am trying to build a project named "new post" but i am getting an error named as ForbiddenAttributesError in file named as Post Controller. code written in that file is as follows: ========================================================= class PostsController < ApplicationController def new end def create @post= Post.new(params[:post]) @postsave redirect_to @post end private def post_params params.require(:post).permit(:title, :text) end def show @post=Post.find(params[:id]) redirect_to @post end def index @posts= Post.all end end ========================================================== Thanks
S
sangaur
@sangaur