0
@@ -7,7 +7,7 @@ class AssetsController < ApplicationController
0
before_filter :find_referer, :only => :show
0
#rescue_from NoMethodError, :with => :user_not_found
0
-
rescue_from ActiveRecord::RecordNotFound, :with => :not_found
0
+
#rescue_from ActiveRecord::RecordNotFound, :with => :not_found
0
@@valid_listeners = ['msie','webkit','gecko','mozilla','netscape','itunes']
0
@@ -109,6 +109,19 @@ class AssetsController < ApplicationController
0
@descriptionless = @user.assets.descriptionless
0
+ @descriptionless = @user.assets.descriptionless
0
+ if params[:assets] # expects comma seperated list of ids
0
+ @assets = [@user.assets.find(params[:assets])].flatten
0
+ @assets = @user.assets
0
@@ -141,8 +154,8 @@ class AssetsController < ApplicationController
0
- redirect_to user_tracks_path(current_user)
0
+ flash[:ok] = flashes + "<br/>Now, check the title and add description for your track(s)"
0
+ redirect_to mass_edit_user_tracks_path(current_user, :assets => (@assets.collect(&:id)))
0
flash[:error] = flashes
0
flash[:error] = "Please try again with a file that is not empty (or miniscule) and is an mp3. <br/>Click the HALP! button or email sudara@alonetone.com for more help" if @assets.size == 0
0
@@ -153,14 +166,19 @@ class AssetsController < ApplicationController
0
- respond_to do |format|
0
- if @asset.update_attributes(params[:asset])
0
- flash[:ok] = 'Track updated!'
0
- format.html { redirect_to user_track_url(current_user, @asset) }
0
- format.xml { head :ok }
0
+ result = @asset.update_attributes(params[:asset])
0
+ redirect_to user_track_url(current_user, @asset)
0
- format.html { render :action => "edit" }
0
- format.xml { render :xml => @asset.errors.to_xml }
0
+ flash[:error] = "There was an issue with updating that track"
0
+ render :action => "edit"
Comments
No one has commented yet.