Class: Refinery::Libri::LibrisController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Refinery::Libri::LibrisController
- Defined in:
- app/controllers/refinery/libri/libris_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/refinery/libri/libris_controller.rb', line 8 def index # you can use meta fields from your model instead (e.g. browser_title) # by swapping @page for @libri in the line below: present(@page) end |
#show ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/controllers/refinery/libri/libris_controller.rb', line 14 def show @libri = Libri.find(params[:id]) # you can use meta fields from your model instead (e.g. browser_title) # by swapping @page for @libri in the line below: present(@page) end |