Rails3进阶之一:学习资源列表

1.在学习bundler之前,先了解一下gem与plugin的区别,不要把所有的东西都当作gem来处理了,否则会遇到许多“can not find file/gem...”
[url]http://blogs.sun.com/arungupta/entry/totd_6_difference_between_ruby[/url]

2.学习bundler:[url]http://gembundler.com/[/url]

Bundler的入门实践:[url]http://lindsaar.net/2010/2/6/bundle_me_some_rails[/url]

如果遇到“`':No such file or directory - git clone ”之类的错误,请转到:[url]http://github.com/plataformatec/devise/issues/issue/299/#comment_388916[/url]看一看是否有帮助。

3.在Rails3下使用restful_authentication插件,请参看[url]http://vinsol.com/blog/2010/04/23/upgrading-restful-authentication-plugin-for-rails-3/[/url]
如果按照rails2的方法做,会出现这样的错误:
$ rails g authenticated user sessions
Could not find generator authenticated.

4.在Rails3 ActionView中 <%= @post.content %> 表示未转义html(等价于rails2的 <%=h @post.content %>), 如果希望转义html, 则: <%=raw @post.content %>
陆续添加...
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值