Fixing null string problem new in Rails 4