I’ve been futzing around with RoR for the past week on my train rides to and from work and finally feel like I’m making some progress beyond Hello World type of stuff. Not much progress, yet I think tonight I’ve finally hit the tipping point.
I’ve been waiting for this all week. Its not much, but I can create and edit not only a simple model, but a model and its component on a single form, think client –> address. More importantly I’m doing it correctly, using the new RoR 2.3 accepts_nested_attributes_for support. I looked at the pre 2.3 code to do the same thing, ouch! Basically 2 lines of code and I still restful controller!
its probably about time I move towards some domain logic and unit testing. I’m still fuzzy if all RoR model tests touch the database or not, I’m used to mocking my repositories in C#, and as you may know there are no repositories with AR.
Powered by: newtelligence dasBlog 2.1.8102.813
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2012, Shawn Neal
E-mail