A Lightbulb Just Went On
I was starting a redo of a old (rails 1.1.6) site and thought I’ll store the rails in the vendor directory so I don’t have to worry about what version is installed in the server, so I looked up this nifty Article on SitePoint where they explain how to do that. Installing and Managing Edge Rails.
I started with some basic steps to “redo” my old site.. used the controller generator.. whoa.. huh? “.html.erb” .. I instant messaged a friend, Carmelyne and said whats up with “.html.erb” .. she is like, oh thats edge rails. I thought I had installed 1.2 release instead but on closer inspection I did indeed install edge. I must have had the version number wrong or something. Doh, oh well.. let me try it anyways.
In further discussion.. she suggested i look at using REST.. “isn’t it just for webservices?” i ask, she said no. I’m not doing anything that I will need to publish web services for…. its just a bakery order site. But, I did a little research and Carmelyne pointed me to some resources…. and I got it!
A lightbulb went on!
I used the scaffold in edge to build my model… looked at the controller…looked at routes.rb … and i got it.
Read these to understand what the heck I am talking about:
A Series of 5 articles on REST and Rails - very basic and helped me understand how, what why of REST and Rails.
REST on Rails - another good one
I feel like I’ve been a bird with my head in the sand. I’d read stuff before but never understood how, what and why of REST.
More to follow as it sinks in.