Module: PushRoutes::Helpers
- Defined in:
- lib/push_routes/helpers.rb
Instance Method Summary collapse
Instance Method Details
#push_routes_init(debug_string = "") ⇒ Object
3 4 5 6 7 8 9 10 11 |
# 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 |