These are chat archives for padrino/padrino-framework
need some help with sequel association
I have two models https://github.com/sushant12/fuitter/blob/decrease-api-req/models/facebook_page.rb
What I want to do is, when i try to save
facebook_page, I want its column, foreign key, account_id be added too.
in the padrino c I did something like this
test = Account.find(id: 3) test.add_facebook_pages = FacebookPage.create(name: "finla")
but i got an err
NoMethodError: undefined method `add_facebook_page=' for #<Account:0x00000002834f58> Did you mean? add_facebook_page
adam12@sushant12 Glad you found the solution. add_<the_association> is indeed the correct way to use Sequel.
adam12wikimatze: nice :)
wikimatzethanks adam12 for answering and helping sushant
wikimatzeduring work it's not always easy to switch to the IRC tab and follow the discussions
adam12wikimatze: I understand completely.