-4

Can anyone help me with few indication about best way to do few things. At this point I am in a situation where I have a task(.rake), and the code become so ugly that I need to split it out. So if I will create another file, probably a module with multiple classes and methods or just methods, where should I put the file (libs probably?)? (this file may be used by models as well). Also if I want to do the same or a module?

Any books, tutorials, articles, and opinions are welcomed.

Thank you

4

1 回答 1

3

Check out the Rails Guides for an introduction - beyond that, there are many different [opinionated] resources on the matter, ie:

Railscasts

于 2013-10-01T21:38:17.093 回答