Note that there are some explanatory texts on larger screens.

plurals
  1. POAll Forms Not Passing Parameters
    primarykey
    data
    text
    <p>All of the forms in my rails application are not submitting parameters even to the production.log:</p> <pre><code>Started GET "/countries/afghanistan/edit/" for 41.132.43.55 at Tue Sep 27 03:39:06 -0700 2011 Processing by CountriesController#edit as HTML Parameters: {"id"=&gt;"afghanistan"} Rendered countries/_form.html.erb (80.2ms) Rendered application/_nav.html.erb (2.8ms) Rendered countries/edit.html.erb within layouts/application (85.2ms) Completed 200 OK in 87ms (Views: 85.6ms | ActiveRecord: 0.5ms) Started GET "/countries/afghanistan/" for 41.132.43.55 at Tue Sep 27 03:40:20 -0700 2011 Processing by CountriesController#show as HTML Parameters: {"id"=&gt;"afghanistan"} Rendered application/_nav.html.erb (3.9ms) Rendered countries/show.html.erb within layouts/application (16.7ms) Completed 200 OK in 21ms (Views: 15.3ms | ActiveRecord: 2.3ms) </code></pre> <p>That's from the edit action and then submitting the form it goes straight to the show action. In my dev inspector it shows that the POST request has been permanently moved (301) to the GET request:</p> <p><img src="https://i.stack.imgur.com/upmIe.png" alt="enter image description here"></p> <p>I'm not sure what too look for at this point. Everything works fine in development but not in production. Here's my production.rb</p> <pre><code>App::Application.configure do config.cache_classes = true config.consider_all_requests_local = false config.action_controller.perform_caching = true config.action_dispatch.x_sendfile_header = "X-Sendfile" config.serve_static_assets = false config.i18n.fallbacks = true config.active_support.deprecation = :notify ActionMailer::Base.smtp_settings = { :address =&gt; "smtp.gmail.com", :port =&gt; 587, :user_name =&gt; "***@***.com", :password =&gt; "***", :authentication =&gt; "plain", :enable_starttls_auto =&gt; true } config.middleware.use ExceptionNotifier, :email_prefix =&gt; "[Exception] ", :sender_address =&gt; %{"Exception Notifier" &lt;***@***.com&gt;}, :exception_recipients =&gt; %w{***@***.com} end </code></pre> <p>Any help is greatly appreciated. Thanks!</p> <p><strong>UPDATE 1</strong> Here's the sessions#new</p> <pre><code>&lt;%= form_tag sessions_path do %&gt; &lt;p&gt; &lt;%= label_tag :login, "Email Address" %&gt;&lt;br /&gt; &lt;%= text_field_tag :login, params[:login] %&gt; &lt;/p&gt; &lt;p&gt; &lt;%= label_tag :password %&gt;&lt;br /&gt; &lt;%= password_field_tag :password %&gt; &lt;/p&gt; &lt;p&gt;&lt;%= submit_tag "Log in" %&gt;&lt;/p&gt; &lt;% end %&gt; </code></pre> <p>And here's another one of the forms:</p> <pre><code>&lt;%= form_for @satellite do |f| %&gt; &lt;%= f.error_messages %&gt; &lt;p&gt; &lt;%= f.label :name %&gt;&lt;br /&gt; &lt;%= f.text_field :name %&gt; &lt;/p&gt; &lt;p&gt; &lt;% for country in Country.find(:all) %&gt; &lt;%= check_box_tag "satellite[country_ids][]", country.id, @satellite.countries.include?(country) %&gt; &lt;%= label_tag "satellite[country_ids][]", country.name, :for =&gt; "satellite[country_ids][]" %&gt;&lt;br /&gt; &lt;% end %&gt; &lt;/p&gt; &lt;p&gt;&lt;%= f.submit %&gt;&lt;/p&gt; &lt;% end %&gt; </code></pre> <p>But like I said none of the forms are passing parameters.</p> <p><strong>Update 2</strong> Here's the routes:</p> <pre><code> edit_current_user /user/edit(.:format) {:controller=&gt;"users", :action=&gt;"edit"} signup /signup(.:format) {:controller=&gt;"users", :action=&gt;"new"} logout /logout(.:format) {:controller=&gt;"sessions", :action=&gt;"destroy"} login /login(.:format) {:controller=&gt;"sessions", :action=&gt;"new"} sessions GET /sessions(.:format) {:controller=&gt;"sessions", :action=&gt;"index"} POST /sessions(.:format) {:controller=&gt;"sessions", :action=&gt;"create"} new_session GET /sessions/new(.:format) {:controller=&gt;"sessions", :action=&gt;"new"} edit_session GET /sessions/:id/edit(.:format) {:controller=&gt;"sessions", :action=&gt;"edit"} session GET /sessions/:id(.:format) {:controller=&gt;"sessions", :action=&gt;"show"} PUT /sessions/:id(.:format) {:controller=&gt;"sessions", :action=&gt;"update"} DELETE /sessions/:id(.:format) {:controller=&gt;"sessions", :action=&gt;"destroy"} users GET /users(.:format) {:controller=&gt;"users", :action=&gt;"index"} POST /users(.:format) {:controller=&gt;"users", :action=&gt;"create"} new_user GET /users/new(.:format) {:controller=&gt;"users", :action=&gt;"new"} edit_user GET /users/:id/edit(.:format) {:controller=&gt;"users", :action=&gt;"edit"} user GET /users/:id(.:format) {:controller=&gt;"users", :action=&gt;"show"} PUT /users/:id(.:format) {:controller=&gt;"users", :action=&gt;"update"} DELETE /users/:id(.:format) {:controller=&gt;"users", :action=&gt;"destroy"} maps GET /maps(.:format) {:controller=&gt;"maps", :action=&gt;"index"} POST /maps(.:format) {:controller=&gt;"maps", :action=&gt;"create"} new_map GET /maps/new(.:format) {:controller=&gt;"maps", :action=&gt;"new"} edit_map GET /maps/:id/edit(.:format) {:controller=&gt;"maps", :action=&gt;"edit"} map GET /maps/:id(.:format) {:controller=&gt;"maps", :action=&gt;"show"} PUT /maps/:id(.:format) {:controller=&gt;"maps", :action=&gt;"update"} DELETE /maps/:id(.:format) {:controller=&gt;"maps", :action=&gt;"destroy"} country_channels GET /countries/:country_id/channels(.:format) {:controller=&gt;"channels", :action=&gt;"index"} country_channel GET /countries/:country_id/channels/:id(.:format) {:controller=&gt;"channels", :action=&gt;"show"} country_satellites GET /countries/:country_id/satellites(.:format) {:controller=&gt;"satellites", :action=&gt;"index"} country_satellite GET /countries/:country_id/satellites/:id(.:format) {:controller=&gt;"satellites", :action=&gt;"show"} country_testimonies GET /countries/:country_id/testimonies(.:format) {:controller=&gt;"testimonies", :action=&gt;"index"} country_testimony GET /countries/:country_id/testimonies/:id(.:format) {:controller=&gt;"testimonies", :action=&gt;"show"} country_statistics GET /countries/:country_id/statistics(.:format) {:controller=&gt;"statistics", :action=&gt;"index"} country_statistic GET /countries/:country_id/statistics/:id(.:format) {:controller=&gt;"statistics", :action=&gt;"show"} country_videos GET /countries/:country_id/videos(.:format) {:controller=&gt;"videos", :action=&gt;"index"} country_video GET /countries/:country_id/videos/:id(.:format) {:controller=&gt;"videos", :action=&gt;"show"} country_challenges GET /countries/:country_id/challenges(.:format) {:controller=&gt;"challenges", :action=&gt;"index"} country_challenge GET /countries/:country_id/challenges/:id(.:format) {:controller=&gt;"challenges", :action=&gt;"show"} countries GET /countries(.:format) {:controller=&gt;"countries", :action=&gt;"index"} POST /countries(.:format) {:controller=&gt;"countries", :action=&gt;"create"} new_country GET /countries/new(.:format) {:controller=&gt;"countries", :action=&gt;"new"} edit_country GET /countries/:id/edit(.:format) {:controller=&gt;"countries", :action=&gt;"edit"} country GET /countries/:id(.:format) {:controller=&gt;"countries", :action=&gt;"show"} PUT /countries/:id(.:format) {:controller=&gt;"countries", :action=&gt;"update"} DELETE /countries/:id(.:format) {:controller=&gt;"countries", :action=&gt;"destroy"} channels GET /channels(.:format) {:controller=&gt;"channels", :action=&gt;"index"} POST /channels(.:format) {:controller=&gt;"channels", :action=&gt;"create"} new_channel GET /channels/new(.:format) {:controller=&gt;"channels", :action=&gt;"new"} edit_channel GET /channels/:id/edit(.:format) {:controller=&gt;"channels", :action=&gt;"edit"} channel GET /channels/:id(.:format) {:controller=&gt;"channels", :action=&gt;"show"} PUT /channels/:id(.:format) {:controller=&gt;"channels", :action=&gt;"update"} DELETE /channels/:id(.:format) {:controller=&gt;"channels", :action=&gt;"destroy"} satellites GET /satellites(.:format) {:controller=&gt;"satellites", :action=&gt;"index"} POST /satellites(.:format) {:controller=&gt;"satellites", :action=&gt;"create"} new_satellite GET /satellites/new(.:format) {:controller=&gt;"satellites", :action=&gt;"new"} edit_satellite GET /satellites/:id/edit(.:format) {:controller=&gt;"satellites", :action=&gt;"edit"} satellite GET /satellites/:id(.:format) {:controller=&gt;"satellites", :action=&gt;"show"} PUT /satellites/:id(.:format) {:controller=&gt;"satellites", :action=&gt;"update"} DELETE /satellites/:id(.:format) {:controller=&gt;"satellites", :action=&gt;"destroy"} testimonies GET /testimonies(.:format) {:controller=&gt;"testimonies", :action=&gt;"index"} POST /testimonies(.:format) {:controller=&gt;"testimonies", :action=&gt;"create"} new_testimony GET /testimonies/new(.:format) {:controller=&gt;"testimonies", :action=&gt;"new"} edit_testimony GET /testimonies/:id/edit(.:format) {:controller=&gt;"testimonies", :action=&gt;"edit"} testimony GET /testimonies/:id(.:format) {:controller=&gt;"testimonies", :action=&gt;"show"} PUT /testimonies/:id(.:format) {:controller=&gt;"testimonies", :action=&gt;"update"} DELETE /testimonies/:id(.:format) {:controller=&gt;"testimonies", :action=&gt;"destroy"} statistics GET /statistics(.:format) {:controller=&gt;"statistics", :action=&gt;"index"} POST /statistics(.:format) {:controller=&gt;"statistics", :action=&gt;"create"} new_statistic GET /statistics/new(.:format) {:controller=&gt;"statistics", :action=&gt;"new"} edit_statistic GET /statistics/:id/edit(.:format) {:controller=&gt;"statistics", :action=&gt;"edit"} statistic GET /statistics/:id(.:format) {:controller=&gt;"statistics", :action=&gt;"show"} PUT /statistics/:id(.:format) {:controller=&gt;"statistics", :action=&gt;"update"} DELETE /statistics/:id(.:format) {:controller=&gt;"statistics", :action=&gt;"destroy"} videos GET /videos(.:format) {:controller=&gt;"videos", :action=&gt;"index"} POST /videos(.:format) {:controller=&gt;"videos", :action=&gt;"create"} new_video GET /videos/new(.:format) {:controller=&gt;"videos", :action=&gt;"new"} edit_video GET /videos/:id/edit(.:format) {:controller=&gt;"videos", :action=&gt;"edit"} video GET /videos/:id(.:format) {:controller=&gt;"videos", :action=&gt;"show"} PUT /videos/:id(.:format) {:controller=&gt;"videos", :action=&gt;"update"} DELETE /videos/:id(.:format) {:controller=&gt;"videos", :action=&gt;"destroy"} challenges GET /challenges(.:format) {:controller=&gt;"challenges", :action=&gt;"index"} POST /challenges(.:format) {:controller=&gt;"challenges", :action=&gt;"create"} new_challenge GET /challenges/new(.:format) {:controller=&gt;"challenges", :action=&gt;"new"} edit_challenge GET /challenges/:id/edit(.:format) {:controller=&gt;"challenges", :action=&gt;"edit"} challenge GET /challenges/:id(.:format) {:controller=&gt;"challenges", :action=&gt;"show"} PUT /challenges/:id(.:format) {:controller=&gt;"challenges", :action=&gt;"update"} DELETE /challenges/:id(.:format) {:controller=&gt;"challenges", :action=&gt;"destroy"} all_channels /all/channels(.:format) {:controller=&gt;"channels", :action=&gt;"all"} all_satellites /all/satellites(.:format) {:controller=&gt;"satellites", :action=&gt;"all"} all_testimonies /all/testimonies(.:format) {:controller=&gt;"testimonies", :action=&gt;"all"} all_statistics /all/statistics(.:format) {:controller=&gt;"statistics", :action=&gt;"all"} all_videos /all/videos(.:format) {:controller=&gt;"videos", :action=&gt;"all"} all_challenges /all/challenges(.:format) {:controller=&gt;"challenges", :action=&gt;"all"} root /(.:format) {:controller=&gt;"countries", :action=&gt;"map"} home /home(.:format) {:controller=&gt;"countries", :action=&gt;"map"} </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload