<h1>Editing bookmark</h1>

<%= form_for @bookmark, :action => 'update' do |f| %>
  <p>
    <%= label_tag 'Title' %><br/>
    <%= f.text_field :title, :required => true %><br/><br/>
    <%= label_tag 'Url' %><br/>
    <%= f.text_field :url, :required => true %><br/><br/>
    <%= label_tag 'Description' %><br/>
    <%= f.text_area :description, :required => true %><br/>
  </p>
  <p>
    <%= f.submit 'Update' %> |
	<%= link_to 'Back', :action => 'list', :id => @bookmark.topic_id %>
  </p>
<% end %>
<h1>Editing bookmark</h1>

<%= form_for @bookmark, :action => 'update' do |f| %>
  <p>
    <%= label_tag 'Title' %><br/>
    <%= f.text_field :title, :required => true %><br/><br/>
    <%= label_tag 'Url' %><br/>
    <%= f.text_field :url, :required => true %><br/><br/>
    <%= label_tag 'Description' %><br/>
    <%= f.text_area :description, :required => true %><br/>
  </p>
  <p>
    <%= f.submit 'Update' %> |
    <%= link_to 'Back', '#', :onclick => 'pageBack()' %>
  </p>
<% end %>

<script>
    function pageBack() {
        history.back()
    }
</script>
Add working back capability when updating bookmark
Add working back capability when updating bookmark
