7.5 what is wrong?


#1

What is wrong with my code ?
I've tried hundreds of times and not step over 7.5

this is my code:
<%= form_for(@destination) do |f| %>


<%= f.label :name %>
<%= f.text_field :name %>


<%= f.label :description %>
<%= f.text_area :description %>


<%= f.submit "Update" %>

<% end %>

#2

line 3 try with text_area rather than text_field


#3

nope, does not work, the type of field would not necessarily be a problem


#4

Maybe help u

    <%= form_for(@destination) do |f| %>  
  <div class="field"> 
    <%= f.label :destination %><br> 
    <%= f.text_area :name %> 
    <%= f.text_area :description %>
  </div> 
  <div class="actions"> 
    <%= f.submit "Update" %> 
  </div> 
   <% end %>

#5

there is no way to make it work, I don't understand


#6

After thousand times, i restart the exercise, in the first try, it works!!


#7

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