You can use both. With nodejs you can use for example express (that's an example, there a lot of other framework available) that will allow to manage more comfortably routing and manage logic.
Use the language that you prefer / have more experience.
If you have lot of users, nodejs will have advantage to handle more efficiently high traffic, but if you don't think have lot of users it may not be a problem to use ruby.