Skip to content

Presenters: What are Presenters?

Zack Siri edited this page Dec 5, 2013 · 1 revision

Presenter's jobs are to take the response from the server usually html fragment that is rendered by rails and output it to the screen. The reason why we have presenters is so that we can do things to the content before outputting it.

Presenters usually map to your controller action in rails. By default it supports the 7 basic restful actions

  • index
  • new
  • edit
  • show
  • create
  • update
  • destroy

However you can override this and add your own custom presenter actions if you want. Its not necessary that the presenter action maps to your rails controller action.

Clone this wiki locally