打印

请问radrails自动生成的helpers中的文件有什么作用?

请问radrails自动生成的helpers中的文件有什么作用?

helpers夹子:
application_helper.rb

# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
end


helpers做什么用的?
module 和class 有什么区别??

TOP

放一些辅助方法,你可以在view中用到

TOP

2008-11-24 00:01 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html) @38.103.63.61