天道酬勤,学无止境

rails-3-upgrade

我可以使用Rails 3.2.3更新到Ruby 2.1.2吗?(Can I update to Ruby 2.1.2 using Rails 3.2.3?)

问题 首先,我认为这不是StackOverflow上被禁止的问题,因为它是关于环境的精确问题,是一个客观问题。 但是,如果被禁止,请告诉我。 当前,我正在开发一个使用Ruby 1.9.3和Rails 3.2.3的特定项目,由于该项目的依赖性,目前我们无法升级到Rails 4 。 我的问题是: 使用Rails 3.2.3 ,我们可以升级到最新的Ruby版本吗? 如果是这样,什么版本: Ruby 2.0 , Ruby 2.1.2或另一个版本? 另外,我在Google和StackOverflow上进行了搜索,但没有找到类似的问题。 谢谢! 回答1 正式支持ruby 2.0的rails的第一个发行版是3.2.13(请参阅rails博客上的公告。 我部署了几个运行3.2.15-3.2.17和ruby 2.0的应用程序(它们已经升级到Rails 4),没有任何我记得的问题。 最近发布的3.2.22支持ruby 2.2(公告) 回答2 根据Travis的配置,Rails 3.2.3仅在Ruby 1.8.7、1.9.2和1.9.3上进行了测试,因此使用更高版本的Ruby似乎不是一个好主意(但您始终可以但是,Rails 3.2.3具有一些已知的安全漏洞,这些漏洞已在3.2.19中进行了修补。 另一方面,Rails 3.2.19的配置确实建议开发人员希望它可以与Ruby 2.0.0一起使用。

2021-05-31 14:37:56    分类:技术分享    ruby-on-rails   ruby   ruby-on-rails-3   version   rails-3-upgrade

Can I update to Ruby 2.1.2 using Rails 3.2.3?

First of all, I think it isn't a prohibited question on StackOverflow since it's a precise question about environment, an objective question. But if it's prohibited, please tell me. Currently I'm developing a specific project that is using Ruby 1.9.3 and Rails 3.2.3, at the moment we can't upgrade to Rails 4 because the project dependencies. My question is: Using Rails 3.2.3, we can upgrade to a newest Ruby version? If so, what version: Ruby 2.0, Ruby 2.1.2 or another one? Also, I searched on Google and StackOverflow and I don't find a question like that. Thanks!

2021-04-28 18:14:24    分类:问答    ruby-on-rails   ruby   ruby-on-rails-3   version   rails-3-upgrade

Custom filtering of parameters in rails 3 using config.filter_parameters

I'm working on upgrading from Rails 2.3.11 to 3.0.10, and am having trouble converting what is in the ApplicationController's filter_parameter_logging. I want to filter both certain parameters, and also filter them if they appear in the value of something like a :referrer tag. I can get the regular parameters filtered out in my application.rb config.filter_parameters += [:password, :oauth, ...] But what I'm having trouble with is the block that we also pass in filter_parameter_logging. It also filters out the parameters in any value that looks like a url, so something like http://example.com

2021-04-28 07:23:40    分类:问答    ruby-on-rails   ruby   ruby-on-rails-3   rails-3-upgrade