Is it possible to handle databases in Ruby as you would in a Rails website?
I'm writing a Websocket game server in pure Ruby, and it would be easier if I could just handle data in Ruby as you would in rails: User.find_by(:email)
or User.save
instead of using SQL statements. Is this possible, or better yet, could I write a websocket SERVER in Rails? I'm using Postgres and Ruby 2.0.0. I'm also writing a Rails application using Rails 4.