#2 楼 @zacker330 清空你的知识,接收它。
Active Record 基础 http://docs-china.com/rails/active_record_basics.html
#15 楼 @flowerwrong 检查下怎么这里是 2.1.2?
#13 楼 @flowerwrong rvm list
我觉得它能 Continuing,说明不是一个必须的东西。
你登录用户用的 ruby 和 passenger 环境用的 ruby 版本是否相同?
奥,目前这个地址确实 404,再查一下先。
#9 楼 @flowerwrong 翻墙
git://github.com/rweng/jquery-datatables-rails.git (at master) is not yet checked out. Run `bundle install` first. (Bundler::GitError)
至少有一个 gem 没安装成功。
<p>It looks like Bundler could not find a gem. Maybe you didn't install all the gems that this application needs. To install your gems, please run:</p>
<pre class="commands">bundle install</pre>
还有,很多人提问的时候说“按照这个教程来做”,麻烦指出做到哪一步出现错误,不然完全没有头绪。
可以。
如果你设定了 recommend 类型是 Integer,那么可能读取属性的时候做了 to_i
的转换,'1'
就被转成 1
了。但是 mongodb 本身是无模式的,什么类型都可以存。
如果用的是 Jquery,加上 jquery.turbolinks https://github.com/rails/turbolinks#jqueryturbolinks
Turbolinks 要注意的问题不止 ready 事件,建议完整看一遍文档甚至代码 https://github.com/rails/turbolinks 。
Basecamp 大部分 JavaScript 是这样写的:
<label>
<b>Set the due date:</b>
<div data-behavior="date_picker"></div>
</label>
$('[data-behavior~=date_picker]').on 'focus', ->
$(this).datepicker()
JavaScript 全打包到一个。
http://signalvnoise.com/posts/3167-code-spelunking-in-the-all-new-basecamp
recommend 是不是设了默认值,但是没保存进数据库?
其实你不需要开发。推荐一篇文章 入门错误一:过早产品化 http://www.dennythecow.com/?p=12
新注册一周不能提问。在这段时间那你可以看《提问的智慧》 http://www.wapm.cn/smart-questions/smart-questions-zh.html 尝试自己解决。
如果你需要一个立即能提问的地方,可以去 http://segmentfault.com/ 。
#29 楼 @hpyhacking 好,更新了。
为什么要用两年前的版本?
问题是什么?
https://ruby-china.org/topics/20003 这个帖子完全是 NoPoint,你应该先搜索,然后展示搜索成果,在此基础上询问有没有更好的资料。
https://ruby-china.org/topics/20006 这个帖子没有具体例子,xyz 的代码无法开始讨论,请贴真实代码。
免得又被骂成狗,我先澄清一点:这次不是我,但我赞同这两个帖子是 NoPoint。