title: Back link to show page from nested resource
body: <p>I have a Schedule page that is nested under events and I would like a link so that users can go back to the event show page but I get an error.</p>
  
  <h3>Error</h3>
  
  <pre><code>syntax error, unexpected '(', expecting ')'
  </code></pre>
  
  <h3>Routes</h3>
  
  <pre><code>resources :events do
    resources :sessions, path: "schedule", only: [:index]
  end
  </code></pre>
  
  <h3>View</h3>
  
  <pre><code>&lt;%= link_to "Back to Event", @event_path(@event) %&gt;
  </code></pre>
  
  <h3>Sessions Controller</h3>
  
  <pre><code>class SessionsController &lt; ApplicationController
  
    before_filter :find_event
  
    def index
      @sessions = Session.all
    end
  
    private
  
    def find_event
      @event = Event.find_by(slug: params[:event_id])
    end
  
  end
  </code></pre>