Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differences in putting a module in /helpers or in /lib?

What are the reasons putting a module in /helpers over the /lib folder in a RoR app?

Are /helpers more controller specific, while the /lib is more general in nature?

like image 883
Blankman Avatar asked Oct 28 '10 01:10

Blankman


1 Answers

I think this is a good question because the MVC notion makes us forget that it's all really just metaphors for us to organize code so we don't get too mixed up. If you need to do some simple formating go with a helper, otherwise probably a module in /lib.

like image 135
thenengah Avatar answered Sep 21 '22 17:09

thenengah