Where to start programming?

It sounds like you might need some basic programming experience. This might be a good place to start: http://pine.fm/LearnToProgram/

If that’s too basic for you, then graduate yourself to Agile Web Development With Rails (it’s where most of us cut our teeth on Rails): http://www.pragmaticprogrammer.com/titles/rails2/index.html

Regards,

Dave