I have 2 models, say Model A and Model B, each one having certain fields (a1,a2,a3) and (b1,b2,b3).
I ran the scaffold command to generate the controllers and views for the models.
Now,
What i want to do is: -
On the new page of model A, I want to add a button/ href lin to create a new B object.
When the user clicks the button, a div appears below which has a form for creating B object.
When the user clicks the submit button after filling in the details for model B object, the changes are saved to the DB directly.
NOTE : A and B are not related to each other. Can someone suggest me a way to do so??