Guys,
What was the rationale behind moving to the swiss army-ish method of
render(:X), as opposed to the various render_X methods that existed
before?
I find it easier to keep the render_X style in my brain, rather than
trying to remember what the valid parameters to render() are. It’s also
more code completion friendly.
Just curious.
Thanks,
John
I dunno, I don’t find it that much more difficult… if you used to do
render_text “Hi there”, you just split out the part after “render_” as a
separate parameter…
i.e., render :text => 'Hi there"
render_controller “myController” changes to render :controller =>
“myController”. I find the new method more intuitive and extensible,
but
that’s just the opinions of a relative Rails newbie.
-Will