Skip to content

Instantly share code, notes, and snippets.

@bartimaeus
Created August 7, 2013 15:14
Show Gist options
  • Save bartimaeus/6174962 to your computer and use it in GitHub Desktop.
Save bartimaeus/6174962 to your computer and use it in GitHub Desktop.
Thanks sheeny! here is the final working solution with your help
...
def posts_params
params[:post][:tags] = params[:post][:tags].split(",") if params[:post][:tags].is_a? String
params.require(:post).permit(:title, :content, :tags => [])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment