The following works for an update
:
after_filter :only => [:create, :update] do
logger.info params[:id]
end
How can I reference the id on create
?
You can't. There's no params[:id] because you don't have any record of that id, you only create it.