photomix/app/helpers/albums_helper.rb
2010-09-17 17:57:33 +02:00

11 lines
314 B
Ruby

module AlbumsHelper
def new_upload_path_with_session_information
session_key = self.get_session_key
photos_path(session_key => cookies[session_key], request_forgery_protection_token => form_authenticity_token)
end
def get_session_key
Rails.application.config.session_options[:key]
end
end