On 1/28/07, Emil Kampp
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> Hi there.
>
> Im in dire need of some assistance;
>
> I need to give my form this syntax:
>
> >> <form action="some_action/some_id"
method="get" id="form_id">
>
> The important part here, is the id="form_id" the rest, i can make
by
> this code:
>
> >> <%= form_tag :action => ''some_action %>
>
> Does anyone have som egood idears ?
>
> - Emil
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
Emil,
form_tag( { :action => ''do_something'' }, { :id =>
''my_id'' } )
Also, if you''re on Rails 1.2 use the block version:
<% form_tag(...) do %>
...
<% end %>
Hope this helps.
--
Zack Chandler
http://depixelate.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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---