I have 2 indirectly related models A and B
After creating a recored of model A, in view of A i show an option to create recored of model B. e.g. create B.
When user clicks on this option I pass A’s id by calling B’s create action using this url i.e. foo.com/B/create&a_id=21
While creating a record for model B I use this id to store the relation with A.
Now i have already created B’s record correctly and can see it in View.
In B’s view I want to allow user to create more of B’s records but here i don’t have access to A’s id “a_id”
coz i am already in B’s controller.
Could you pls tell me how to get this id from A and pass it to the current controller B.
Waiting for reply.