title: Phoenix 1.3 problems adding custom action "No function clause ... "
body: <p>Few day ago, I started using Phoenix 1.3, and everything was fine until I started adding a new action in the controller.</p>
  
  <p>Router.ex</p>
  
  <pre><code> resources "/users", UserController, only: [:show] do
      resources "/events", EventController do
  
        get "/:id", EventController, :join, as: :join
      end
    end
  </code></pre>
  
  <p>Event_controller.ex</p>
  
  <pre><code>def join(conn, %{"event_id" =&gt; id}, current_user) do
  #some stuff..
  conn
    |&gt; put_status(:ok)
    |&gt; put_flash(:info, "You just joined Event")
    |&gt; redirect(to: page_path(conn, :index, current_user))
  end
  </code></pre>
  
  <p>then in my show template: /event/show.html.eex</p>
  
  <pre><code>&lt;%= link "To list", to: user_event_path(@conn, :index, @event.user) %&gt;
  &lt;%= if @current_user.id != @user.id do %&gt;
    &lt;h1&gt; &lt;%= @user.name %&gt; Event ! &lt;/h1&gt;
    &lt;h3&gt; &lt;%= @event.title %&gt;&lt;/h3&gt;
    &lt;p&gt;&lt;%= @event.description %&gt;&lt;/p&gt;
    &lt;p&gt;&lt;%= @event.location %&gt;&lt;/p&gt;
    &lt;p&gt;&lt;%= @event.price %&gt;&lt;/p&gt;
    &lt;%= link "Join", to: user_event_path(@conn, :join, @current_user.id,
    @event.id), class: "btn btn-default btn-xs" %&gt;
  </code></pre>
  
  <p>I tried to do something like that in other projects with Phoenix 1.2 and its work, but it wasn't exactly the same code.</p>
  
  <p>Can someone help me to understand why it is not working...</p>
  
  <p>Btw sorry for my English!</p>
  
  <p>The Error saying :</p>
  
  <pre><code>No function clause for Eventoma.Web.Router.Helpers.user_event_path/4 
  and action :join. The following actions/clauses are supported:
  user_event_path(conn_or_endpoint, :create, user_id, opts \\ [])
  user_event_path(conn_or_endpoint, :delete, user_id, id, opts \\ [])
  user_event_path(conn_or_endpoint, :edit, user_id, id, opts \\ [])
  user_event_path(conn_or_endpoint, :index, user_id, opts \\ [])
  user_event_path(conn_or_endpoint, :new, user_id, opts \\ [])
  user_event_path(conn_or_endpoint, :show, user_id, id, opts \\ [])
  user_event_path(conn_or_endpoint, :update, user_id, id, opts \\ [])
      (phoenix) lib/phoenix/router/helpers.ex:299: Phoenix.Router.Helpers.raise_route_error/5
  </code></pre>