photomix/app/helpers/albums_helper.rb

11 lines
314 B
Ruby
Raw Normal View History

2009-05-22 14:28:22 +02:00
module AlbumsHelper
2009-06-02 00:08:57 +02:00
def new_upload_path_with_session_information
2010-09-17 17:57:33 +02:00
session_key = self.get_session_key
2009-06-02 00:08:57 +02:00
photos_path(session_key => cookies[session_key], request_forgery_protection_token => form_authenticity_token)
end
def get_session_key
2010-09-17 17:57:33 +02:00
Rails.application.config.session_options[:key]
2009-06-02 00:08:57 +02:00
end
2009-05-22 14:28:22 +02:00
end