Its probably dead easy but I don’t see it.
Got this in my controller.
User.find(params[:id]).computers.create(:comp => ‘New Comp:’)
Which with an .rjs template creates a div at the bottom of my list.
This all works like a charm.
But in the partial I load in my rjs I also have a button for ‘delete’ in
So my question is:
How do I get the ‘id’ of the newly created computer I created in my
I need that id to populate that in the partial I load in the rjs
Thanks in advance.