im receiving this error
Routing Error
No route matches "/ganesh/index" with {:method=>:get}
the path works fine yesterday...but it shows this error today...i cant
open any of the project in rails
controller/index...and so on..
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Hello All,
I''m trying to implement a new method action in my controoller to which
I ll make an ajax call. So my routes go like this :
map.resources :photos,
:collection => {
:increment_downloads => :post
}
but on my ajax call, I m still getting a 405 error : 405 Method Not
Allowed
my js ajax call goes like this :
var myAjax = new
Ajax.Request(''/photos/increment_downloads/'',{method:
''get'', parameters:params })
Can anyone help with this issue.
Thanks,
Joel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
You are getting this method not allowed error because in your ajax call you are using http method get but in the routes you are using post. Make both of them post or in your routes, change :increment_downloads => :post to :increment_downloads => :any Cheers On Jul 19, 2:56 am, joel <joel.soor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello All, > > I''m trying to implement a new method action in my controoller to which > I ll make an ajax call. So my routes go like this : > > map.resources :photos, > :collection => { > :increment_downloads => :post > } > but on my ajax call, I m still getting a 405 error : 405 Method Not > Allowed > > my js ajax call goes like this : > > var myAjax = new Ajax.Request(''/photos/increment_downloads/'',{method: > ''get'', parameters:params }) > > Can anyone help with this issue. > > Thanks, > > Joel--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---