Re: HTML shortcuts

Zack Chandler
Wed, 21 Mar 2007 06:28:20 -0000

Corey,

That is the older deprecated way.  The new way is:

<% form_tag :action => ''create'' do %>
  ...
<% end %>

Hope this helps.

--
Zack Chandler
http://depixelate.com

On 3/20/07, Corey Konrad
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
>
> I am just learning ruby on rails, i have known HTML for a few years now
> and i dont really see how the HTML control shortcuts in Erb are
> shortcuts they just seem to be a different way of creating an HTML
> control not a shortcut.
>
> I mean look at these two form tags does the first one seem like a
> shortcut? Maybe that is just the opinion of the author of the book i am
> reading i dont know, am i missing something? Thanks
>
> <%= start_form_tag ({:action => "at"}, {:method =>
"post"}) %>
> <%= end_form_tag %>
>
> <form action = "/look/at" method = "post"
>
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >