On Tue, Dec 30, 2008 at 11:39 AM, vlain <rudi.ver...@gmail.com> wrote:

>
> After six month of development and a first release we decide to
> refactor our application. Since it was my first Ruby/Rails application
> there are a lot of horrible things inside it.
>
> And now? Some general hints?
>
> I start with 2 simple questions:
> 1 - Where I put some common methods? Inside application.rb
> (controller) is ugly...
> 2 - In order to make skinny controller I write a lot of class method
> inside the model, maybe too much? Is this a common practice?
>

I'll chime in with the obvious
I would start by making sure that the application passes all of your tests.
If you have have not done this yet, be prepared for a lot of work.  Then be
prepared for more work as you write tests to cover everything you've
written.

--wpd

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to