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