rails-3-upgrade

Custom filtering of parameters in rails 3 using config.filter_parameters

三世轮回 提交于 2019-11-30 14:52:26
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

Can I update to Ruby 2.1.2 using Rails 3.2.3?

坚强是说给别人听的谎言 提交于 2019-11-30 00:24:03
问题 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