# ActionController::UNKnownAction (No action responded to crea

**URL:** <https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-crea/62626>\
**Category:** Rails\
**Created:** [June 6, 2006, 6:37pm UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-crea/62626 "2006-06-06T18:37:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![learningruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Post date:** [June 6, 2006, 6:37pm UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-crea/62626/1 "2006-06-06T18:37:18Z")

</div>

Hello All,  
I’ve developed RoR on windowsXP have deployed that on Linux. Everythings  
works fine when working on windows. Things are fine on Linux too untill  
I try to create new entry. I tried but couldn’t find any relevent  
information why it should happen only to this “specific” create action.  
I’m saying this because different create on other forms are working ok.  
But this is errorring out with the following log tail.  
ActionController::UnknownAction (No action responded to create):  
/scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action\_controller/filters.rb:368:in  
`perform_action_without_benchmark' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in`perform\_action\_without\_rescue’  
/scratch/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in`perform\_action\_without\_rescue’  
/scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action\_controller/rescue.rb:82:in  
`perform_action' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:381:in`process\_without\_filters’  
/scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action\_controller/filters.rb:377:in  
`process_without_session_management_support' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/session_management.rb:117:in`process’  
/scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in  
`dispatch' /scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:115:in`handle\_dispatch’  
/scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick\_server.rb:81:in  
`service' /scratch/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in`service’  
/scratch/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' /scratch/ruby/lib/ruby/1.8/webrick/server.rb:173:in`start\_thread’  
/scratch/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' /scratch/ruby/lib/ruby/1.8/webrick/server.rb:95:in`start’  
/scratch/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start' /scratch/ruby/lib/ruby/1.8/webrick/server.rb:23:in`start’  
/scratch/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start' /scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/webrick_server.rb:67:in`dispatch’  
/scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/servers/webrick.rb:59  
/scratch/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require' /scratch/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in`require’  
/scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30  
/scratch/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require' /scratch/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in`require’  
script/server:3

My Controller:  
def create  
@release = Release.new(params[:release])  
if @release.save  
flash[:notice] = ‘Release was successfully created.’  
session[:swrelease] = @release.swrelease  
render :action =\> ‘fileupload’  
else  
render :action =\> ‘new’  
flash[:notice] = ‘Row already present!’  
end  
end

View have:  
fileupload.rhtml

I’ve spent hours by now figuring out the cause. Any ideas why it is not  
getting create method?  
Thanks

---

<div class="post-metadata">

**Author:** ![learningruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Post date:** [June 7, 2006, 4:30am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-crea/62626/2 "2006-06-07T04:30:03Z")

</div>

Ruby R. wrote:

> Hello All,  
> I’ve developed RoR on windowsXP have deployed that on Linux. Everythings  
> works fine when working on windows. Things are fine on Linux too untill  
> I try to create new entry. I tried but couldn’t find any relevent  
> information why it should happen only to this “specific” create action.  
> I’m saying this because different create on other forms are working ok.  
> But this is errorring out with the following log tail.  
> ActionController::UnknownAction (No action responded to create):  
> \> end
> 
> View have:  
> fileupload.rhtml
> 
> I’ve spent hours by now figuring out the cause. Any ideas why it is not  
> getting create method?  
> Thanks

The situation is not clear from this example but I am sure you have form  
action wrong. Look in your fileupload.rhml file and see what form  
action it. Use form\_tag to call the appropriate controller and action;  
you would be fine.

ajay

---

<div class="post-metadata">

**Author:** ![learningruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Post date:** [June 7, 2006, 7:45am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-crea/62626/3 "2006-06-07T07:45:13Z")

</div>

Ruby R. wrote:

> Hi Ajay,  
> Sorry for not being clear. Let me quote it again. When I work on windows  
> (in development mode) I don’t get any UnKNOWN Action error. I get it  
> ONLY on Linux (in production mode) while creating new record. In this  
> process “create” action is being called (and should ideally work) but  
> for some reason it is not finding the “create()” in my controller.

> Please help understand this strange behaviour. Thanks

Hey there

Try  
\<%= start\_form\_tag :controller =\> ‘abc’, :action =\> ‘create’ %\>

and tell me if you see the same problem. As I am thinking what else can  
go wrong. So try to be specific and see whether u see the problem  
again.

HTH

ajay

---

<div class="post-metadata">

**Author:** ![learningruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/6bbea6/32.png) [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Post date:** [June 7, 2006, 5:03am UTC](https://www.ruby-forum.com/t/actioncontroller-unknownaction-no-action-responded-to-crea/62626/4 "2006-06-07T05:03:19Z")

</div>

Hi Ajay,  
Sorry for not being clear. Let me quote it again. When I work on windows  
(in development mode) I don’t get any UnKNOWN Action error. I get it  
ONLY on Linux (in production mode) while creating new record. In this  
process “create” action is being called (and should ideally work) but  
for some reason it is not finding the “create()” in my controller.

My View: new.rhtml  
\<%= start\_form\_tag :action =\> ‘create’ %\>  
\<%= render :partial =\> ‘form’ %\>  
\<%= submit\_tag “Create” %\>  
\<%= end\_form\_tag %\>

My Controller: abc\_controller.rb  
def create  
@release = Release.new(params[:release])  
if @release.save  
flash[:notice] = ‘Release was successfully created.’  
session[:swrelease] = @release.swrelease  
render :action =\> ‘fileupload’  
else  
render :action =\> ‘new’  
flash[:notice] = ‘Row already present!’  
end  
end

It is not creating record so I would assume it wouldn’t go till  
fileupload or new action. It is failing before it reaches these points  
with the error

ActionController::UnknownAction (No action responded to create):  
/scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action\_controller/filters.rb:368:in  
`perform_action_without_benchmark' /scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/benchmarking.rb:69:in`perform\_action\_without\_rescue’  
/scratch/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure’  
/scratch/ruby/lib/ruby/gems/1.8/gems/actionpack-

… (as pasted above)

```
/scratch/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/server.rb:30
/scratch/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in

```

`require' /scratch/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in`require’  
script/server:3

Please help understand this strange behaviour. Thanks
