当前位置: 动力学知识库 > 问答 > 编程问答 >

Where rails store standard helpers?

问题描述:

So where rails store its standard helpers, like form_tag - helper? i recently installed twetter-bottstrap-rails. So this gem provides some helpers that can be used in views to generate bootstrap-styled HTML. Where this helpers are stored? App/helpers - is empty - so this helpers must in the same place where standard rails helpers are.

网友答案:

Twitter-bootstrap-rails helpers are in twitter-bootstrap-rails gem:

https://github.com/seyhunak/twitter-bootstrap-rails/tree/master/app/helpers

网友答案:

Rails' form_tag is defined here: http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html

However, that won't answer your question - the helpers that twitter-bootstrap-rails provides will be in the gem itself. See: https://github.com/seyhunak/twitter-bootstrap-rails/tree/master/app/helpers

分享给朋友:
您可能感兴趣的文章:
随机阅读: