具有轨道问题的数据 [英] datatables with rails issue

查看:162
本文介绍了具有轨道问题的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把这个包含在我的栏目中:

I have included this in my rails:

gem 'jquery-datatables-rails', github: 'rweng/jquery-datatables-rails'

但是当我启动服务器时,我收到这个错误:

but when I start the server I'm getting this error :

←[31mYou passed :github as an option for gem 'jquery-datatables-rails', but it is invalid.←[0m

我猜是因为我在本地运行它。如果我正在运行,我的路径是什么它在本地?

I guess its because I'm running it locally.BTW,what will be my path if I'm running it locally?

我追随此演员的另外一件事:

1 more thing I followed this cast:

http://railscasts.com/episodes/340-datatables?view=asciicast

我也试过这样:

gem 'jquery-datatables-rails'

但是,在捆绑安装后,没有下载css和js文件,它给我找不到文件。

But after bundle install the css and js files are not downloaded and it is giving me file not found error.

解决方案

检查演员:


github选项是Bundler 1.1中的新增功能。如果你没有这个,那么
需要传递完整的git路径。

The github option is new in Bundler 1.1. If you don’t have this you’ll need to pass in the full git path instead.

所以尝试使用

gem 'jquery-datatables-rails', git: 'https://github.com/rweng/jquery-datatables-rails.git'

这篇关于具有轨道问题的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆