{"issue":{"state":"open","created_at":"2010-12-15T22:53:49Z","updated_at":"2011-11-30T12:14:16Z","comments":14,"user":{"gravatar_id":"fed5a8cd7937343452e549e38aa420ac","id":217428,"url":"https://api.github.com/users/brewster1134","avatar_url":"https://secure.gravatar.com/avatar/fed5a8cd7937343452e549e38aa420ac?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"brewster1134"},"body":"so i have a model called email.  i also have a user attribute called email.\r\n\r\nwith the way simple_form i18n is setup, it cannot differentiate between the two.\r\n\r\nfor example:\r\n    hints:\r\n      email:\r\n        to: 'Enter a valid To email address'\r\n        from: 'Enter a valid From email address'\r\n      user:\r\n        email: 'Enter your email address'\r\n\r\nwhen simple_form pulls the hint for user, it returns:\r\n`toEnter a valid email addressfromEnter a valid email address`\r\n\r\ni18n values should be nested under `model:` and `attributes:` similar to activerecord to avoid this","assignee":null,"id":476941,"labels":[{"name":"Bug","color":"ff0303","url":"https://api.github.com/repos/plataformatec/simple_form/labels/Bug"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":149,"title":"i18n issue: models and attributes with same name","html_url":"https://github.com/plataformatec/simple_form/issues/149","closed_at":null,"url":"https://api.github.com/repos/plataformatec/simple_form/issues/149","milestone":null},"action":"created","comment":{"created_at":"2011-11-30T12:14:15Z","updated_at":"2011-11-30T12:14:15Z","user":{"gravatar_id":"0525b332aafb83307b32d9747a93de03","id":47848,"url":"https://api.github.com/users/rafaelfranca","avatar_url":"https://secure.gravatar.com/avatar/0525b332aafb83307b32d9747a93de03?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"rafaelfranca"},"body":"@fringd could you open a new issue for this? If you want, I'll glad to merge a pull request for it. I'll close this issue since it was fixed by #368","id":2958632,"url":"https://api.github.com/repos/plataformatec/simple_form/issues/comments/2958632"}}