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