Commit d2cbef5c

mo k <mo@mokhan.ca>
2012-03-01 03:15:08
turn the cancel button into a link that redirects back to the creation.
1 parent f227c87
Changed files (1)
app
views
app/views/creations/_form.html.erb
@@ -58,7 +58,7 @@
     </div><!-- /control-group -->
     <div class="form-actions">
       <button type="submit" class="btn btn-primary">Save changes</button>
-      <button type="reset" class="btn">Cancel</button>
+      <a href="<%= url_for @creation %>" class="btn">Cancel</a>
     </div>
   </fieldset>
 <% end %>