When you start your first Rails application you might think that controller
actions are only capable of rendering HTML. So why and how to use a respond_to
block? Here, we will show you how handy respond_to blocks can be.
respond_to
The first step is to create a