Cleaning out a bunch more cruft, getting map choice by click working

This commit is contained in:
Dan Buch
2012-03-07 20:02:03 -05:00
parent 70d0a835ed
commit a1aa03451f
12 changed files with 9307 additions and 112 deletions

View File

@@ -22,7 +22,7 @@ class MapsController < ApplicationController
File.open(dest, 'w') do |f|
f.write(image)
end
send_file(dest)
send_file(dest, :type => 'image/png')
end
end
end

View File

@@ -26,6 +26,7 @@ class MashesController < ApplicationController
def create
mash_params = params[:mash]
mash_params[:requester] = request.remote_ip
logger.info("Got mash params: #{mash_params.inspect}")
@mash = Mash.new(mash_params)
respond_to do |format|