On Mon, Apr 18, 2011 at 6:01 PM, Tomas R. <li...@ruby-forum.com> 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 %>
 <div class="field">
   <%= label_tag :key %><br />
   <%= text_field_tag :key %>
 </div>
 <div class="actions">
   <%= submit_tag 'validate' %>
 </div>
<% end %>

B.

-- 
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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to