[Opda-develop] OPDA/app/controllers channels_controller.rb, 1.10, 1.11
Brought to you by:
digitalpodcast
|
From: Alex N. <dig...@us...> - 2006-07-17 05:23:19
|
Update of /cvsroot/opda/OPDA/app/controllers In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15284/app/controllers Modified Files: channels_controller.rb Log Message: added show_category action to display category results Index: channels_controller.rb =================================================================== RCS file: /cvsroot/opda/OPDA/app/controllers/channels_controller.rb,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** channels_controller.rb 16 Jul 2006 19:07:00 -0000 1.10 --- channels_controller.rb 17 Jul 2006 05:23:16 -0000 1.11 *************** *** 1,4 **** class ChannelsController < ApplicationController ! def index --- 1,4 ---- class ChannelsController < ApplicationController ! model :category def index *************** *** 201,205 **** def show_category ! end end --- 201,207 ---- def show_category ! @category = Category.find(params[:id]) ! @channels = @category.channels ! end end |