Re: Is this correct:

Juraci Krohling Costa
Tue, 15 Feb 2005 17:36:11 -0000

Hi,

<%= start_form_tag :action=>"send_mail", :id=>@user.id %>
.....
<%= end_form_tag %>

=)

On Tue, 15 Feb 2005 18:28:34 +0100, Cutting Peter
<Peter.Cutting-CwpgxV1jTAxWk0Htik3J/w@public.gmane.org>
wrote:
>
>
>
> Hi
>
> While adding functionality to my noddy program I found I had to stick the
> user.id on the end of the form action URL to keep things working. I want to
> have the user.id on the end of the URL but I suspect that I am hacking it
> and that there is a better way.
>
> Below is the whole email_user.rhtml file
>
>
>
>
>
> <form action="../send_email/<%= @user.id %>"
method="post">
>
>
>
> Name: <%= @user.name %>
>
>
>
>  <textarea cols="40" id="message"
>
>             name="message"
>
>             rows="5" wrap="virtual">
>
> <%= @message %>
>
>
>
>
>
> <%= link_to ''Back'', :action =>
''list'' %>
>
>
>
>
>
>
>
> Bonus question - anyone know how to put the cursor in the textarea so that
> the user can start typing immediately.
>
> Thanks
>
> Peter
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>


--
juraci krohling costa