<% provide(:title, 'Admin') %>

Admin#index

<%= link_to 'Home', controller: 'tools', action: 'index' %>

<%= form_tag do %> <% AdminHelper::SETTINGS.each do |s| %> <% if s[:textarea] %> <% else %> <% end %> <% end %>
<%= label_tag("settings[#{s[:key]}]", s[:label]) %><%= text_area_tag("settings[#{s[:key]}]", AdminSetting.get(s[:key]), size: "60x5") %><%= text_field_tag("settings[#{s[:key]}]", AdminSetting.get(s[:key]), size: 40) %>
<%= submit_tag('Update') %>
<% end %>