Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 4 将Rubywork方面加载到Rails应用程序_Ruby On Rails 4_Module_Require_Helper - Fatal编程技术网

Ruby on rails 4 将Rubywork方面加载到Rails应用程序

Ruby on rails 4 将Rubywork方面加载到Rails应用程序,ruby-on-rails-4,module,require,helper,Ruby On Rails 4,Module,Require,Helper,我想使用特定的rubyworks facets作为助手: require 'core/facets/string/snakecase' module GenericTableHelper def generic_table_theadlink(head_title, order_parameter = head_title.snake_case ) render(:partial => 'common_partials/generic_table/theadlink',

我想使用特定的rubyworks facets作为助手:

require 'core/facets/string/snakecase'

module GenericTableHelper

  def generic_table_theadlink(head_title, order_parameter = head_title.snake_case  )
    render(:partial => 'common_partials/generic_table/theadlink', :locals => {:head_title => head_title,
                                                                              :order_parameter => order_parameter})
  end

end
我得到一个错误:

No such file to load -- core/facets/string/snakecase
已检查的文件:

gem 'facets'

如何将Rubyworks方面加载到助手?和任何其他模型/视图/控制器

我认为
核心
正在将您引入歧途

require 'facets/string/snakecase`

我认为
核心
正在把你引入歧途

require 'facets/string/snakecase`