# Routing Error (javascript prob culprit)

**URL:** <https://www.ruby-forum.com/t/routing-error-javascript-prob-culprit/155284>\
**Category:** Rails\
**Created:** [December 10, 2008, 5:58am UTC](https://www.ruby-forum.com/t/routing-error-javascript-prob-culprit/155284 "2008-12-10T05:58:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![david](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/aeb1de/32.png) [@david](https://www.ruby-forum.com/u/david)\
**Post date:** [December 10, 2008, 5:58am UTC](https://www.ruby-forum.com/t/routing-error-javascript-prob-culprit/155284/1 "2008-12-10T05:58:45Z")

</div>

I am using the DOM popup kit to create modal popups and am having  
trouble getting popups to work in IE6 when they are not in my main  
layout view. When they are not in the main layout view the popups  
always display beneath the overlay and cannot be accessed. But when I  
put them in my layout view, they seem to work. This was working fine  
until I discovered that putting the popup code in the layout view was  
messing up my routes on other pages. This is the error that I am  
getting:

ActionView::TemplateError (spec\_url failed to generate from  
{:action=\>“show”, :controller=\>“spec”} - you may have ambiguous  
routes, or you may need to supply additional parameters for this  
route. content\_url has the following required parameters:  
[“spec”, :id] - are they all satisfied?) on line #175 of layouts/  
site.rhtml:  
172:

  
…

The relevant code for the popups that is in my view:

\<% if is\_logged\_in? %\>

 Edit Profile Information \<% form\_for :spec, :url =\> spec\_url, :html =\> { :method =\> :put, :multipart =\> true } do |form| %\> ........form stuff........... 

\<% end %\>

Does anyone have any idea why this may be messing up my other  
routes? I am totally lost here. Thanks.
