All pastes #112724 Raw Edit

Something

public ruby v1 · immutable
·published 2006-08-03 04:17 UTC
rendered paste body
#in a controller action - works@post = BlogPost.find(:first, :conditions => ["Permalink_Title='?'", @params[:pl_title]])@params[:id] = @post['id']#in a model method - Doesn't workpost = self.find(:all, :order => "Post_date DESC", :conditions => ["id=?", post_id])return post['Reads']