On Tue, Jun 7, 2016, Hem Chan <[email protected]> wrote: > How would I optimize the following code?
and > How can i refactor the below code These smell like homework problems. Asking us to do your homework for you will do Bad Things to your grades if your teacher finds out, your professional reputation later, and of course your understanding of what should actually be done. If you need help understanding the concepts involved, you need to make that clear, so we can steer you towards actual enlightenment rather than a plagiarized solution. -- Dave Aronson, consulting software developer of Codosaur.us, PullRequestRoulette.com, Blog.Codosaur.us, and Dare2XL.com. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHxKQig4KTUH3eKke5V6L5Cc49MbaERmmyZy-kXV7ggdXyQ0hw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

