3 ms·
Is this good or bad: Parameters: {"action"=>"list", "id"=>#<ActionController::Base:0x6dc4177ed940 @bar=1>, "controller"=>"news"}
by thtas 14y ago
Is this good or bad:
Parameters: {"action"=>"list", "id"=>#<ActionController::Base:0x6dc4177ed940 @bar=1>, "controller"=>"news"}
- vinhboy 14y agoBad. It means you succesfully made an ActionController object . Good would look something like this: Parameters: {"action"=>"index", "id"=>"--- !ruby/object:ActionController::Base
- thtas 14y agookay - (forgive me). I have a very old project i'm trying to fix. I updated rails to 3.2.11 It's been like 4 years since i did this and haven't touched rails since. What else do i need to do here to fix this? i Thought rails 3.2.11 was ok..
- xenophanes 14y agoRails 3.2.11 is OK. I upgraded a website to it and did nothing else and when I try the curl command ( curl -i -H "Content-Type: application/xml" -X POST -d '<id type="yaml">--- !ruby/object:ActionController::Base bar: 1</id>' http://example.com/ http://example.com/ ) I see something like this in the production log: Hash::DisallowedType (Disallowed type attribute: "yaml"): activesupport (3.2.11) lib/active_support/core_ext/hash/conversions.rb:112:in `typecast_xml_value'
- thtas 14y agoYeah my site is on a shared host.. and it's picking up a different version of rails. fuuuuck.
- gommm 14y agoIf you're running a very old version of rails, it might not be that easy to update to the latest rails version. In that case, just stick this in your config/environment.rb ActionController::Base.param_parsers.delete(Mime::XML) This will disable parsing of xml which most people never use anyway