Rails represent things that may change on a per item basis, such as enchant potential, gem sockets, and curses.
Items may contain multiple socketing rails, which can have a series of sockets. Sockets may be filled with gems.
You can edit the advanced options of a socket here