class Public::CommentsController < ApplicationController  

	def create
		@comment = Comment.new(params.require(:comment).permit(:website, :pseudo, :email, :comment, :commentable_id, :commentable_type))
	
		

	
		if @comment.save
			commentable = @comment.commentable
			@comment_id = @comment.id
			@comment = Comment.new
			@comment.commentable = commentable

		end

	end

end