fix plugins; fix tutorial links

This commit is contained in:
Lee Lawlor 2014-05-13 21:25:28 -04:00
parent cb7fedfb3b
commit 809a49248b
2 changed files with 11 additions and 23 deletions

View File

@ -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

View File

@ -19,8 +19,8 @@
</ul>
<h3>Arduino</h3>
<ul>
<li><a title="Using an Arduino and Ethernet Shield to Update a ThingSpeak Channel" href="arduino/using-an-arduino-ethernet-shield-to-update-a-thingspeak-channel/">Using an Arduino + Ethernet Shield to Update a ThingSpeak Channel</a></li>
<li><a title="Update a Twitter Status with the ThingTweet App and Arduino and Ethernet Shield" href="/tutorials/arduino/update-twitter-with-thingtweet-and-arduino-ethernet-shield/">Update Twitter with ThingTweet and Arduino + Ethernet Shield</a></li>
<li><a title="Using an Arduino and Ethernet Shield to Update a ThingSpeak Channel" href="http://community.thingspeak.com/arduino/using-an-arduino-ethernet-shield-to-update-a-thingspeak-channel/">Using an Arduino + Ethernet Shield to Update a ThingSpeak Channel</a></li>
<li><a title="Update a Twitter Status with the ThingTweet App and Arduino and Ethernet Shield" href="http://community.thingspeak.com/tutorials/arduino/update-twitter-with-thingtweet-and-arduino-ethernet-shield/">Update Twitter with ThingTweet and Arduino + Ethernet Shield</a></li>
<li><a title="Update ThingSpeak Channels and Twitter with Arduino Ethernet" href="http://community.thingspeak.com/tutorials/arduino/update-thingspeak-channels-and-twitter-with-arduino-ethernet/">Update ThingSpeak Channels and Twitter with Arduino Ethernet</a></li>
<li><a title="Controlling the Arduino Yún with TalkBack" href="http://community.thingspeak.com/tutorials/arduino/controlling-the-arduino-yun-with-talkback/">Controlling the Arduino Yún with TalkBack</a></li>
<li><a title="RESTduino to ThingSpeak via Python" href="https://github.com/sirleech/RestduinoThingspeak" target="_blank">RESTduino to ThingSpeak via Python</a> [external]</li>
@ -36,12 +36,12 @@
</ul>
<h3>Google</h3>
<ul>
<li><a title="Google Gauge Visualization for a ThingSpeak Channel" href="google/display-a-google-gauge-visualization-using-thingspeak-plugins/">Display a Google Gauge Visualization using ThingSpeak Plugins</a></li>
<li><a title="Parse Weather Data from Google Weather API using ThingHTTP" href="/tutorials/google/parse-weather-data-from-google-weather-with-thinghttp/">Parse Weather Data from Google Weather with ThingHTTP</a>&nbsp;[deprecated]</li>
<li><a title="Google Gauge Visualization for a ThingSpeak Channel" href="http://community.thingspeak.com/google/display-a-google-gauge-visualization-using-thingspeak-plugins/">Display a Google Gauge Visualization using ThingSpeak Plugins</a></li>
<li><a title="Parse Weather Data from Google Weather API using ThingHTTP" href="http://community.thingspeak.com/tutorials/google/parse-weather-data-from-google-weather-with-thinghttp/">Parse Weather Data from Google Weather with ThingHTTP</a>&nbsp;[deprecated]</li>
</ul>
<h3>ioBridge</h3>
<ul>
<li><a title="Updating a Twitter Status via the ioBridge IO-204 and the ThingTweet App" href="iobridge/updating-a-twitter-status-using-the-thingtweet-app-and-iobridge-io-204/">Updating a Twitter Status using the ThingTweet App and ioBridge IO-204</a></li>
<li><a title="Updating a Twitter Status via the ioBridge IO-204 and the ThingTweet App" href="http://community.thingspeak.com/iobridge/updating-a-twitter-status-using-the-thingtweet-app-and-iobridge-io-204/">Updating a Twitter Status using the ThingTweet App and ioBridge IO-204</a></li>
</ul>
<h3>Java</h3>
<ul>
@ -63,7 +63,7 @@
</ul>
<h3>Netduino</h3>
<ul>
<li><a title="Create your own Web of Things using the Netduino Plus and ThingSpeak" href="netduino/create-your-own-web-of-things-using-the-netduino-plus-and-thingspeak/">Create your own Web of Things using the Netduino Plus and ThingSpeak</a></li>
<li><a title="Create your own Web of Things using the Netduino Plus and ThingSpeak" href="http://community.thingspeak.com/netduino/create-your-own-web-of-things-using-the-netduino-plus-and-thingspeak/">Create your own Web of Things using the Netduino Plus and ThingSpeak</a></li>
</ul>
<h3>node.js</h3>
<ul>
@ -75,7 +75,7 @@
</ul>
<h3>Prowl Push Updates</h3>
<ul>
<li><a title="Send Push Updates using Prowl and ThingHTTP" href="prowl/send-push-updates-using-prowl-and-thinghttp/">Send Push Updates using Prowl and ThingHTTP</a></li>
<li><a title="Send Push Updates using Prowl and ThingHTTP" href="http://community.thingspeak.com/prowl/send-push-updates-using-prowl-and-thinghttp/">Send Push Updates using Prowl and ThingHTTP</a></li>
</ul>
<h3>Python</h3>
<ul>
@ -101,15 +101,15 @@
</ul>
<h3>Twilio Cloud Communications</h3>
<ul>
<li><a title="Make calls with Twilio and ThingSpeak" href="twilio/make-calls-with-twilio-using-the-thinghttp-app/">Make Calls with Twilio using the ThingHTTP App</a></li>
<li><a title="Make calls with Twilio and ThingSpeak" href="http://community.thingspeak.com/twilio/make-calls-with-twilio-using-the-thinghttp-app/">Make Calls with Twilio using the ThingHTTP App</a></li>
</ul>
<h3>Twitter</h3>
<ul>
<li><a title="Send Twitter Status Updates using the ThingTweet App, Twitter Proxy from ThingSpeak" href="twitter/send-status-updates-using-the-thingtweet-app/">Send Status Updates using the ThingTweet App</a></li>
<li><a title="Send Twitter Status Updates using the ThingTweet App, Twitter Proxy from ThingSpeak" href="http://community.thingspeak.com/twitter/send-status-updates-using-the-thingtweet-app/">Send Status Updates using the ThingTweet App</a></li>
</ul>
<h3>WordPress</h3>
<ul>
<li><a title="How to Embed a ThingSpeak Chart on your WordPress Blog" href="wordpress/how-to-embed-a-thingspeak-chart-on-your-wordpress-blog/">How to Embed a ThingSpeak Chart on your WordPress Blog</a></li>
<li><a title="How to Embed a ThingSpeak Chart on your WordPress Blog" href="http://community.thingspeak.com/wordpress/how-to-embed-a-thingspeak-chart-on-your-wordpress-blog/">How to Embed a ThingSpeak Chart on your WordPress Blog</a></li>
</ul>
<h3>Wireless</h3>
<ul>