Remote_function return No action responded error

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?

On Sun, May 23, 2010 at 12:09 AM, nirosh [email protected]
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. ------------------------ [email protected]
twitter: @hassan

Do you have the js includes in the application layout?

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

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