Displaying 1 result from an estimated 1 matches for "rand_story".
2008 Jul 24
0
Re: Simple functional test fails
...nd I founded and issue that I can''t figure
> out how to solve:
>
> - This is the controller:
> class StoriesController < ApplicationController
> def index
> @current_time = Time.now
> @story = Story.find_by_name(''txapelgorri'')
> @rand_story = Story.find(:first, :order => ''RANDOM()'')
> end
> end
> - This is the view:
> <p>Time <%= @current_time %></p>
> <p>A story <a href="<%= @story.link %>"><%= @story.name %></a></p>
>...