photomix/app/helpers/albums_helper.rb

11 lines
336 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
session_key = ActionController::Base.session_options[:key]
photos_path(session_key => cookies[session_key], request_forgery_protection_token => form_authenticity_token)
end
def get_session_key
ActionController::Base.session_options[:key]
end
2009-05-22 14:28:22 +02:00
end