http://www.discussbodybuilding.com/What_the_hell_is_a_calorie_anyway/m_135283/tm.htm Read this as a starting point, and follow the link at the end of the article to find out how many calories a day you really need to gain muscle. That's the best place to start- If you head to the bookstore, you'll find tons of books with differing opinions and statements in them, which can be frustrating-
The thing is, there are many ways to go about gaining mass once you get into detail. The three main rules, however, stay the same-
Eat, Train, and Rest.
Finding out how many calories you need is the first step towards eating for mass. Next step should be for you to head over to our nutrition forum and do some reading- The top posts there are full of tons of great info. With that, you should be able to build yourself a nice daily diet to make sure you reach your required number of calories per day.
Training comes next- There are tons of different routines out there, and finding one that will work for you can also be frustrating. However, if you ask around here, you'll get plenty of helpful advice on different sorts of routines. For the most part, you'll see people advising that you work each muscle group once or twice a week, three or four sets per exercise, three exercises or so per muscle group, etc- Just keep in mind there's no single perfect routine.
Lastly, rest- Muscle is grown when your body's resting, not while you're in the gym, so you have to make sure your body gets plenty of down time for that reason. Hitting the same muscle every day, or even every other day, won't leave that muscle with time to rebuild from the previous workout. It's also important to give your body a day or two a week with no workout to make sure you've fully recovered from the previous week.
Once you have those three areas more or less covered, you'll start to see nice results soon enough.