# ActionController::MethodNotAllowed

**URL:** <https://www.ruby-forum.com/t/actioncontroller-methodnotallowed/146796>\
**Category:** Rails\
**Created:** [August 25, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/actioncontroller-methodnotallowed/146796 "2008-08-25T16:01:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [August 25, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/actioncontroller-methodnotallowed/146796/1 "2008-08-25T16:01:18Z")

</div>

Hello All,

I m trying to use a form on my website to send an email. So my form  
goes like this :

\<% form\_tag("/emailfeeder/create", :method =\> :post) do %\>

  
To:   
\<%= text\_field\_tag “recepient”,  
@recepient.to\_s, :disabled =\> true %\>  
  
  
Your N.:  
\<%= text\_field\_tag :name, @name, :class =\>  
“textedit” %\>  
… … …

And route.rb like this :  
map.resources :emailfeeder  
map.connect ‘emailfeeder/new’, :controller =\> ‘emailfeeder’, :action  
=\> ‘new’  
map.connect ‘emailfeeder/create’, :controller =\>  
‘emailfeeder’, :action =\> ‘create’, :method =\> :post  
I also tried :  
map.with\_options :controller =\> ‘emailfeeder’ do |emailfeeder|  
emailfeeder.new ‘/emailfeeder/new’, :action =\> ‘new’, :conditions  
=\> { :method =\> :get }  
emailfeeder.create ‘/emailfeeder/create’, :action =\>  
‘create’, :conditions =\> { :method =\> :post }  
end

I can t really figure out why I m still having this error :

# ActionController::MethodNotAllowed

```
Only post requests are allowed.
```

Can someone help with this issue please.

Thanks in advance,

Regards,

Joel
