I'm having trouble understanding how singular resource works in Rails.
In particular, how does Rails know which singular belongs to me when I access a Rails app across a session; and how does the Rails app make sure there are no conflicts when there are many users?
Does the server somehow map requests (based on IP) to unique Rails processes? And each process correspond to a single IP and when a previously unknown IP connects a new Rails process starts?
If so, how is it possible that I can log in as multiple users (using different browsers) on the same machine?
And how is it possible that I can go into multiple sessions with multiple singular resources on localhost running Webrick, if webrick is single threaded?
Any explanation or link to resources that I can read is appreciated.