I can't get the link to display as in Figure 5.11 of the book. In this illustration, it should display the text, and a link.
I have gone through my code for the controller, and for the view, but can't find the problem. Would appreciate it if you could have a look and tell me what's wrong.
Following is the code for the controller:
Here is the code for the index.rhtml in the view:
class StoryController < ApplicationController
@story = Story.find(:first, :order=>'RAND()')
Thanks in advance...
A random link:
<%= link_to @story.name, @story.link %>