Hi,
I have two models: Cart and Product, the HABTM relation and
carts_products table.
Now I have action connecting carts and products (without form):
blabla/carts/add/16/product_id:2
So I build data like this and save:
array(2) {
[Cart]=
array(1) {
[id]=
string(2) 16
}
You can try out one workaround that I use for myself.
It works for me, not sure for you, so give it a try alright?
Create a model specifically for your HABTM table.
When you do that, you are going to need a primary key set for that
table.
So you will need to modify your database table.
When you