I was trying something like that.  My first form starts with:

     <form id="registerForm" method="post" action="register02">
            <input type="hidden" name="passedUser" id="passedUser"
value="<% @user.id %>" >
             . . .

In my controller, I do this:

  def register
    @user = User.create()
  end

But when I inspect (using NetBeans debugger) the params hash,
passedUser is an empty string.  I was expecting the User ID (42, or
whatever number is assigned by the database)

What am I missing?

On Dec 4, 1:45 pm, Thorsten Müller <[EMAIL PROTECTED]> wrote:
> Ok, so in action continue_registraton you have this user_id
> It should be part of the second form, so it is handed over to the
> third one.
> Commonly that's done with a hidden field in the second form:
>
> (assuming, it's in params[:user_id])
> <%= f.hidden_field :user_id, :value => params[:user_id] %>
>
> just replace params[:user_id] with the variable holding it,
> if it's not in params hash
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to