Added link_to, Not Proceeding


#1

Hi zystvan,
I also stuck at same point. Even I added link_to. Then also I am not able proceeding.
My code is like:

    <% image_tag @destination.image %>
    <%= @destination.name %>
    <%= @destination.description %>
    <%= link_to "See more", destination_path(@destination) %>

  </div>

#2

Hi @pravin_ruby,

<% ... %> is for Ruby code to be executed, but not shown. <%= ... %> is for Ruby code to be displayed on the screen.

Try using <%= image_tag %> for the image instead :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.