views:

77

answers:

0

With the upgrade to rails 2.3.5 suddenly ALL my forms are now submitting via GET requests.

I upgraded from rails 2.0.x, so is there something that I missed out on along the way?

Is anyone else seeing this?

Example - Login form

<form action="/submit_login" method="post"> 
        <table class='form'> 
          <tr> 
            <th> 
              <label for='login'>Login</label> 
            </th> 
            <td><input id="login" name="login" type="text" /></td> 
          </tr> 
          <tr> 
            <th> 
              <label form='password'>Password</label> 
            </th> 
            <td><input id="password" name="password" type="password" /></td> 
          </tr> 
          <tr> 
            <th>Remember Me?</th> 
            <td><input id="remember_me" name="remember_me" type="checkbox" value="1" /></td> 
          </tr> 
          <tr> 
            <th></th> 
            <td><a href="http://onlinelistings.localhost:3000/password_reminders/new"&gt;Forgot your Password?</a></td> 
          </tr> 
        </table> 
        <div class='buttons'> 
          <input name="commit" type="submit" value="Sign In" /> 
        </div> 
      </form>

Log file (**note the GET request and the lack of any post variables)

The log when submitting the form above.

Processing SessionsController#create (for 127.0.0.1 at 2009-12-04 23:08:41) [GET]
Parameters: {"action"=>"create", "controller"=>"sessions"}
User Load (0.4ms)   SELECT * FROM `users` WHERE (`users`.`email` IS NULL) AND (users.state = 'active') LIMIT 1
Rendering template within layouts/application
Rendering sessions/new
Rendered partials/misc/_message (0.2ms)
Completed in 129ms (View: 4, DB: 1) | 200 OK [http://onlinelistings.localhost/submit_login]

Plugins Used:

config.gem "activemerchant", :source => "git://github.com/Shopify/active_merchant.git", :lib => "active_merchant"
config.gem "acts_as_list", :source => "git://github.com/ryanb/acts-as-list.git"
config.gem "haml", :source => "git://github.com/nex3/haml.git"
config.gem "paperclip", :source => "git://github.com/thoughtbot/paperclip.git"
config.gem 'rspec', :lib => 'spec'
config.gem 'rspec-rails', :lib => 'spec/rails'
config.gem "rubyist-aasm", :source => "http://gems.github.com", :lib => "aasm"
config.gem "will_paginate", :source => "git://github.com/mislav/will_paginate.git"

vendor/plugins

whitespace
ssl_requirement
sanitize_params
rspec_on_rails_matchers
exception_notifier
acts_as_paranoid

routes (some of them)

map.resources :accounts, :collection => {:check_subdomain => :get, :find_geocoords => :get}
map.resources :evaluation_requests
map.resources :listings do |listing|
    listing.resources :listing_photos, :name_prefix => ""
end
map.resources :password_reminders
map.resources :sessions
map.resources :staff_members
map.resources :users, :member => {:new_password => :get}