Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update
- @channel = Channel.find(params[:id])
- respond_to do |format|
- if @channel.update_attributes(params[:channel])
- flash[:notice] = 'Channel was successfully updated.'
- format.html { redirect_to(@channel) }
- format.xml { head :ok }
- else
- format.html { render :action => "edit" }
- format.xml { render :xml => @channel.errors, :status => :unprocessable_entity }
- end
- end
- end
Add Comment
Please, Sign In to add comment