rails foobar_path(3) returnes strange path: "/foobar.3/" instead of "/foobar/3/

Posted by Dominik on Stack Overflow See other posts from Stack Overflow or by Dominik
Published on 2010-04-18T20:28:56Z Indexed on 2010/04/18 20:33 UTC
Read the original article Hit count: 398

Filed under:
|
|

Hi i have this starnge behavoir...

<%= link_to image_tag("image.png"), foobar_path(1), :method => "put" %>

produces:

<a href="/brain.1" onclick="var f = document.createElement('form'); f.style.display = 'none'; this.parentNode.appendChild(f); f.met ...[many rails code]... ;return false;"><img alt="Research_4" src="/images/image.png" /></a>

a href="/foobar.1" this is the strange part :( any ideas whqt is causing this?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about routes