On Feb 14, 6:56 am, Craig White <[email protected]> wrote: > <%= Picture.some_method %> I am still up a creek without a paddle > > this works but clearly doesn't belong in a view... > > <% @pic_1 = Picture.find(:first, :conditions => ["active = > true"], :order => 'view_count'); @pic_1.view_count += 1; @pic_1.save! %> >
Why can't you stick all that in a class method on Picture ? Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

