I have the following code in Ruby, take directly from the Getting Started with Rails guide
def create
@post = Post.new(post_params)
@post.save
redirect_to @post
end
private
def post_params
params.require(:post).permit(:title, :text)
end
When I run the above Create
I get the following error.
can't convert Symbol into string