similar to: flash not shown

Displaying 20 results from an estimated 500 matches similar to: "flash not shown"

2006 Jul 10
1
Redirects and keeping flash
My code that acts if a session has timed out looks like this: reset_session session[:expires_at] = nil # TODO - This flash is never shown, because we redirect maybe? flash[:error] = ''Your session has timed out, please login to continue.'' # An attempt to make flash stick around, not working flash.keep redirect_to :controller => ''security'',
2013 Aug 26
2
linkedin login using omniauth
Hi, I am trying to add linkedin login feature in my rails application using omniauth gem..I used omniauth gem for Fb login and it''s working fine..but it''s not working for linkedin login this is my code /model/user.rb class User < ActiveRecord::Base attr_accessible :name, :oauth_expires_at, :oauth_token, :provider, :uid def self.from_omniauth(auth)
2009 Feb 02
2
did_not_yield
Hello, I have some rudimentary code for loging into my app and database, it works ok (I think) but in Production, it does some strange things. I''ve reduce the problem to a more simplest approach, without rendering, simply creating a variable of what should do. Here is what I get in the log: Processing ScannsController#status (for 127.0.0.1 at 2009-02-02 14:24:25) [GET] Session ID:
2006 May 17
3
What am I missing?
There''s got to be a simple answer to this... def logout reset_session flash[:notice] = "Logged out" redirect_to :action => ''index'' end The flash never shows up, and doesn''t seem to be in the new session. --Al Evans -- Posted via http://www.ruby-forum.com/.
2006 Jun 19
13
PNG and Alpha-Transparency
Is there a prototype / extension which will assist in cross-browser support of PNG images? http://www.alistapart.com/articles/pngopacity/ It seems to me that a class could be developed which would zip through the DOM and make changes where needed for IE 5.5 / IE 6.0 to handle PNG images. I don''t want to write one if it''s been done before. Sam
2006 Jul 07
4
need help with some ugly code - is there a better way?
Hi, In my user_controller.rb, I have the following method, which is supposed to send the user to their profile, dependng on what "role" they are (the roles correspond to the other controllers: venue, band, fan): def login if request.post? if session[:user_id] = User.authenticate(params[:user][:login], params[:user][:password]) flash[:message] =
2002 Jul 02
1
Rsync: Segmentation fault
Rsync 2.5.5; transfer via ssh; sparc-sun-solaris2.5 (Ultra 1); gcc 2.8.1. Every time rsync on this box causes boundary violation. I attached two strange examples. I have a few rsync's corefiles (100MB and above) and I can examine them. I will be grateful for any help. -Mirek <-------------------------------------------------------------------------> received 966761 names done
2006 Jan 09
3
Custom flash[:notice]
For the most part, my flash[:notice] messages fall into one of two categories: either a message stating that something happened successfully (which is colored green), or messages showing errors (which I would like to be red). Is it possible to set some sort of flag on these messages to choose which color I want to show, or would I need to base it on CSS and set the class in the text, i.e.
2012 Jul 23
2
Mechanize::Agent#post_connect_hook response != Mechanize#parse response
I''m working through an idea for a db-backed cache for Mechanize#get(). The idea is to use a Mechanize::Agent#post_connect_hook to cached any fetch data, and create a subclass of Mechanize::Agent#get() that checks the cache before calling super. I want to store the un-parsed (raw) page in the db, and call Mechanize#parse when there''s a cache hit, something along these lines:
2009 Jun 19
1
Session Reset when clicking back button of the browser
hi friends... here is my query.... kindly give ur views pls... after logging into the application,i redirect to company list page.now when user clicks the browser back button it should show the login page.that is i want to destroy the session.so in my login controller i have written code below. def log_in if request.get? reset_session end end in my routes.rb map.root :controller =>
2005 Feb 22
2
RE: Relocating the directory for ruby_sess.* files
Please, someone can tell me where session data are stored on Windows, using Webrick in its default configuration? After storing an object into @session, I initially can access only the controller that has stored the object. Otherwise, the html page displays "Not found" and the Webrick console displays: #<ActionController::SessionRestoreError: Session contained objects where the
2006 Aug 22
7
Cleanup at session expiration
I''m going to explicitly time out sessions if they''re idle more than X minutes. Like online banking sites do. How do I set things up so that, when a session expires, a set of database records and a set of files that may have been created (which are identified via a seperate set of database records) are deleted just before the session data? TIA, Bill
2007 May 23
3
User Login (process_login)
Hiya - before I start let me tell you i''m a Nuby on Rails. I''ve created a user registration within my application that requires email validation and that seems to be working fine. I''m now creating the user login page and have the following code in my UsersController: def login @user = User.new @user.username = params[:username] end def
2005 May 11
7
1.0.8 Salted hash login generator available
All, Version 1.0.8 of the salted hash login generator is available. This contains a few minor bug fixes with the generator plus some README clarifications. If you are successfully running with the code already, you probably do not need this. Joe
2006 Jun 14
1
reset_session when Ruby goes down
Hi, In my web application we have implemented the session and it works fine. ie. it prompts for the userid/password when ever we give the URL by opening a new IE window. i.e it goes through the session and see if the :user_id is present in the session if not it prompts to log-in again. But my problem is say if we "kill" the WebRICK abruptly by pressing ^C and say my browser window
2020 Sep 14
2
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
On Mon, Sep 14, 2020 at 05:48:07PM +0300, Dan Carpenter wrote: > Hi Jie, > > url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20200911-115013 > base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next > config: parisc-randconfig-m031-20200913 (attached as .config) > compiler: hppa-linux-gcc (GCC)
2020 Sep 14
2
[PATCH v2] i2c: virtio: add a virtio i2c frontend driver
On Mon, Sep 14, 2020 at 05:48:07PM +0300, Dan Carpenter wrote: > Hi Jie, > > url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20200911-115013 > base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next > config: parisc-randconfig-m031-20200913 (attached as .config) > compiler: hppa-linux-gcc (GCC)
2020 Sep 03
9
[PATCH] i2c: virtio: add a virtio i2c frontend driver
Add an I2C bus driver for virtio para-virtualization. The controller can be emulated by the backend driver in any device model software by following the virtio protocol. This driver communicates with the backend driver through a virtio I2C message structure which includes following parts: - Header: i2c_msg addr, flags, len. - Data buffer: the pointer to the i2c msg data. - Status: the
2020 Sep 03
9
[PATCH] i2c: virtio: add a virtio i2c frontend driver
Add an I2C bus driver for virtio para-virtualization. The controller can be emulated by the backend driver in any device model software by following the virtio protocol. This driver communicates with the backend driver through a virtio I2C message structure which includes following parts: - Header: i2c_msg addr, flags, len. - Data buffer: the pointer to the i2c msg data. - Status: the
2007 Nov 07
1
thumbnailer/swfdec-thumbnailer.c
thumbnailer/swfdec-thumbnailer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: commit a31d0686b78df2da96b9d8d1e3220e63978bba30 Author: Benjamin Otte <otte at gnome.org> Date: Wed Nov 7 20:02:04 2007 +0100 s/swfdec_player_get_image_size/swfdec_player_get_default_size/ diff --git a/thumbnailer/swfdec-thumbnailer.c b/thumbnailer/swfdec-thumbnailer.c index