Thursday, 15 August 2013

node.js - How to route to a node server in rails -



node.js - How to route to a node server in rails -

i have little rails server , node server i'm trying connect. rails server main 1 , i'm trying figure out how map route node server.

i want link displayed user normal website url followed /chat. ends tried this:

get 'chat', to: redirect('localhost:5000')

but didn't work, giving me (seemingly?) random error:

undefined method `empty?' nil:nilclass

i tried using redirect straight index.html of node server it's not under public, didn't work, i'm @ loss of how this.

ruby-on-rails node.js routing

No comments:

Post a Comment