开发者

Common helpers in Rails?

Are there any plugins o开发者_运维知识库r tutorials available for common helpers which provide list of helpers ?

Like,

current_action? current_controller?

I know it's depends on the project but still there should be some helpers which we can use in most of the projects.

Any Idea ?


Yes there are.

You current controller action name can be accessed by controller.action_name

and current controller name by controller.controller_name

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜