Leonel *.* wrote in post #949977:
>> You don't need it separately in the session!  If the current user is
>> only adding users to his own account, then you've already got the
>> account ID in the current user's info!
>
> Done.
>
>   <div class="actions">
>     <%= f.hidden_field :account_id, :value =>  @account_id %>
>     <%= f.submit %>
>   </div>

Actually, if you've already got it from the current user, then you don't 
even need the hidden field.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
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