ruby - undefined method `params_require' - New into rails -


i try code small blog in rails , when tried save post through website error. can create post console thats not goal.

this code create method:

  def create @post = post.new(post_params)       if post.save          redirect_to post.path      else          render "new"   end   end    def post_params     params_require(:post).permit(:title, :content)   end 

would nice if can me.

def post_params   params.require(:post).permit(:title, :content) end 

change params_require params.require


Comments

Popular posts from this blog

ios - Pass NSDictionary from Javascript to Objective-c in JavascriptCore -

python - PyInstaller UAC not working in onefile mode -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -