This project is archived and is in readonly mode.
Params Hash issues?
-
Matt Jankowski
This seems to work correctly in test mode, I added a "puts params.inspect" line to the #create action where this was occurring in development mode. Results are as expected in test...
{"user"=>{"password"=>"mock", "email"=>"mock"}, "action"=>"create", "controller"=>"admin/session"} -
josh
- State changed from new to wontfix
- Assigned user set to josh
This is related to a rack gem loading issue. Rack 0.9 doesn't support nested params (yet), however the soon to be release rack 1.0 does. We've bundled rack 1.0 with Rails but there were some known loading issues in RC2 but were fix in the final release.
-
Matt Jankowski
Ok, this is happening on a 2.3.2 app which was updated with "rake rails:freeze:edge RELEASE=2.3.2" (and pulled down the zip, etc) shortly after the release today.
I also confirmed that this happens with a v2.3.2 tarball downloaded from github.
-
Matt Jankowski
New info...
This does NOT happen using mongrel_rails to run the app under mongrel, but it does happen when using 'thin start' to run the app with thin.
-
Matt Jankowski
Attempted using both thin 1.0.0 from rubygems and thin 1.1.0 from github, which I think is the latest stable thin gem release.
-
josh
The v2.3.2 git tag is wrong. The next commit includes this fix. However the 2.3 gem version was built from the correct source.
-
Matt Jankowski
Ok, thanks for the help. I pulled from edge instead of the 2.3.2 tag, and it's fine now.
Maybe clarify this mis-tagging on the official release blog post or something? I could see this driving people mad if they happen to be using thin in local development...
-
Luigi Montanez
Agreed, please fix the 2.3.2 tag. It's what's used to generate the .tar.gz archive at dev.rubyonrails.org, so anyone using that gets a bad version of Rails 2.3.2.
-
Tomas Varsavsky
I'm having the same issue but did not freeze rails gems from the git repo. I did:
gem install rails --version 2.3.2 RAILS_GEM_VERSION = '2.3.2' in my environment.rb rake rails:freeze:gems
From what I can gather in the comments above, I should not have a broken version.
-
Tomas Varsavsky
Updated to edge rails, problem persists. I'm using latest released Rack 0.9.1.
-
Tomas Varsavsky
The problem was that I had Rack 0.9.1 as a dependent gem in my environment.rb which conflicted with the version of Rack that is bundled with Rails 2.3.2. I had added rack 0.9.1 as a dependency because Rspec 1.2.2 needs it. I moved the rack dependency to test.rb and now everything works.
-
Matthew Williams
- Tag set to 2.3.2.1, bug, hash, params
I'm showing the exact same behavior but unlike Tomas, I do not have Rack 0.9.1 as a dependent gem anywhere.
Has anyone come up with a solid resolution for this problem yet?
-
Matthew Williams
Disregard previous message.
I'm sending an empty param from a hidden field which Rack 1.0 is now blowing up on. Removing the hidden field solves my problem and the params are handled correctly but a main functionality of my application is now broken because Rack doesn't like that empty hidden field.