here i given my codes when i execute this remote_function rails give me this error ActionController::UnknownAction (No action responded to report_poem. Actions: create, destroy, edit, index, new, show, update): in my view <span class="report_button" onclick="< %=remote_function(:url=>{:action=>:report_poem,:id=>@poem.id}) %>">Submit</span> in my controller def report_poem @poem = Poem.find(params[:id]) respond_to do |format| format.js end end so anybody know what is the reason is? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2010-May-23 13:47 UTC
Re: remote_function return No action responded error
On Sun, May 23, 2010 at 12:09 AM, nirosh <kunalan.kandiah-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> ActionController::UnknownAction (No action responded to report_poem. > Actions: create, destroy, edit, index, new, show, update):> so anybody know what is the reason is?Either the generated URL is wrong -- you can check that easily using your browser''s "view source" -- or that''s not a recognized route -- run `rake routes` to determine, add as necessary. HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Do you have the js includes in the application layout? Happened to me a few times when playing with several projects. On May 23, 3:09 am, nirosh <kunalan.kand...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> here i given my codes when i execute this remote_function rails give > me this error > > ActionController::UnknownAction (No action responded to report_poem. > Actions: create, destroy, edit, index, new, show, update): > > in my view > > <span class="report_button" onclick="< > %=remote_function(:url=>{:action=>:report_poem,:id=>@poem.id}) > %>">Submit</span> > > in my controller > > def report_poem > @poem = Poem.find(params[:id]) > respond_to do |format| > format.js > end > end > > so anybody know what is the reason is? > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
yes and sort it out. there is an entry missed in routes file -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.