Re: Re: Problem with new action ''validate''

Bryan Crossland
2011-04-19T04:16:47Z

On Mon, Apr 18, 2011 at 6:01 PM, Tomas R.
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:

> so you say that should be form_for params[:key]? that wont work neither
>
>
You only fixed part of the issue. Fred pointed out two things. The first was
that you specified params[:key] incorrectly. The second, and more important,
is that you put your :action in the wrong place. Remove the :action from
your submit tag and change your form_tag to go to
invitations_validation_path.

<%= form_tag invitations_validation_path do %>

<%= label_tag :key %>
   <%= text_field_tag :key %>


   <%= submit_tag ''validate'' %>

<% end %>

B.