Executing System Commands with Rails -


i executing system commands based on user actions such mkdir,cd, cp -r skel/ dest/, , creating apache vhost etc.

where best place code live? instinct put them in model private methods, correct?

thx

jeff

rails recommend having skinny controllers , fat models, believe executing system commands irrelevant model.

since depend of users actions, i'd suggest putting them in library (/lib) , calling lib controller.

also, keep in mind fileutil might you're looking for.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -