Report abuse

module PhotosHelper  
  def person_album_photos_path_with_session_information(person_id=person_being_viewed.id)
    session_key = ActionController::Base.session_options[:key]
    person_album_photos_path(:person_id => person_id, :album_id => params[:album_id], 
                             :_company_session_key => cookies[session_key], 
                 :request_forgery_protection_token => form_authenticity_token).concat("&swf_uploader=1")
  end  
end