This is simple (I am sure) but how do you get the id of the inserted
element after the element has been save?
I thought it was something like this:
@product = Product.new(params[:product]
flash[:notice] = ‘Product was successfully created.’
redirect_to :action => ‘list_products’
But that isn’t it