Guest User

Untitled

a guest
Apr 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. I'm using the old acts_as_taggable plugin , but am facing funny case
  2. follow this: open a console: script/console
  3. then try:
  4. >>Tag.find_or_create_by_name('get')
  5. => #<Tag id: 7375, name: "get", parent_id: nil>
  6.  
  7. then try to submit a non english dictionary word (latin letters)
  8. >> Tag.find_or_create_by_name('git')
  9. => #<Tag id: 9870, name: nil, parent_id: nil>
  10.  
  11. notice the name attribute; it gets nil value!
  12.  
  13. how can i change this behavior ? how does it know abt dictionary words?
Add Comment
Please, Sign In to add comment