You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- class SettingsController < ApplicationController
- def show
- @api_urls = api_urls
- end
- end
-
- def api_urls
- navigations = []
- hash = Rails.application.config_for(:configuration)["api_url"]
- hash.each do |key, value|
- navigations << {"#{key}": value}
- end
- navigations
- end
|