On Wed, Sep 3, 2008 at 11:40 PM, Neil Cauldwell
<[EMAIL PROTECTED]> wrote:

> We're nearly there - it'll be worth it, I'm sure! I'm just getting this;
>
>  ActionController::InvalidAuthenticityToken in
> GroupsController#auto_complete_belongs_to_for_invitation_recipient_name
> ActionController::InvalidAuthenticityToken
>
> And my form partial looks like this;
>
> <% @invitation = Invitation.new %>
> <div class="advanced search clearfix">
>  <% form_for ([EMAIL PROTECTED], @invitation]), :id => "invitation_form" do 
> |f|
> %>
>    <%= belongs_to_auto_completer :invitation, :recipient, :name %>
>    <%= f.submit 'Send Invitation', :class => "action_button submit" %>
>  <% end %>
> </div>

Hi Neil, that's related to Ajax calls and the request from forgery
protection. Just google for
"ActionController::InvalidAuthenticityToken ajax".

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to