Find id of newly created object

Hi there,

I'm kind of a newbie, so pardon me if this is obvious

I'm developing an app that has to accept creation of records from http requests such as

So I have this route :
map.connect '/in', action: 'incoming'

and this action in the controller (mostly borrowed from scaffold)

  def incoming
    @message =
    @message.text = params[:text]
    @message.sender = params[:alias]
    respond_to do |format|
        format.html # incoming.html.erb
        format.xml { render :xml => @message }

and a small view to acknowledge incoming message

Incoming message #<% %> from <%= @message.sender %>

Problem is I never get back the

I always get something like:

Incoming message # from myName

Any thoughts ?



Copy/paste error, or are you missing an '=' sign there?
   #<%= %>


I'm so stupid...
Can't understand how I missed that