rails, How to build table in helper using content_tag?

后端 未结 5 1344
广开言路
广开言路 2020-12-23 22:38

I defined function in application helper:

def display_standard_table(columns, collection = {})    
  content_tag :table do      
    concat content_tag :thea         


        
5条回答
  •  庸人自扰
    2020-12-23 23:26

    See the railscast about that : http://railscasts.com/episodes/208-erb-blocks-in-rails-3 all is explain how you manage your block helper in rails 3

提交回复
热议问题