undefined method `call' for nil:NilClass

The cause of this error is on this line:

         else
            render :action => "location"
         end

It should be:

else
  format.html {render :action => 'location'}
end

When using respond_to, the format of the response is required for any
render or redirect_to methods. :slight_smile: