Class: RailsAgents::DashboardController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RailsAgents::DashboardController
- Defined in:
- app/controllers/rails_agents/dashboard_controller.rb
Instance Method Summary collapse
Instance Method Details
#proxy ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/controllers/rails_agents/dashboard_controller.rb', line 18 def proxy load_local_credentials! unless configured? redirect_to rails_agents.signup_path return end @embed_token = path = "/dashboard/#{params[:path]}" @dashboard_url = (path, dashboard_query) render :show end |
#show ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/rails_agents/dashboard_controller.rb', line 7 def show load_local_credentials! unless configured? redirect_to rails_agents.signup_path return end @embed_token = @dashboard_url = ("/dashboard", dashboard_query) end |