已解决:因为手欠多加了在 rvmrc 里把 rvm_configure_flags 打开了,多了几个无效参数,注释掉即可
export rvm_configure_flags="--with-openssl-dir=$rvm_path/usr --with-readline-dir=$rvm_path/usr"
我也掉坑里了,暂时无解,有人遇到过么?
错误信息:
.rvm/log/openssl/configure.log
./Configure
Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimental-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-dso] [no-krb5] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--test-sanity] os/compiler[:flags]
.rvm/log/openssl/make.log
cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -O -c -o set_key.o set_key.c
set_key.c:399:17: error: unsupported inline asm: input with type 'unsigned long' matching output with type 'unsigned int'
*(k++)=ROTATE(t2,30)&0xffffffffL;
~~~~~~~^~~~~~
./des_locl.h:170:19: note: expanded from macro 'ROTATE'
: "I"(n),"0"(a) \
^
set_key.c:402:17: error: unsupported inline asm: input with type 'unsigned long' matching output with type 'unsigned int'
*(k++)=ROTATE(t2,26)&0xffffffffL;
~~~~~~~^~~~~~
./des_locl.h:170:19: note: expanded from macro 'ROTATE'
: "I"(n),"0"(a) \
^
2 errors generated.
make[2]: *** [set_key.o] Error 1
make[1]: *** [subdirs] Error 1
make: *** [build_crypto] Error 1
action 和 controller 的设计看起来很爽
devise 正常情况更新资料需要验证当前密码,你的表单里没有密码字段 提交的话需要参考 devise 的 controller 代码自己添一个 controller,并且用 update_without_password 来更新记录
#4 楼 @lgn21st #2 楼 @leeboqiang
克拉玛依人路过,不过目前在北京
confluence +1
github 难道没有 CDN?
也在关注,准备尝试一下
devise 可以配置多个 resource,每个 resource 就是一整套用户系统 比如 User 是一个 resource,Admin 也是一个 resource,你也可以配置任意名称的
不太能理解这样的简历,楼主从来不招聘吗
jquery datepicker
本来 ruby 的中文书就少,你还不让译者赚点钱..
几个月前试了一下,看到那个“zip 包上传代码”就不想再继续了
喜欢这样的
照 lz 说的最简单的实现方式就是 Action Mailer + sendmail sendmail 不用管,只需要简单配一下 Action Mailer 即可 自己搭 postfix 也费点事
不过像上面很多人提的,还是用成熟的第三方服务比较靠谱 sendmail、postfix 之流虽然可以发出去,但是很大几率进入垃圾箱 而想要自己实现让邮件不被识别为垃圾邮件,成本很高,划不来
先学一下 css 吧
Action Mailer + sendmail
具体啥问题都不写,神仙才知道..
可以通过随机 id 实现
def pickme
items = Item.select('id')
item = Item.find(items[Random.rand( items.length)])
redirect_to item_path(item)
end
上面这个性能不会太好,需要在这个基础上,给 Item.select('id') 加上缓存或随机分页
activerecord:
models:
timeline: '时间线'
user: '用户'
@huacnlee 在用 rubymotion?