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
Post a Comment