我在两个不同的帮助器中创建了辅助函数(link_to_alert)
现在,打电话给我的助手功能link_to_alert从app/views/student/index.html.haml
link_to_alert
app/views/student/index.html.haml
问题是调用相同函数的视图 app/helpers/posts_helper.rb
app/helpers/posts_helper.rb
如何app/helpers/students_helper.rb从我的 app/views/student/index.html.haml视图中调用辅助函数?
app/helpers/students_helper.rb
ruby-on-rails-3
ruby-on-rails-3 ×1