# Links Failing

**URL:** <https://www.ruby-forum.com/t/links-failing/125207>\
**Category:** Ruby\
**Created:** [January 7, 2008, 3:00am UTC](https://www.ruby-forum.com/t/links-failing/125207 "2008-01-07T03:00:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harpoon45](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/53a042/32.png) [@harpoon45](https://www.ruby-forum.com/u/harpoon45)\
**Post date:** [January 7, 2008, 3:00am UTC](https://www.ruby-forum.com/t/links-failing/125207/1 "2008-01-07T03:00:18Z")

</div>

In my index.html.erb file; I have the following 4 lines:

"\>\<%= @story.name %\>

"\>\<%= @story1.name %\>

\<%= link\_to @story.name, @story.link %\>

\<%= link\_to @story1.name, @story1.link %\>

The first two lines have the incorrect link in them, pointing to  
localhost:3000/story

The next two lines on the other hand have the correct links; so I’m  
wondering what might cause this isue?
