Created
April 6, 2010 08:23
-
-
Save faust45/357352 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
| def create | |
| @video = Video.new(params[:video]) | |
| if @video.save | |
| @video.put_attachment('clip', params[:video][:file]) | |
| flash[:notice] = 'Video created succes!' | |
| redirect_to admin_videos_path | |
| else | |
| flash[:notice] = 'Video created is fail!' | |
| render :action => :new | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment