Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
remove edit links, so people make more.
Browse files Browse the repository at this point in the history
and so default starter will not change.
  • Loading branch information
mgrosso committed May 2, 2012
1 parent df5a86f commit 43e29a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/controllers/flocks_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class FlocksController < ApplicationController
inherit_resources
respond_to :html, :json
actions :index, :show, :new, :edit, :create, :update, :destroy
actions :index, :show, :new, :create, :update, :destroy
end
3 changes: 0 additions & 3 deletions app/views/flocks/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
%th Height
%th
%th
%th

- @flocks.each do |flock|
%tr
Expand All @@ -29,8 +28,6 @@
%td= flock.width
%td= flock.height
%td= link_to 'Show', flock
%td= link_to 'Edit', edit_flock_path(flock)
%td= link_to 'Destroy', flock, :confirm => 'Are you sure?', :method => :delete

%br

Expand Down
2 changes: 1 addition & 1 deletion app/views/flocks/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
%a#slower.link Slower
%a#console_debug.link Console Debug
%a#show_numbers.link Show Numbers
.link= link_to 'Edit', edit_flock_path(@flock)
.link= link_to 'New', new_flock_path
.link= link_to 'Back', flocks_path
#details
%p#avoid.link
Expand Down

0 comments on commit 43e29a2

Please sign in to comment.