Re: [Rails] Clean Up the code

2012-02-06 Thread Lupu Alexandru Emil
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Man... I am new to ruby / rails myself ... But ... I try to RTFM .. and also... i have actually bought some books... But all the stuff you're asking in this thread is here ... Rails AntiPatterns: Best Practice Ruby on Rails Refactoring

[Rails] Clean Up the code

2012-02-03 Thread Srimanta Chakraborty
1. Provide the models required 2. Each article can be related to many articles (or none).Provide code for making @article.related_articles work 3. Clean up the code according to rails conventions class ArticleController ApplicationController def show @article = Article.find(params[:id])

Re: [Rails] Clean Up the code

2012-02-03 Thread Michael Pavling
On 3 February 2012 10:24, Srimanta Chakraborty li...@ruby-forum.com wrote: 1. Provide the models required 2. Each article can be related to many articles (or none).Provide code for making @article.related_articles work 3. Clean up the code according to rails conventions Really? you're just