Calls format.html twice

Hello everyone,

The Rails Best Practice report says I’m calling format.html twice, which
is correct. But how would I condense it? Any suggestions?

http://pastie.org/private/dsvko5pol8okqpmolzy1a

Thanks!
Andrew D.

On Nov 26, 2010, at 9:15 AM, Andrew D. wrote:

Hello everyone,

The Rails Best Practice report says I’m calling format.html twice, which
is correct. But how would I condense it? Any suggestions?

http://pastie.org/private/dsvko5pol8okqpmolzy1a

It seems to me pretty clean and straightforward code…
I think condensing it will only make it harder to read.

Matteo

I’m tasked with getting the Rails Best Practices report in order, so I
wasn’t sure if there was another way to do it.

TaskOrdersController# create calls format.html twice Duplication
TaskOrdersController# create calls format.xml twice Duplication
TaskOrdersController# create calls params twice Duplication