No route matches "/undefined" with {:method=>:get}


#1

I use to show the text on pop windows using javascript but it gives the
error,
I refer the forum in that i got the semi result is that change the
controller name but i canit change the controller name. so what to
do???
that message is display with another javascript

the pop window is open but it gives the “No route matches “/undefined”
with {:method=>:get}” this error

How to solve this problem?


#2

Sushrut S. wrote:

I use to show the text on pop windows using javascript but it gives the
error,
I refer the forum in that i got the semi result is that change the
controller name but i canit change the controller name. so what to
do???
that message is display with another javascript

the pop window is open but it gives the “No route matches “/undefined”
with {:method=>:get}” this error

How to solve this problem?

you have a javascript problem and no rails problem.
you try to use the value of a undefined variable to define the route
path, right? check your js code.