Class: ActiveStix::BundlesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ActiveStix::BundlesController
- Defined in:
- app/controllers/active_stix/bundles_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /stix/bundle GET /stix/bundle.json.
- #show ⇒ Object
Instance Method Details
#index ⇒ Object
GET /stix/bundle GET /stix/bundle.json
4 5 |
# File 'app/controllers/active_stix/bundles_controller.rb', line 4 def index end |
#show ⇒ Object
7 8 9 10 |
# File 'app/controllers/active_stix/bundles_controller.rb', line 7 def show bundle = ActiveStix::Bundle.find(params[:id]) @bundle = JSON.parse(File.open("tmp/#{bundle.stix_id}.json", "r+").read) end |