开发者

I want to write a gem, how do I make it such that I have a variable / method accessible to all views, models, and controllers?

开发者 https://www.devze.com 2023-03-23 07:36 出处:网络
I want to write something that can be accessible from all parts of the MVC structure.But I haven\'t the slightest idea where to begin with making methods public to each of the M, V, and C.

I want to write something that can be accessible from all parts of the MVC structure. But I haven't the slightest idea where to begin with making methods public to each of the M, V, and C.

I found this: http://asciicasts.com/episodes/135-making-a-gem But it is super开发者_开发技巧 basic.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号