ImageUploader 生成了吗?
错误页面点 Full Trace,贴出来
@work
这个实例变量赋值了吗?
@work = Work.new
ActiveRecord 需要给你的 Model 加一个字段,你的例子是要加个 image 字段,string 类型
还有,错误栈贴全,不然很难判断什么问题。
气压椅会爆炸喔!
付费啊,这么好的服务
乘一个倍数?
#10 楼 @brantyoung 喜欢你的观点 : )
能不能画点不恐怖的 @ @
#4 楼 @ColdsterW 在 Web 层面,Rails 是目前最好的框架。我看过很多非 Ruby 程序员对 Rails 的介绍都是错的。Rails 的模块化做得很好,几个大块不满意都可以替换,比如 Ruby China 模型层用了 Mongoid,CodeCampo 的视图模板用了 haml,以后还可能用 slim。但是 Rails 的默认组件对大部分人是最优选择,所以成为了最省时间的 Web 框架。
Ruby 的现成工具包很多,可以在这里大概浏览一下有没有自己需要的库 https://www.ruby-toolbox.com/
好像新功能都是企业版,不过也好,他们公司盈利才能更好的维护开源版。
touch tmp/restart.txt
是我见过最省心的重启方法。
没加进 Gemfile 的 gem,Rails 不会 load。
魔法!
有时我真不知道某些 Pyhtoner 的偏见是从哪来的。
楼主的需求不需要 Web 端,Rails 是个 Web 框架对楼主帮助不大。
Python 和 Ruby 都行,看楼主喜欢哪个,库都不缺。
别回啦,这贴太老了。
Implementations and specifications have to do a delicate dance together. You don’t want implementations to happen before the specification is finished, because people start depending on the details of implementations and that constrains the specification. However, you also don’t want the specification to be finished before there are implementations and author experience with those implementations, because you need the feedback. There is unavoidable tension here, but we just have to muddle on through.
chmod -R 777
是很不安全的行为,等于说「我不需要安全机制了」
歪楼成功
「放手!我的手指不能用了,活在这个世上还有什么意义!」 「你还有我啊!」
-编辑掉-
我也建议加上分页了,现在回复过百不是难事,虽然会导致楼层链接失效。
#8 楼 @jialezhang 这是 ~
键下面的那个符号
#42 楼 @hawkflying 我看了你的个人页面,再 mark 就要处罚了。