Skip to content

Commit

Permalink
Job.find(:last) fix for 404 on cold start
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Skomoroch committed Jun 18, 2009
1 parent 3a47389 commit 1f1a14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/jobs_controller.rb
Expand Up @@ -6,7 +6,7 @@ class JobsController < ApplicationController
# GET /jobs.xml
def index
@jobs = Job.paginate :page => params[:page], :order => 'created_at DESC', :per_page =>10
@job = Job.find(Job.maximum('id'))
@job = Job.find(:last)
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @jobs }
Expand Down

0 comments on commit 1f1a14e

Please sign in to comment.