This commit is contained in:
Dmitriy Zaporozhets 2011-10-15 01:11:15 +03:00
parent d378468794
commit 0541b3f3c5
25 changed files with 235 additions and 180 deletions

View file

@ -3,11 +3,6 @@ class KeysController < ApplicationController
def index
@keys = current_user.keys.all
respond_to do |format|
format.html # index.html.erb
format.json { render json: @keys }
end
end
def new
@ -23,8 +18,6 @@ class KeysController < ApplicationController
respond_with(@key)
end
# DELETE /keys/1
# DELETE /keys/1.json
def destroy
@key = current_user.keys.find(params[:id])
@key.destroy
@ -32,7 +25,6 @@ class KeysController < ApplicationController
respond_to do |format|
format.html { redirect_to keys_url }
format.js { render :nothing => true }
format.json { head :ok }
end
end
end