# Why am I getting "No action responded to show" error?

**URL:** <https://www.ruby-forum.com/t/why-am-i-getting-no-action-responded-to-show-error/127180>\
**Category:** Rails\
**Created:** [January 25, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/why-am-i-getting-no-action-responded-to-show-error/127180 "2008-01-25T21:29:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 25, 2008, 9:29pm UTC](https://www.ruby-forum.com/t/why-am-i-getting-no-action-responded-to-show-error/127180/1 "2008-01-25T21:29:02Z")

</div>

Hi,

I’m submitting a form to “/login”. Here’s my config/routes.rb file:

=======start routes.rb file===================  
ActionController::Routing::Routes.draw do |map|  
map.signup ‘/signup’, :controller =\> ‘users’, :action =\> ‘new’  
map.login ‘/login’, :controller =\> ‘session’, :action =\> ‘new’  
map.logout ‘/logout’, :controller =\> ‘session’, :action =\> ‘destroy’

map.resource :user

map.resource :session

map.connect ‘’, :controller =\> “register”, :action =\> “start”

# The priority is based upon order of creation: first created -\>

highest priority.

# Sample of regular route:

# map.connect ‘products/:id’, :controller =\> ‘catalog’, :action =\>

‘view’

# Keep in mind you can assign values other than :controller

and :action

# Sample of named route:

# map.purchase ‘products/:id/purchase’, :controller =\>

‘catalog’, :action =\> ‘purchase’

# This route can be invoked with purchase\_url(:id =\> product.id)

# You can have the root of your site routed by hooking up ‘’

# – just remember to delete public/index.html.

# map.connect ‘’, :controller =\> “welcome”

# Allow downloading Web Service WSDL as a file with an extension

# instead of a file named ‘wsdl’

map.connect ‘:controller/service.wsdl’, :action =\> ‘wsdl’

# Install the default route as the lowest priority.

map.connect ‘:controller/:action/:id.:format’  
map.connect ‘:controller/:action/:id’  
end  
=======================end routes.rb file==================

but I’m getting this error:

Unknown action  
No action responded to show

Any ideas? Here’s the relevant code from my session\_controller.rb  
file:

class SessionController \< ApplicationController

# Be sure to include AuthenticationSystem in Application Controller

instead  
include AuthenticatedSystem

# render new.rhtml

def new  
redirect\_to :action =\> ‘create’  
end

def create  
self.current\_user = User.authenticate(params[:login],  
params[:password])  
if logged\_in?  
if params[:remember\_me] == “1”  
self.current\_user.remember\_me  
cookies[:auth\_token] = { :value =\>  
self.current\_user.remember\_token , :expires =\>  
self.current\_user.remember\_token\_expires\_at }  
end  
# The next two lines were added 1/24/08  
@user = User.find(:first, :conditions =\> [“login = ?”,  
params[:login]])  
session[:user\_id] = @user.id  
render :controller =\> ‘order’, :action =\> ‘start’  
flash[:notice] = “Logged in successfully”  
else  
render :controller =\> ‘register’, :action =\> ‘start’  
end  
end

Thanks for help, - Dave
