added websockets rails
allowed for optional params in urls
optional rails params