Class: Xhive::StylesheetsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Xhive::StylesheetsController
- Defined in:
- app/controllers/xhive/stylesheets_controller.rb
Instance Method Summary collapse
Methods included from Controller
Instance Method Details
#index ⇒ Object
7 8 9 |
# File 'app/controllers/xhive/stylesheets_controller.rb', line 7 def index render :text => StylesheetPresenter.all_compressed(Stylesheet.all) end |
#show ⇒ Object
11 12 13 14 |
# File 'app/controllers/xhive/stylesheets_controller.rb', line 11 def show @style = Stylesheet.find(params[:id]) render :text => @style.presenter.compressed end |