RailsCasts Pro episodes are now free!

Learn more or hide this

SimonToivoTelhaug's Profile

GitHub User: SimonToivoTelhaug

Comments by

Avatar

Hey
$ ruby -v
ruby 2.0.0p481

$ rails -v

Rails 4.1.5

I got some problem with

ruby
params.require(:article).permit(:name, :content, :published_on, :tags, :properties)

When I tryed to do a update, It leaved :tags out. It is becaus it expect a sting, not a array

This is the fix

ruby
params.require(:article).permit(:name, :content, :published_on, :properties, tags: [])