jeudi 31 mars 2016

the file information in the database are displayed

I'm beginning rails and following some tuto, I have a problem of display in my home page. All the informations of my db appear (as you can see on the photo). I don't know if it is a setting of my software (SQLitebrowers), or

Photo of the Error !

views/layout/application :

<!DOCTYPE html>
<html>

<head>
  <title>Photo</title>
  <%=s tylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track'=>true %>
    <%=j avascript_include_tag 'application', 'data-turbolinks-track'=>true %>
      <%=c srf_meta_tags %>
</head>

<body>

  <div class="navbar navbar-default">
    <div class="container">
      <div class="navbar-header">
        <%=l ink_to "KÜTO", root_path, class: "navbar-brand"%>
      </div>
      <ul class="nav navbar-nav">
        <li>
          <%=l ink_to "Inscription", new_user_registration_path %>
        </li>
        <li>
          <% if user_signed_in? %>
            <%=l ink_to "Deconnection", destroy_user_session_path, method: :delete, data: {confirm: "Confirmez la deconnection ?"} %>
              <%else%>
                <%=l ink_to "Connection", new_user_session_path %>
                  <% end %>
        </li>
        <% if user_signed_in? %>
          <p>
            <%=l ink_to "Nouveau Plat", new_message_path, class: "navbar-right navbar-text navbar-link"%>
          </p>
          <%end%>
      </ul>
    </div>

  </div>
  <p class="notice">
    <%=notice%>
  </p>
  <p class="alert">
    <%=alert%>
  </p>

  <%=y ield %>

</body>

</html>

and views/messages/index :

<%= @messages.each do |message| %>
<h2> <%= message.title %></h2>
<%= link_to "Voir le message", message_path(message), class: "btn btn-default" %>
<% end %>

<br>

<%= link_to "New Message", new_message_path %>

Have you ever had it? How can I fix it ? I thank you ahead of time that you can help me

Have a good day

Aucun commentaire:

Enregistrer un commentaire