Had to modify door log model and add config.yml to avoid storing password in git

This commit is contained in:
2012-09-15 20:41:17 -07:00
parent 93e77b692f
commit 921ba21a40
9 changed files with 43 additions and 12 deletions

View File

@@ -69,7 +69,7 @@ class UsersController < ApplicationController
respond_to do |format|
if @user.save
format.html { redirect_to @user, :notice => 'User was successfully created.' }
format.html { redirect_to users_url, :notice => 'User was successfully created.' }
format.json { render :json => @user, :status => :created, :location => @user }
else
format.html { render :action => "new" }
@@ -85,7 +85,7 @@ class UsersController < ApplicationController
respond_to do |format|
if @user.update_attributes(params[:user])
format.html { redirect_to @user, :notice => 'User was successfully updated.' }
format.html { redirect_to users_url, :notice => 'User was successfully updated.' }
format.json { head :no_content }
else
format.html { render :action => "edit" }
@@ -101,7 +101,7 @@ class UsersController < ApplicationController
@user.destroy
respond_to do |format|
format.html { redirect_to users_url }
format.html { redirect_to users_url, :notice => 'User successfully deleted.' }
format.json { head :no_content }
end
end