Displaying 1 result from an estimated 1 matches for "prepare_project".
2006 Jun 08
1
Shelling out from an action with ``?
I''m trying to shell out (with the `` method, to call wget) from within
an action. It looks something like this:
def prepare_project
@project = Project.find_by_id(params[:id])
logger.info("Exporting project...")
`wget blah blah`
`zip blah blah`
flash[:notice] = "Exported project successfully."
redirect_to :action => ''export_project'', :id => @project.id
end
Th...