Clean Up the code

-----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
(Addison-Wesley Professional Ruby Series) //
http://www.amazon.com/Rails-AntiPatterns-Refactoring-Addison-Wesley-Professional/dp/0321604814/ref=sr_1_fkmr1_1?ie=UTF8&qid=1328515732&sr=8-1-fkmr

Also, before starting books … i have started the hardway … wrote a
piece of code … try to make it cleaner … and start refactoring it
… 'til i’ll be satisfied with my work …

You can’t become a guru / specialist if you rely on others to fix your
own problems.

I guess that you’d have received a better help if instead of asking
“What will be the solution for the above issue?” you’d have at least
asking for an opinion : “Guys, i had this code, I have refactored it
like this… Is there something else I can improve ?”

Alecslupu

On Feb 6, 2012, at 9:55 AM, Srimanta C. wrote:


Posted via http://www.ruby-forum.com/.


You received this message because you are subscribed to the Google G. “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.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJPL4xNAAoJEAa2YjEk8CRGCdkIAJjjr91k5pFP2ufkKucga6Us
czxHCmefAenvad3/PwIlS/wS8m+54rbpYfGxFgjkW+T6P91AFnEdm7dwWJ6RF63L
JKK0r9I9X2JBQWO1jpSmaqiGXgtehXzjuQVmzuVVsIo34kcHdW/g2bKWOajkVWMi
SDNSr+EeGvrR+kYVrWzhKGouN13R0MP3PSf60mzR0zSgFmR8w+ausPPwlKbGCmcX
VCyZAzwuhucY1TyriQ5GkPod+MB7KJblH0Ce9MjlOFJffYx7wLX5iTUS2hM3Sx4n
yV5YPAsGXYUq2o6vbaAGIWpMfN7scr8RVEVjwgyILsIzikyQyvyy3dXvz8ShEIw=
=Vl0E
-----END PGP SIGNATURE-----

On Feb 6, 12:02am, Srimanta C. [email protected] wrote:

Hi,
I am a new guy in ruby on rails. I am using this forum to get help
to learn this. So please don’t think that I am a loser or chancer. In
this world everybody tries to get chance. If you don’t want to help then
just ignore it.

Asking for the answers != getting help to learn. See ESR’s essay for
more:

http://catb.org/esr/faqs/smart-questions.html

In short, you’ll get far more positive responses if you demonstrate
that you’ve actually attempted to solve the problem before posting,
instead of just copying and pasting.

–Matt J.