Commit 831216e4

mo khan <mo@mokhan.ca>
2014-01-04 23:31:32
change cancel link.
1 parent 9b41a30
Changed files (1)
app
views
app/views/creations/_form.html.erb
@@ -57,7 +57,11 @@
     </div>
     <div class="form-actions">
       <button type="submit" class="btn btn-primary">NEXT STEP</button>
-      <%= link_to "Cancel", creation_path(@creation), class: 'btn' %>
+      <% if @creation.new_record? %>
+        <%= link_to "Cancel", mine_creations_path, class: 'btn' %>
+      <% else %>
+        <%= link_to "Cancel", creation_path(@creation), class: 'btn' %>
+      <% end %>
     </div>
   </fieldset>
 <% end %>