Best Practice/Design: respond_to in action with only one response type

Question, if at first my controller is only going to be responding
with html templates to requests is it best practice to keep the
respond_to block within each action?

respond_to do |format|
format.html
end

I find it adds a lot of noise to a controller for nothing. Correct me
if I am wrong though please.

Bonus question: why did we move from .rhtml to .html.erb? Are these
the same for Rails or are they handled differently?

Thanks everyone.


John K.
[email protected]

Blog: http://www.kopanas.com
Conference: http://www.cusec.net
Twits: http://www.twitter.com/kopanas

I would say no.

To answer your bonus question…

I could do html.builder

Or js.erb

Or rss.erb

Or rss.builder.

Much nicer to separate the language from the content type.