myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2209] trunk/app/controllers/workflows_controller


From: noreply
Subject: [myexperiment-hackers] [2209] trunk/app/controllers/workflows_controller.rb: fixed favouriting and whip content disposition
Date: Mon, 8 Jun 2009 07:54:10 -0400 (EDT)

Revision
2209
Author
dgc
Date
2009-06-08 07:54:09 -0400 (Mon, 08 Jun 2009)

Log Message

fixed favouriting and whip content disposition

Modified Paths

Diff

Modified: trunk/app/controllers/workflows_controller.rb (2208 => 2209)


--- trunk/app/controllers/workflows_controller.rb	2009-06-03 10:30:54 UTC (rev 2208)
+++ trunk/app/controllers/workflows_controller.rb	2009-06-08 11:54:09 UTC (rev 2209)
@@ -47,7 +47,7 @@
   
   # POST /workflows/1;favourite
   def favourite
-    @workflow.bookmarks << Bookmark.create(:user => current_user) unless @workflow.bookmarked_by_user?(current_user)
+    Bookmark.create(:user => current_user, :bookmarkable => @workflow) unless @workflow.bookmarked_by_user?(current_user)
     
     respond_to do |format|
       flash[:notice] = "You have successfully added this item to your favourites."
@@ -202,7 +202,7 @@
       respond_to do |format|
         format.whip { 
           send_data(File.read(file_path), :filename => "address@hidden@viewing_version.version}.whip",
-              :type => "application/whip-archive")
+              :type => "application/whip-archive", :disposition => 'inline')
         }
       end
     end

reply via email to

[Prev in Thread] Current Thread [Next in Thread]