Skip to content

Instantly share code, notes, and snippets.

@liweinan
Created July 30, 2013 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liweinan/6113809 to your computer and use it in GitHub Desktop.
Save liweinan/6113809 to your computer and use it in GitHub Desktop.
if @output == true
expire_all_fragments
format.html { redirect_to(:controller => :packages, :action => :show, :id => escape_url(@package.name), :task_id => escape_url(@package.task.name), :user => params[:user]) }
format.js
else
format.html { render :action => :edit }
format.js
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment