Re: [Rails] Re: Re: Re: Clean Up the code

2012-02-05 Thread Lupu Alexandru Emil
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Feb 3, 2012, at 3:13 PM, Srimanta Chakraborty wrote: > Prince Joseph wrote in post #1043906: >> @Michael is right. We can help you in doing this, in case you are stuck >> up >> somewhere, but you must really atleast make an effort. >> >> As of po

[Rails] Re: Re: Re: Clean Up the code

2012-02-03 Thread Srimanta Chakraborty
Prince Joseph wrote in post #1043906: > @Michael is right. We can help you in doing this, in case you are stuck > up > somewhere, but you must really atleast make an effort. > > As of point 3, you can consider the following suggestions: > >1. `current_user.roles.map {|r| r.to_s}.include?('admin