Created
March 1, 2012 04:21
-
-
Save deJaVisions/1947247 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 | |
| @material = Material.find(params[:id]) | |
| @material.destroy | |
| respond_to do |format| | |
| format.html { redirect_to admin_materials_path } | |
| format.json { render json: @material, status: :deleted } | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment