I am stuck on this exercise and I cannot find out why, I already tried restarting it twice, before I got stuck at 6.3, did it again with the exact same code and moved on up to 6.5, now stuck again on:
It keeps saying: Did you add the link to the destination? I'm pretty sure I did and cannot spot if there is a syntax error, reviewed it tens of times.
I tried making the link_to line of code inside an html paragraph, even storing @destination instance variable into a local variable, and going through @destinations on an each loop, (as I see on some posts for this exercise), although it does not say to iterate at this point. Tried changing the code to the one of others which worked.. I think unfortunately this Rails Course may be bugged, or I made some mistake much earlier which 'passed' and is now making issues.. and restarting is not fixing it. I was al hyped about the site after the Ruby course which was great, can you help me get my faith back? 2nd day on it and It's getting really annoying.
Oh and there's also the fact that I submitted this as a bug yesterday and today, already 3 times with no answer. Pay to win only?
Thanks in advance,
<div class="header"> <div class="container"> <img src="http://s3.amazonaws.com/codecademy-content/courses/learn-rails/img/logo-1tm.svg" width="80"> <h1>BokenjiKan</h1> </div> </div> <div class="destination"> <div class="container"> <div class="row"> <div class="col-xs-12"> <%= image_tag @destination.image %> <h2> <%= @destination.name %> </h2> <p> <%= @destination.description %> </p> <%= link_to "See more", destination_path(@destination) %> </div> </div> </div> </div>
Rails.application.routes.draw do get 'tags' => 'tags#index' get '/tags/:id' => 'tags#show', as: :tag get '/destinations/:id' => 'destinations#show', as: :destination end
class DestinationsController < ApplicationController def show @destination = Destination.find(params[:id]) end end
class TagsController < ApplicationController def index @tags = Tag.all end def show @tag = Tag.find(params[:id]) @destinations = @tag.destinations end end