I'm trying to use a session variable in FCKEditor. The plugin controller lives in vendor. What I'm trying to do is use the session[:username] as the upload path, so everyone can have their own stash of images. FCK will never be available if the session isn't available, so I'm not so worried about that (yet).
I've tried just straight calling the session[:username] within the controller - I get the error when starting up the server:
I've tried setting a constant in the application controller (I've also tried the session and post controller) and I get the error when starting up the server:Code:... Exiting ./script/../config/../vendor/plugins/fckeditor/app/controllers/fckeditor_controller.rb:6:in `[]': Symbol as array index (TypeError) ...
I have no idea what I'm doing... obviously... I'm totally lost and confused about the process of the server startup. It kind of makes sense because the session isn't there for the plugin on startup (I think?) but I don't know how else to go about this.Code:... Exiting /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:477:in `const_missing': uninitialized constant FckeditorController::USERFOLDERNAME (NameError) from ./script/../config/../vendor/plugins/fckeditor/app/controllers/fckeditor_controller.rb:5 ...
Thanks soooo much for any help!!!



Bookmarks