Class: DataVaultsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- DataVaultsController
- Defined in:
- app/controllers/data_vaults_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
2 3 4 5 |
# File 'app/controllers/data_vaults_controller.rb', line 2 def show @data_vault = DataVault.find(params[:id]) render :text => @data_vault.data end |
#update ⇒ Object
7 8 9 10 11 |
# File 'app/controllers/data_vaults_controller.rb', line 7 def update @data_vault = DataVault.find(params[:id]) @data_vault.update_attribute(:data, params[:value]) render :text => ::Kramdown::Document.new(@data_vault.data).to_html end |