From 809a49248b10bd1e9436ff40370c12d71477ba13 Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Tue, 13 May 2014 21:25:28 -0400 Subject: [PATCH] fix plugins; fix tutorial links --- app/controllers/plugins_controller.rb | 14 +------------- app/views/docs/tutorials.html.erb | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 23 deletions(-) diff --git a/app/controllers/plugins_controller.rb b/app/controllers/plugins_controller.rb index f3279ba..3dde1df 100644 --- a/app/controllers/plugins_controller.rb +++ b/app/controllers/plugins_controller.rb @@ -78,19 +78,7 @@ class PluginsController < ApplicationController @output = @plugin.html.sub('%%PLUGIN_CSS%%', @plugin.css).sub('%%PLUGIN_JAVASCRIPT%%', @plugin.js) - if request.url.include? api_domain - render :layout => false and return - else - protocol = ssl - host = api_domain.split('://')[1] - - redirect_to :host => host, - :protocol => protocol, - :controller => "plugins", - :action => "show", - :id => @plugin.id and return - end - + render :layout => false end def show_public diff --git a/app/views/docs/tutorials.html.erb b/app/views/docs/tutorials.html.erb index 29d68b0..2b8a894 100644 --- a/app/views/docs/tutorials.html.erb +++ b/app/views/docs/tutorials.html.erb @@ -19,8 +19,8 @@

Arduino

Google

ioBridge

Java

Netduino

node.js

Prowl Push Updates

Python

Twilio Cloud Communications

Twitter

WordPress

Wireless