Created
August 7, 2013 15:14
-
-
Save bartimaeus/6174962 to your computer and use it in GitHub Desktop.
Thanks sheeny! here is the final working solution with your help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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