Class: Happy::Extras::ResourceController
- Inherits:
-
Controller
- Object
- Controller
- Happy::Extras::ResourceController
- Defined in:
- lib/happy/extras/resource_controller.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Controller
Controller::CASCADING_SETTINGS
Instance Attribute Summary
Attributes inherited from Controller
#env, #processed_path, #unprocessed_path
Attributes included from Helpers::Rendering
Instance Method Summary collapse
Methods inherited from Controller
#app, #current_url, helpers, #initialize, #params, #request, #response, #root_url, #session
Methods included from Helpers::I18n
Methods included from Helpers::Rendering
#capture_template_block, #concat_output, #render, #render_resource, #render_template, #with_output_buffer
Methods included from Helpers::Html
#escape_html, #html_tag, #html_tag_attributes, #link_to, #preserve, #url_for
Methods included from Controller::Permissions
Methods included from Controller::Configurable
Methods included from Controller::Rackable
Methods included from Controller::Actions
#cache_control, #content_type, #halt!, #header, #layout, #max_age, #only_if_path_matches, #redirect!, #run, #serve!
Methods included from Controller::Routing
Constructor Details
This class inherits a constructor from Happy::Controller
Instance Method Details
#route ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/happy/extras/resource_controller.rb', line 5 def route on_get('new') { new } on :id do on_get { show } on_post { update } on_delete { destroy } on_get('edit') { edit } end on_post { create } on_get { index } end |