1.0.1
This commit is contained in:
parent
d378468794
commit
0541b3f3c5
25 changed files with 235 additions and 180 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue