Skip to content

Instantly share code, notes, and snippets.

@chancancode
Created December 23, 2009 09:47
Show Gist options
  • Save chancancode/262434 to your computer and use it in GitHub Desktop.
Save chancancode/262434 to your computer and use it in GitHub Desktop.
>> @item.tag_list = ""
=> ""
>> @item.save
=> true
>> @item.tag_list
=> []
>> @item.tag_list = "Tom, Mary's lamb, Jerry"
=> "Tom, Mary's lamb, Jerry"
>> @item.save
=> true
>> @item.tag_list
=> ["Tom", "Mary's lamb", "Jerry"]
>> @item.tag_list = ""
=> ""
>> @item.save
=> true
>> @item.tag_list
=> []
>> @item.tag_list = "Tom, Mary\"s lamb, Jerry"
=> "Tom, Mary\"s lamb, Jerry"
>> @item.save
=> true
>> @item.tag_list
=> ["Tom", "Mary\"s lamb", "Jerry"]
>> @item.tag_list = ""
=> ""
>> @item.save
=> true
>> @item.tag_list
=> []
>> @item.tag_list = "Tom's car, Mary's lamb, Jerry"
=> "Tom's car, Mary's lamb, Jerry"
>> @item.save
=> true
>> @item.tag_list
=> ["s car, Mary", "Toms lamb", "Jerry"]
>> @item.tag_list = ""
=> ""
>> @item.save
=> true
>> @item.tag_list = "Tom\"s car, Mary\"s lamb, Jerry"
=> "Tom\"s car, Mary\"s lamb, Jerry"
>> @item.save
=> true
>> @item.tag_list
=> ["s car, Mary", "Toms lamb", "Jerry"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment