From 186ce80e7b22920ea7d54c579f635eec2d1ee98f Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Tue, 22 Jan 2013 12:14:46 +0100 Subject: Added a voicemail and fax trigger. #127 --- app/assets/javascripts/trigger.js.coffee | 3 +++ app/assets/stylesheets/trigger.css.scss | 3 +++ app/controllers/trigger_controller.rb | 11 +++++++++++ app/helpers/trigger_helper.rb | 2 ++ app/views/trigger/fax.html.erb | 2 ++ app/views/trigger/voicemail.html.erb | 4 ++++ 6 files changed, 25 insertions(+) create mode 100644 app/assets/javascripts/trigger.js.coffee create mode 100644 app/assets/stylesheets/trigger.css.scss create mode 100644 app/controllers/trigger_controller.rb create mode 100644 app/helpers/trigger_helper.rb create mode 100644 app/views/trigger/fax.html.erb create mode 100644 app/views/trigger/voicemail.html.erb (limited to 'app') diff --git a/app/assets/javascripts/trigger.js.coffee b/app/assets/javascripts/trigger.js.coffee new file mode 100644 index 0000000..7615679 --- /dev/null +++ b/app/assets/javascripts/trigger.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/ diff --git a/app/assets/stylesheets/trigger.css.scss b/app/assets/stylesheets/trigger.css.scss new file mode 100644 index 0000000..682b362 --- /dev/null +++ b/app/assets/stylesheets/trigger.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the trigger controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/trigger_controller.rb b/app/controllers/trigger_controller.rb new file mode 100644 index 0000000..e9821f6 --- /dev/null +++ b/app/controllers/trigger_controller.rb @@ -0,0 +1,11 @@ +class TriggerController < ApplicationController + def voicemail + # Something is triggered when ever a local script fetches this action. + # + end + + def fax + # Something is triggered when ever a local script fetches this action. + # + end +end diff --git a/app/helpers/trigger_helper.rb b/app/helpers/trigger_helper.rb new file mode 100644 index 0000000..0ababb3 --- /dev/null +++ b/app/helpers/trigger_helper.rb @@ -0,0 +1,2 @@ +module TriggerHelper +end diff --git a/app/views/trigger/fax.html.erb b/app/views/trigger/fax.html.erb new file mode 100644 index 0000000..822b2cb --- /dev/null +++ b/app/views/trigger/fax.html.erb @@ -0,0 +1,2 @@ +

Trigger#fax

+

Find me in app/views/trigger/fax.html.erb

diff --git a/app/views/trigger/voicemail.html.erb b/app/views/trigger/voicemail.html.erb new file mode 100644 index 0000000..9bafe17 --- /dev/null +++ b/app/views/trigger/voicemail.html.erb @@ -0,0 +1,4 @@ +

Trigger#voicemail

+

Find me in app/views/trigger/voicemail.html.erb

+ +<%= debug(params) %> -- cgit v1.2.3