{"action":"created","issue":{"url":"https://api.github.com/repos/tryshoppe/shoppe/issues/303","labels_url":"https://api.github.com/repos/tryshoppe/shoppe/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/tryshoppe/shoppe/issues/303/comments","events_url":"https://api.github.com/repos/tryshoppe/shoppe/issues/303/events","html_url":"https://github.com/tryshoppe/shoppe/issues/303","id":116470974,"number":303,"title":"Order addresses","user":{"login":"nextgenappsllc","id":7575215,"avatar_url":"https://avatars.githubusercontent.com/u/7575215?v=3","gravatar_id":"","url":"https://api.github.com/users/nextgenappsllc","html_url":"https://github.com/nextgenappsllc","followers_url":"https://api.github.com/users/nextgenappsllc/followers","following_url":"https://api.github.com/users/nextgenappsllc/following{/other_user}","gists_url":"https://api.github.com/users/nextgenappsllc/gists{/gist_id}","starred_url":"https://api.github.com/users/nextgenappsllc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nextgenappsllc/subscriptions","organizations_url":"https://api.github.com/users/nextgenappsllc/orgs","repos_url":"https://api.github.com/users/nextgenappsllc/repos","events_url":"https://api.github.com/users/nextgenappsllc/events{/privacy}","received_events_url":"https://api.github.com/users/nextgenappsllc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-12T03:15:53Z","updated_at":"2015-11-15T02:58:27Z","closed_at":null,"body":"I get an error when accessing order.addresses to fix it I had to change order.rb line 24 from:\r\n\r\nhas_many :addresses, :through => :customers, :class_name => \"Shoppe::Address\"\r\n\r\nto:\r\n\r\nhas_many :addresses, :through => :customer, :class_name => \"Shoppe::Address\"\r\n\r\nIs this as intended and am I just not using it correctly? \r\n\r\nAlso I see :\r\n    # Some methods for setting the billing & delivery addresses\r\n    attr_accessor :save_addresses, :billing_address_id, :delivery_address_id\r\n\r\nHowever I can't access the methods and don't see reference to them anywhere else. Are these under development? I am currently trying to tie a Shoppe::Address object to an order rather than using the address attributes in the shoppe table.\r\n\r\nI am new to ruby so forgive me for any dumb questions. Thanks"},"comment":{"url":"https://api.github.com/repos/tryshoppe/shoppe/issues/comments/156774239","html_url":"https://github.com/tryshoppe/shoppe/issues/303#issuecomment-156774239","issue_url":"https://api.github.com/repos/tryshoppe/shoppe/issues/303","id":156774239,"user":{"login":"iqbalhasnan","id":794601,"avatar_url":"https://avatars.githubusercontent.com/u/794601?v=3","gravatar_id":"","url":"https://api.github.com/users/iqbalhasnan","html_url":"https://github.com/iqbalhasnan","followers_url":"https://api.github.com/users/iqbalhasnan/followers","following_url":"https://api.github.com/users/iqbalhasnan/following{/other_user}","gists_url":"https://api.github.com/users/iqbalhasnan/gists{/gist_id}","starred_url":"https://api.github.com/users/iqbalhasnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iqbalhasnan/subscriptions","organizations_url":"https://api.github.com/users/iqbalhasnan/orgs","repos_url":"https://api.github.com/users/iqbalhasnan/repos","events_url":"https://api.github.com/users/iqbalhasnan/events{/privacy}","received_events_url":"https://api.github.com/users/iqbalhasnan/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T02:58:27Z","updated_at":"2015-11-15T02:58:27Z","body":"Yes, you are right.\r\n\r\nit's supposed to be \r\n```Ruby\r\nhas_many :addresses, :through => :customer, :class_name => \"Shoppe::Address\"\r\n```\r\n\r\nIt seems like there are works in progress regarding storing the customer address in order."}}