代码搜索:Controller
找到约 10,000 项符合「Controller」的源代码
代码结果 10,000
www.eeworm.com/read/319795/3552171
rb test_controller.rb
class TestController < ApplicationController
def one
cookies[:name] = "Squirrel"
render(:text => cookies[:name].to_s)
end
def two
cookies[:current_time] = Time.now.to_s
redirec
www.eeworm.com/read/319795/3552209
rb test_controller.rb
class TestController < ApplicationController
def index
flash[:message] = "index message!"
flash[:content] = "index content!"
redirect_to(:action => "show")
end
def show
flash.now[
www.eeworm.com/read/319795/3552247
rb test_controller.rb
class TestController < ApplicationController
def index
render :text => 'Hello, World'
end
def test_action
render(:action => :index)
end
def test_template
render(:template =>
www.eeworm.com/read/319795/3552286
rb test_controller.rb
class TestController < ApplicationController
def index
render(:text => request.delete?.to_s + "" +
request.get?.to_s + "" +
request.post?.to_s + "" +
www.eeworm.com/read/319795/3552324
rb test_controller.rb
class TestController < ApplicationController
before_filter :set_charset
def set_charset
@headers["Content-Type"] = "text/html; charset=GB2312"
end
def index
render(:template =>
www.eeworm.com/read/319795/3552400
rb test_controller.rb
class TestController < ApplicationController
def index
render(:template => "test/index")
end
end
www.eeworm.com/read/319795/3552441
rb partial_controller.rb
class PartialController < ApplicationController
def index
@first_item = Item.find(:first)
render(:template => "partial/index")
end
end
www.eeworm.com/read/319795/3552482
rb test_controller.rb
class TestController < ApplicationController
def index
render(:template => "test/index")
end
end
www.eeworm.com/read/319795/3552525
rb test_controller.rb
class TestController < ApplicationController
def index
@item_pages, @items = paginate(:items, :order_by => 'name', :per_page => 5)
render(:template => "test/index")
end
def show_blog
www.eeworm.com/read/308130/3718559
h vga_controller.h
#ifndef __VGA_CONTROLLER_H__
#define __VGA_CONTROLLER_H__
#include
#include "system.h"
#include "sys/alt_llist.h"
#include "priv/alt_dev_llist.h"
#include "priv/alt_file.h"
#defin