Created
January 7, 2009 23:31
-
-
Save mytrile/44500 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def destroy | |
| if Category.destroy(params[:id]) | |
| flash[:notice] = 'Category successfully deleted !' | |
| redirect_to :action => "index" | |
| else | |
| flash[:error] = 'There was an error processing your request' | |
| redirect_to :action => "index" | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%= link_to "Delete category", :action => "destroy", :id => @category.id %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment