The main difference between the two front controllers is how they determine the action that processes a particular request.
两个前端控制器之间的主要区别是它们如何决定处理具体请求的动作。
The controller action goes in app/controllers/browsers_controller and is pretty straightforward.
控制器操作在 app/controllers/browsers_controller 中进行,并且很简单。
Open up app/controllers/events_controller.rb and take a look, and you'll see plenty of use of respond_to to add XML output for each action, such as the 'show' action
打开并查看app/controllers/events_controller.rb文件,你将看到respond_to被大量用于为每个action添加XML输出,例如‘show’这个action
应用推荐