# Rails failing to post to create for resource under dispatch.\[f\]cgi

**URL:** <https://www.ruby-forum.com/t/rails-failing-to-post-to-create-for-resource-under-dispatch-f-cgi/130705>\
**Category:** Rails\
**Created:** [March 2, 2008, 5:38am UTC](https://www.ruby-forum.com/t/rails-failing-to-post-to-create-for-resource-under-dispatch-f-cgi/130705 "2008-03-02T05:38:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![capnregex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@capnregex](https://www.ruby-forum.com/u/capnregex)\
**Post date:** [March 2, 2008, 5:38am UTC](https://www.ruby-forum.com/t/rails-failing-to-post-to-create-for-resource-under-dispatch-f-cgi/130705/1 "2008-03-02T05:38:26Z")

</div>

I have discovered some odd behavior while trying to get an application  
to work under fcgid…  
as I have also discovered this problem happening under plain old cgi,  
but not under script/server or mongrel, I thought that it might be a  
problem in dispatch …

When trying to create a new record using a resource via a normal  
scaffold, it works under script/server but when I try it under apache/  
fcgi or apache/cgi I get the index page…

the apache log records a post to the index, followed immediately by a  
get, the rails development log, only records the get call to the  
scaffold resource index.

rob@front:~/fcgidtest\> script/about  
About your application’s environment  
Ruby version 1.8.6 (i586-linux)  
RubyGems version 1.0.1  
Rails version 2.0.2  
Active Record version 2.0.2  
Action Pack version 2.0.2  
Active Resource version 2.0.2  
Action Mailer version 2.0.2  
Active Support version 2.0.2  
Application root /home/rob/fcgidtest  
Environment development  
Database adapter sqlite3  
Database schema version 1
