module PushRoutes::Helpers
Public Instance Methods
push_routes_init(debug_string = "")
click to toggle source
# File lib/push_routes/helpers.rb, line 3 def push_routes_init debug_string = "" out = "" out += javascript_include_tag 'socket.io' out += javascript_include_tag 'push_routes_socket_io' out += javascript_tag "PushRoutes.connect({server: \"#{PushRoutes.NODE_URL}\", id: #{current_user.id}, authentication_token: \"#{current_user.authentication_token}\"}, function() { PushRoutes.set_debug_string(\"#{debug_string}\"); });" return out.html_safe end