You really need to go back to the drawing board, dude.
Most rails beginners start off with the twitter clone tutorials, at least that's what I did.
Here is a free course from codeschool.com that I used when I first started off to start working with ActiveRecord https://www.codeschool.com/courses/rails-for-zombies-redux