7 update a destination


#1

Hey guys. Stuck once again. This is my code for 'update a destination' Of course I get errors. But I have k=actually looked at the other form and sort of used that to code this here. Can someone check please?
` <%= image_tag @destination.image %>
<%= form_for(@destination) do |f| %>


<%= f.label :name %>


<%= f.text_field :name %>


<%= f.label :description %>


<%= f.text_area :description %>


<%= f.submit "Create" %>
<!-- Your code here -->



`


#2

Should the above line look more like this?

      <%= f.submit "Update", :class => "btn" %>

And we don't see the `end` for your `do` block

<% end %>