Cleaning out a bunch more cruft, getting map choice by click working
This commit is contained in:
@@ -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
|
||||
|
@@ -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|
|
||||
|
Reference in New Issue
Block a user