Skip to content

Commit

Permalink
Redirect show action to edit so that admin links to readers go somewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
jadehopepunk committed May 13, 2014
1 parent aca069e commit cbfc38f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/controllers/admin/readers_controller.rb
Expand Up @@ -16,6 +16,10 @@ def create
response_for :create
end

def show
redirect_to :action => :edit
end

private

def load_models
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
@@ -1,6 +1,6 @@
ActionController::Routing::Routes.draw do |map|
map.namespace :admin do |admin|
admin.resources :readers, :except => [:show]
admin.resources :readers
admin.resource :reader_settings, :controller => 'reader_configuration'
end

Expand Down

0 comments on commit cbfc38f

Please sign in to comment.