Rails 3 amistad how to use?
===

I want to use amistad gem as the friends activities but i cant find a good tutorial for it . .When i try to add a friend i get

    Couldn't find User without an ID.. 

does anyone know a tutorial or wiki page about this gem. Or can you show a solution: the problem is that, cant get friends user_id automatically.

This is my config/routes.rb

    devise_for :users, :path_prefix => 'd'
    resources :users, only: [:index, :show]
    resources :friends, :controller => 'friendships', :except => [:show, :edit] do
    get "requests", :on => :collection
    get "invites", :on => :collection
    end

This is my friendships_controller :

    class FriendshipsController < ApplicationController
      
    before_filter :authenticate_user!
    
      def index
        @friends = current_user.friends
        @pending_invited_by = current_user.pending_invited_by
        @pending_invited = current_user.pending_invited
      end
    
      def create
        @Friend = User.find(params[:user_id])
        @friendship_created = current_user.invite(@Friend)
        if @friendship_created
          flash.now[:notice] = "Une demande d'amiti a t envoye  #{@friend.fullname}"
        end
      end
    
      def approve
        @Friend = User.find(params[:user_id])
        @friendship_approved = current_user.approve(@Friend)
        @friends = current_user.friends
        @pending_invited_by = current_user.pending_invited_by
        flash.now[:notice] = "La demande d'amiti de #{@friend.fullname} a t approuve"
      end
    
      def remove
        @Friend = User.find(params[:user_id])
        @friendship = current_user.send(:find_any_friendship_with, @Friend)
        if @friendship
          @friendship.delete
          @removed = true
          flash.now[:notice] = "L'amiti avec #{@friend.fullname} a t supprime"
        end
      end
    end.


And my add to friend link :

    <% unless current_user == @user  %>
    <%= link_to "Arkadaşlarıma Ekle", friends_path(:friend_id => @user), :method => :post,class: "btn btn-large btn-primary" %>
    <%end %>