Created
March 18, 2009 15:07
-
-
Save rodreegez/81170 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UploadsController < ApplicationController | |
def new | |
@mp3 = Mp3.new | |
end | |
def create | |
@mp3 = Mp3.new(params[:mp3]) | |
if @mp3.save | |
redirect_to upload_path(@mp3) | |
else | |
render :action => 'new' | |
end | |
end | |
def show | |
@mp3 = Mp3.find(params[:id]) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment