tag:blogger.com,1999:blog-6793817269158736634.post6083592999542550712..comments2023-07-11T06:44:05.157-07:00Comments on Code It Like You Stole It: Code abstraction with partials in RailsTylerhttp://www.blogger.com/profile/02372203985854517525noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6793817269158736634.post-39889928142201919392011-09-12T11:00:53.499-07:002011-09-12T11:00:53.499-07:00@Brent aha, I should've guessed defining it in...@Brent aha, I should've guessed defining it in the model was the solution. I'll give this a shot tonight. Time to fatten up that model!Tylerhttps://www.blogger.com/profile/02372203985854517525noreply@blogger.comtag:blogger.com,1999:blog-6793817269158736634.post-57911427711230502612011-09-12T10:55:41.775-07:002011-09-12T10:55:41.775-07:00Sounds like you have the right idea w/ @character....Sounds like you have the right idea w/ @character.conditions?<br /><br />Go into character model and define it.<br /><br />def conditions?<br /> all those 'and' conditions<br />endbrenthttps://www.blogger.com/profile/11219740865112667514noreply@blogger.com