{"action":"opened","issue":{"url":"https://api.github.com/repos/globalize/globalize/issues/463","labels_url":"https://api.github.com/repos/globalize/globalize/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/globalize/globalize/issues/463/comments","events_url":"https://api.github.com/repos/globalize/globalize/issues/463/events","html_url":"https://github.com/globalize/globalize/issues/463","id":104764696,"number":463,"title":"How do I use globalize with factory_girl?","user":{"login":"floydj","id":1292970,"avatar_url":"https://avatars.githubusercontent.com/u/1292970?v=3","gravatar_id":"","url":"https://api.github.com/users/floydj","html_url":"https://github.com/floydj","followers_url":"https://api.github.com/users/floydj/followers","following_url":"https://api.github.com/users/floydj/following{/other_user}","gists_url":"https://api.github.com/users/floydj/gists{/gist_id}","starred_url":"https://api.github.com/users/floydj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floydj/subscriptions","organizations_url":"https://api.github.com/users/floydj/orgs","repos_url":"https://api.github.com/users/floydj/repos","events_url":"https://api.github.com/users/floydj/events{/privacy}","received_events_url":"https://api.github.com/users/floydj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-03T19:27:20Z","updated_at":"2015-09-03T19:27:20Z","closed_at":null,"body":"I'm sure I must be missing something easy here, but I have the following in my model:\r\n\r\n```ruby\r\nclass CaseStudy < ActiveRecord::Base\r\n  validates :title, presence: true, uniqueness: true\r\n  validates_presence_of :challenge, :solution, :case_study_category_id\r\n  translates :title, :challenge, :solution, :customer, :location\r\nend\r\n```\r\n\r\nAnd here's my factory:\r\n\r\n```ruby\r\nFactoryGirl.define do\r\n  factory :case_study do\r\n    title \"Case Study Title\"\r\n    challenge 'something'\r\n    solution 'something'\r\n    case_study_category\r\n  end\r\nend\r\n```\r\n\r\nWhenever I try to create a factory, I get:\r\n\r\n`Validation failed: Title can't be blank`. It doesn't matter whether or not I have the title line in the factory. Always says validation failed. Any help would be appreciated.\r\n\r\n"}}