# ActionController::UnknownAction (No action responded to xxx)

**URL:** <https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-xxx/81819>\
**Category:** Rails\
**Created:** [January 15, 2007, 11:05am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-xxx/81819 "2007-01-15T11:05:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [January 15, 2007, 11:05am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-xxx/81819/1 "2007-01-15T11:05:41Z")

</div>

I have a new method defined in a existing controller.  
All the methods I called in these are workable.  
But somehow the new method is not recognizable.  
------------------new method I  
added--------------------------------------------  
def push

# if fair

begin  
@product = Product.find(params[:id])  
rescue  
logger.error(“Attempt to access invalid product #{params[:id]}”)  
flash[:notice] = “æ²’æœ‰é€™å€‹ç”¢å“å”·”  
redirect\_to :action =\> :index  
else  
@list = List.new  
@list.add\_line\_item(@product,1)  
@list.name = 0  
@list.user\_id = session[:user\_id]  
@list.created\_at = Time.now  
@list.save

redirect\_to\_index(“æŽ¨æ–‡æˆåŠŸ”)  
end

# end

end

def unpush  
begin  
@product = Product.find(params[:id])  
rescue  
logger.error(“Attempt to access invalid product #{params[:id]}”)  
flash[:notice] = “æ²’æœ‰é€™å€‹ç”¢å“å”·”  
redirect\_to :action =\> :index  
else  
@list = List.new  
@list.add\_line\_item(@product,-1)  
@list.name = 0  
@list.created\_by = session[:user\_id]  
@list.created\_at = Time.now  
if @list.save  
puts ‘success’  
end  
redirect\_to\_index(“æ»…ç«æˆåŠŸ”)  
end  
end

---------------Below are what I dig out from development  
log-------------

Processing AdminController#push (for 218.168.71.156 at 2007-01-15  
17:57:04) [POST]  
Session ID: 00fb54a082d338ea3f865630769d1a1d  
Parameters: {“commit”=\>"\346\216\250", “action”=\>“push”, “id”=\>“27”,  
“controller”=\>“admin”}  
e[4;36;1mUser Columns (0.016000)e[0m e[0;1mSHOW FIELDS FROM  
userse[0m  
e[4;35;1mUser Load (0.000000)e[0m e[0mSELECT \* FROM users WHERE  
(users.`id` = 1 ) LIMIT 1e[0m

ActionController::UnknownAction (No action responded to push):  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/filters.rb:368:in  
`perform_action_without_benchmark' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in`perform\_action\_without\_rescue’  
C:/INSTAN~1/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in`perform\_action\_without\_rescue’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/rescue.rb:82:in  
`perform_action' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in`send’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/base.rb:408:in  
`process_without_filters' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in`process\_without\_session\_management\_support’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/session\_management.rb:117:in  
`process' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in`dispatch’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/rails.rb:73:in  
`process' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:551:in`process\_client’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:550:in  
`each' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:550:in`process\_client’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in  
`run' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in`initialize’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in  
`new' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in`run’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:625:in  
`initialize' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:625:in`new’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:625:in  
`run' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:956:in`run’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:955:in  
`each' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:955:in`run’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel\_rails:127:in  
`run' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/command.rb:199:in`run’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel\_rails:235  
C:/INSTAN~1/ruby/bin/mongrel\_rails:18:in `load’  
C:/INSTAN~1/ruby/bin/mongrel\_rails:18

Rendering  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/templates/rescues/layout.rhtml  
(404 Page Not Found)

---------------------------END of  
CODE-----------------------------------------

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [January 16, 2007, 1:04am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-xxx/81819/2 "2007-01-16T01:04:20Z")

</div>

You may find that the Controller already has a method called “push” as  
it is part of the Ruby language. Comment out the method and get your  
application to drop in a breakpointer - this will allow you to list the  
methods already available using “methods.sort” on the Controller.

---

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [January 16, 2007, 2:58am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-xxx/81819/3 "2007-01-16T02:58:35Z")

</div>

Andrew S. wrote:

> You may find that the Controller already has a method called “push” as  
> it is part of the Ruby language. Comment out the method and get your  
> application to drop in a breakpointer - this will allow you to list the  
> methods already available using “methods.sort” on the Controller.

Thanks a lot for the advice.I checked and found out push is aleady  
taken. So I rename the actions to arouse. But still, it’s an unknown  
action. I guess it may be another problem…

---

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [January 16, 2007, 5:43am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-xxx/81819/4 "2007-01-16T05:43:57Z")

</div>

Bontina C. wrote:

> Andrew S. wrote:
> 
> > You may find that the Controller already has a method called “push” as  
> > it is part of the Ruby language. Comment out the method and get your  
> > application to drop in a breakpointer - this will allow you to list the  
> > methods already available using “methods.sort” on the Controller.
> 
> Thanks a lot for the advice.I checked and found out push is aleady  
> taken. So I rename the actions to arouse. But still, it’s an unknown  
> action. I guess it may be another problem…

The new error log is as follows

Processing AdminController#arouse (for 218.167.96.38 at 2007-01-16  
12:19:13) [POST]  
Session ID: 489934e0a12acfd02af74c3a930a9e9f  
Parameters: {“commit”=\>"\346\216\250", “action”=\>“arouse”, “id”=\>“27”,  
“controller”=\>“admin”}  
e[4;35;1mUser Columns (0.000000)e[0m e[0mSHOW FIELDS FROM userse[0m  
e[4;36;1mUser Load (0.000000)e[0m e[0;1mSELECT \* FROM users WHERE  
(users.`id` = 1 ) LIMIT 1e[0m

ActionController::UnknownAction (No action responded to arouse):  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/filters.rb:368:in  
`perform_action_without_benchmark' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in`perform\_action\_without\_rescue’  
C:/INSTAN~1/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/benchmarking.rb:69:in`perform\_action\_without\_rescue’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/rescue.rb:82:in  
`perform_action' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/base.rb:408:in`send’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/base.rb:408:in  
`process_without_filters' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/filters.rb:377:in`process\_without\_session\_management\_support’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/session\_management.rb:117:in  
`process' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/dispatcher.rb:38:in`dispatch’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/rails.rb:73:in  
`process' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:551:in`process\_client’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:550:in  
`each' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:550:in`process\_client’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in  
`run' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in`initialize’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in  
`new' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:636:in`run’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:625:in  
`initialize' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:625:in`new’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:625:in  
`run' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:956:in`run’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:955:in  
`each' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel.rb:955:in`run’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel\_rails:127:in  
`run' C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/lib/mongrel/command.rb:199:in`run’  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/mongrel-0.3.13.3-mswin32/bin/mongrel\_rails:235  
C:/INSTAN~1/ruby/bin/mongrel\_rails:18:in `load’  
C:/INSTAN~1/ruby/bin/mongrel\_rails:18

Rendering  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/templates/rescues/layout.rhtml  
(404 Page Not Found)

---

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [January 16, 2007, 5:45am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-xxx/81819/5 "2007-01-16T05:45:18Z")

</div>

Rendering  
C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/templates/rescues/layout.rhtml  
(404 Page Not Found)

Are you expecting this error ??

---

<div class="post-metadata">

**Author:** ![abon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/45deac/32.png) [@abon](https://www.ruby-forum.com/u/abon)\
**Post date:** [January 16, 2007, 5:49am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-xxx/81819/6 "2007-01-16T05:49:05Z")

</div>

Swaraj S. wrote:

> Rendering  
> C:/INSTAN~1/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action\_controller/templates/rescues/layout.rhtml  
> (404 Page Not Found)
> 
> Are you expecting this error ??

Actually I don’t know where it’s from.
