here's how it should work: I sign up to the admin panel, go to cars / new and fill in the fields, click "Create" and I have to have a new car in my list. www.autozeep.com
the fact is that it goes fine, until I press the Create button to create a new car, the server logs show this:
NameError (uncaught throw `warden'): app/controllers/application_controller.rb:9:in `login_required' app/middleware/flash_session_cookie_middleware.rb:17:in `call'
in development mode, this works fine, on a server in production mode it is not, this is the same code, nothing has changed. for more server logs: http://pastie.org/3028350
application_controller class ApplicationController < ActionController::Base protect_from_forgery
users_controller: http://pastie.org/3028586
I can edit the car, it works fine, so the update and editing functions from cars_controller are fine, I checked new ones and create functions from cars_controller, but I couldn’t stop anything, which would give me an idea of what was going on, Cars_controller: http: //pastie.org/3028452
Please help, I already have this application running, and the client is waiting for this problem to be resolved. Thank you very much.
EDIT
NameError in CarsController#create uncaught throw `warden' Rails.root: /u/apps/zeepauto/releases/20111123173432 Application Trace | Framework Trace | Full Trace app/controllers/application_controller.rb:9:in `login_required' app/middleware/flash_session_cookie_middleware.rb:17:in `call' ENV DUMP ... .... rack.url_scheme: "http" rack.version: [1, 0] warden: Warden::Proxy:-621456458 @config={:default_strategies=>{:_all=>[:database]}, :failure_app=>UsersController, :default_scope=>:default, :scope_defaults=>{}, :intercept_401=>true} warden.options: {:attempted_path=>"/cars", :action=>"unauthenticated"}
I get these errors only when I add a new car, I can edit cars, news, contacts. everything except cars.
SOLVED PROBLEM
This problem was caused by some jquery library, I use dynamic_form in this form, so when I select the name of the car in the next select_box, only the models for the selected car are displayed. Having examined the problem (with my teacher, I would not have thought about it myself), we see that when I select a car, a process called “dynamic_carmodels” is started in the logs to update the list of wireframes, and also at that moment the session key is changed by another one, usually, if the session key changes, the session that I started when I logged in is no longer valid, and therefore I get a "no check error". I still don’t know what exactly caused the jquery problem, but in the end, I decided that this was not due to the configuration of the boss.