search for: flashhash

Displaying 20 results from an estimated 112 matches for "flashhash".

2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
...he following output in my web browser: ActionDispatch::Session::SessionRestoreError Session contains objects whose class definition isn''t available. Remember to require the classes for all objects kept in the session. (Original exception: uninitialized constant ActionController::Flash::FlashHash [NameError]) The environment is Rails 3.2.1 => Booting WEBrick => Rails 3.2.1 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2012-07-23 22:24:03] INFO WEBrick 1.3.1 [2012-07-23 22:24:03] INFO ruby 1.9.3 (2011-10-30...
2013 Mar 21
3
Announce: Puppet Dashboard 1.2.23 Available
...Matthaus Owens, Moses Mendoza, and fhrbek ===================================== ## Puppet Dashboard 1.2.23 Release Notes ## ===================================== Comment out specific gem rack version in our vendored Rails * addresses http://projects.puppetlabs.com/issues/11669 (#17914) Store FlashHash as a normal Hash in session This patch is a backport of: https://github.com/rails/rails/commit/36376560fdd02f955ae3bf6b7792b784443660ad In the form of a monkey patch in the puppet-dashboard initializer stage. This is required to allow puppet-dashboard to co-exist with other appl...
2006 Apr 27
4
Sessions Problems
Hi to group! I am new to ROR! I am facing problems on sessions. First I created the one session variable. after that I created the other one. after moving to three pages the session was destroyed automatically. What is the reason please help me! Thnaks and Regards, -Kumar Varma -- Posted via http://www.ruby-forum.com/.
2005 Dec 16
3
Help with error
I am getting this error NoMethodError in Admin#add_to_project undefined method `find'' for #<Project:0x249da88> RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/ base.rb:1501:in `method_missing'' ./script/../config/../app/controllers/admin_controller.rb:65:in
2006 Jun 18
2
Why can''t I use a session? (Symbol as array index)
...Trace #{RAILS_ROOT}/app/controllers/application.rb:10:in `[]'' #{RAILS_ROOT}/app/controllers/application.rb:10:in `compute'' #{RAILS_ROOT}/app/controllers/main_controller.rb:4:in `index'' Request Parameters: None Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} -- Posted via http://www.ruby-forum.com/.
2006 May 06
3
define the meaning of this error
...Full Trace This error occured while loading the following files: student.rb Request Parameters: None Show session dump --- user: !ruby/object:User attributes: id: "13" password: 2afdef3e1ba036aa45b6a63421a075aabdbdef19 login: alaa_z flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} -- Posted via http://www.ruby-forum.com/.
2005 Dec 18
1
session temp files?
I''m running a simple WEBrick server for a small rails website. I probably get less than 100 hits per hour. I just looked in /tmp on the server and there are over 10,000 ruby_sess.* temp files containing: " hash{" flashIC:''ActionController::Flash::FlashHash{: @used{ They''ve piled up so much that I can''t even rm -f ruby*. Bash complains "argument list too long" How do people typically clean these up? A cron job? Can they all be safely deleted or should I only delete "older than...." files? Thanks, Gary
2008 Jan 30
1
undefined method `scaffold'
...rails. Last time I tried to use scaffold i worked now I am getting this error. Not really sure since I am using version 1.2.5 still NoMethodError in BlogController#index undefined method `scaffold'' for #<BlogController:0x506eb7c> Session dump flash: !map:ActionController::Flash::FlashHash {} Thanks for any help -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh...
2010 May 31
1
Flash not deleting with Redis/Memcache store
...//github.com/jodosha/redis-store But it appears the flash messages aren''t going away when they''re supposed to as discussed in this issue, which I haven''t gotten a response on yet: http://github.com/jodosha/redis-store/issues#issue/3 The gist is ActionController::Flash::FlashHash#sweep isn''t properly detecting that a flash has been used when using either the Memcache or Redis store for sessions. So how do I delete them manually? I thought about just editing the FlashHash class and forcing it to delete any flash keys without checking the @used stuff. That would for...
2007 Mar 05
3
Cannot save session in IE6
A search only returned this thread: http://www.ruby-forum.com/topic/71970#101107 FF and IE7 both accept and store sessions as such: --- !ruby/object:CGI::Session data: &id001 :person_id: 1 :person_name: Bob flash: !map:ActionController::Flash::FlashHash {} But IE6 refuses to store the session and returns this: --- !ruby/object:CGI::Session data: &id001 flash: !map:ActionController::Flash::FlashHash {} Can filenames or underscores cause this problem? Any suggestions? Google hasn''t helped. Thanks! -- Posted via http://www.ruby-...
2006 Apr 02
1
One to Many Relationship Issues
...`, `title`, `website_url`, `description`, `user_id`) VALUES(''bb'', 22.0, ''aa'', ''www.drill.com/cordless'', ''bb'', 0) The user_id(last column) needs to be 1, and its 0 Session dump: --- flash: !ruby/hash:ActionController::Flash::FlashHash {} :user_id: 1 models: class Advert < ActiveRecord::Base belongs_to :user end class User < ActiveRecord::Base has_many :advert end adverts controller: def create @advert = Advert.new(params[:advert]) if @advert.save flash[:notice] = ''Advert was successfully cre...
2006 Jul 24
2
Newbie error message!
...1) RAILS_ROOT: ./script/../config/.. Request Parameters: {"commit"=>"Import", "description"=>{"description"=>#<StringIO:0x36311f0>}, "variable"=>["English"]} Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} This is my code (controller): def import_strings(a_string) table = { } IO.foreach(''#{a_string}'') { |line| if line =~ /^ \s* " (.*?) " \s* = \s* " (.*?) &...
2010 Dec 17
1
flash[;notice] not display after redirection
...#content_wrapper #content %p.notice = flash.to_yaml = notice %p.alert = alert = yield and I got an empty flash ... (flash.to_yaml ) --- !map:ActionDispatch::Flash::FlashHash {} I don''t think the "expire_session_data_after_sign_in! " in the controller doesn''t any change (the flash notice is still there... ) but the redirection to the home page seems to get rid of it redirect_to after_inactive_sign_up_path_for(resource) is it a...
2006 Jun 13
13
Pass infomation between different views and controllers
Hi, I am a rails and ruby nuby :-) How do you pass data between different controllers and views? I have a page ( a quote) that I am editing url ....quote/edit/6 6 id the current id. I then go to a catalog (url....catalog) to add an item to my quote (I do this via a line_item file that the quote reads) I now want to go back to the quote. I have tried this <%= link_to ''Back to
2007 Jan 19
6
Problem w/ routes.rb
I am trying to develop a new webapp using Rails 1.2.1. I am installing it onto a production web server running Apache w/ fastcgi. The server already has some older webapps running on it using an older version of Rails. The apps are not installed in the document root; they each have their own subdirectory which is a symlink for the apache document root to the "public" directory of each
2006 Jan 25
1
Agile arguement error
...d_to_cart wrong number of arguments (0 for 1) What am I doing wrong? I know it''s got to be some thing stupid. Request: Parameters: {"id"=>"1"} session dump: --- :cart: !ruby/object:Cart items: [] total_price: 0.0 flash: !ruby/hash:ActionController::Flash::FlashHash {} and the method def: def add_to_cart product = Product.find(params[:id]) @cart = find_cart @cart.add_product(product) redirect_to(:action => ''display_cart'') end
2008 Jan 23
0
bug in external apps
...gins/facebooker/lib/facebooker/rails/controller.rb:110:in `redirect_to'' ### ... above two lines repeated 100''s of times ... ### app/controllers/pages_controller.rb:11:in `method_missing'' Request Parameters: None Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}
2007 Mar 12
0
Undefined method: hashed_password ?
..._user'' Request Parameters: {"user"=>{"name"=>"al", "password_confirmation"=>"cl", "password"=>"bl"}, "commit"=>"Add User"} Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} **** Any Ideas? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post t...
2008 Jul 09
1
Problem with ActiveScaffold+RecordSelect
...Request Parameters: {"parent_id"=>"1", "parent_model"=>"User"} Show session dump --- as:admin/avatars: :list: {} as:admin/users: :list: {} :return_to: :user_id: 1 :csrf_id: 4d9f4ac11741e9136fc148d535879e75 flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} Thanks for all ale -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups &...
2010 Sep 02
0
controller failing to read flash
...Use <tt>flash["notice"]</tt> to # read a notice you put there or <tt>flash["notice"] = "hello"</tt> # to put a new one. def flash #:doc: if !defined?(@_flash) @_flash = session["flash"] || FlashHash.new @_flash.sweep end @_flash end Thanks! Andrew -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@p...