# Remote\_function return No action responded error

**URL:** <https://www.ruby-forum.com/t/remote-function-return-no-action-responded-error/189051>\
**Category:** Rails\
**Created:** [May 23, 2010, 9:10am UTC](https://www.ruby-forum.com/t/remote-function-return-no-action-responded-error/189051 "2010-05-23T09:10:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nirosh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ce7236/32.png) [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Post date:** [May 23, 2010, 9:10am UTC](https://www.ruby-forum.com/t/remote-function-return-no-action-responded-error/189051/1 "2010-05-23T09:10:59Z")

</div>

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

Submit

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?

---

<div class="post-metadata">

**Author:** ![nirosh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ce7236/32.png) [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Post date:** [May 23, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/remote-function-return-no-action-responded-error/189051/2 "2010-05-23T15:50:45Z")

</div>

On Sun, May 23, 2010 at 12:09 AM, nirosh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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 S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![nirosh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ce7236/32.png) [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Post date:** [May 23, 2010, 4:29pm UTC](https://www.ruby-forum.com/t/remote-function-return-no-action-responded-error/189051/3 "2010-05-23T16:29:23Z")

</div>

Do you have the js includes in the application layout?

Happened to me a few times when playing with several projects.

---

<div class="post-metadata">

**Author:** ![nirosh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ce7236/32.png) [@nirosh](https://www.ruby-forum.com/u/nirosh)\
**Post date:** [May 23, 2010, 6:03pm UTC](https://www.ruby-forum.com/t/remote-function-return-no-action-responded-error/189051/4 "2010-05-23T18:03:02Z")

</div>

yes and sort it out.  
there is an entry missed in routes file
