I hereby claim:
- I am abradburne on github.
- I am abradburne (https://keybase.io/abradburne) on keybase.
- I have a public key ASBGFftnXaLAmgmHHPMkyZ_SXserilBvTl5Ixm6Bf2gRyQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def require_user | |
unless current_user_session | |
respond_to do |format| | |
format.html { redirect_to '/hi' } | |
format.json do | |
headers["WWW-Authenticate"] = %(Basic realm="Web Password") | |
render :json => {'error' => 'Could not authenticate you.'}, :status => :unauthorized | |
end | |
end | |
return false |
NameVirtualHost * | |
<VirtualHost *:80> | |
ServerName products.api.holidayextras.com | |
ServerAlias products.api.holidayextras.* products.api | |
DocumentRoot /Users/alan/Projects/Rails/trip-engine-ruby/products.api.holidayextras.com/public | |
<Directory /> | |
AllowOverride All | |
</Directory> | |
</VirtualHost> |