On 2008-10-31, at 20:17, Pat Maddox wrote:
Nick Hoffman <[EMAIL PROTECTED]> writes:
I can make this 22-line action a
bit shorter?  =)
http://refactormycode.com/codes/575-dry-up-a-controller-action

I should have known I'd get called out on this :)

I pushed around some stuff that I think should be in the model.  The
other thing that I thought, but didn't change (I don't really know what
you're doing with this action) is these render_to_string calls.  Maybe
you have a good reason for it, but I would just do regular "render
:partial..." calls in the view.

Pat

Thanks for taking a look, Pat. Much appreciated!
-Nick
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to