Skip to content

Instantly share code, notes, and snippets.

@suchi
Created June 23, 2009 01:46
Show Gist options
  • Save suchi/134310 to your computer and use it in GitHub Desktop.
Save suchi/134310 to your computer and use it in GitHub Desktop.
登録されているadmin/以下のコントローラを表示する
<% ActionController::Routing.possible_controllers.sort.each {|c| %>
<%= link_to c.gsub(/^admin\//, "").camelize, :controller => c.to_sym %> |
<% } %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment