Displaying 20 results from an estimated 5000 matches similar to: "controller failing to read flash"
2010 Dec 17
1
flash[;notice] not display after redirection
I read all previous posts about the same subject in Devise group but
couldn''t find any answer, so iy may not be related to Devise , so
I debugged it ..
.
class Users::RegistrationsController <
Devise::RegistrationsController
..
# POST /resource/sign_up
def create
build_resource
if resource.save
if resource.active?
set_flash_message :notice, :signed_up
2010 May 31
1
Flash not deleting with Redis/Memcache store
I''m a recent convert to Rails and I''m working on a new project using Rails 2.3 (I''ll probably upgrade at some point when Rails 3 is in production and had a chance to bake the .0 bugs out). I''m going to use Redis anyway for caching important data, so I thought I''d use the redis-store:
http://github.com/jodosha/redis-store
But it appears the flash
2010 Jan 26
1
Why does UserSession.find return nil when using user_credentials = single_access_token?
I believe that I''ve set up everything such that single_access_token
should be sufficient to pull a user''s session.
The scenario is:
Bob uses Firefox and creates an account on LoginUI (http://
www.coolaj86.info/loginui).
Instead of using cookies, Bob''s single_access_token comes in the
response to the request.
LoginUI submits Bob''s single_access_token with every
2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
My application, a very simple general ledger, that worked very well until
June 26 does not work any longer. It is used under Ubuntu 12.04 and I
believe there was a Ruby update after that.
What happens?
When I try to start the appIication I get the following output in my web
browser:
ActionDispatch::Session::SessionRestoreError
Session contains objects whose class definition isn''t
2009 Dec 03
2
AuthLogic Question - one time password (persistence_token) - what config is required to use this???
Hi,
I''m stuck trying to work this one out - have been reviewing the
AuthLogic code base but having a hard time making sense of it (
http://github.com/binarylogic/authlogic ).
Question 1 - Can anyone confirm what config exactly is required to
make the one time password (persistence_token) work in AuthLogic? See
below for the bulk...
Question 2 - If not the full answer to the above,
2007 Jul 12
1
WWW::Mechanize::Link.inspect needs some TLC
The problem: users trying to debug Mechanize apps with Komodo
are finding the debugger times out once it''s loaded a web
page. They don''t run into this in the ruby-debug debugger,
or running in normal mode.
The reason: Komodo''s debugger is graphical, which means that
whenever it hits a breakpoint it automatically shows the
contents of each local variable. It has a
2010 Dec 05
3
Strange problem with CSV and funny chars
I am using CSV in a rake task (db:seed) on Rails 3.0.3, Ruby 1.9.2 to
read a file with some funny chars in it. Upon breaking in at a point
where the row read using CSV is in variable row, with the string with
the char in row[''price''] I get the following strange results which I
cannot understand.
(rdb:1) row[''price'']
"\xA32.00"
(rdb:1)
2011 Apr 27
2
Can not create model instance via params on specific model but can on others....
Anyone have an idea on this? Got a weird situation where on a specific model
I can not create an instance using params, yet it works fine on other
models. The model which does not work is a stock model, there is no logic in
it. Ruby 1.8.7/Rails 3.0.5.
Does not work:
(rdb:1) PaymentTransaction.create(:purchase_id => 3)
#<PaymentTransaction id: 2, purchase_id: nil, action: nil, amount: nil,
2006 Jul 05
2
Rails debugging - a (slightly) better approach?
Hi all,
First up hello everybody, I''m new to this forum.
I am also new to Ruby and Rails. One thing that struck me as very
inconvenient for someone just learning the Rails ropes is that (apart
from Arachno and Komodo, which at the moment I cannot afford - and don''t
particularly like) there is no reasonable debugging support for Rails.
I know about breakpointer which - while
2017 Apr 02
0
rdb and rds files include abolute file paths / help understanding how lazy-load dbs are created
Hi,
I'm trying to understand why/how absolute file paths are stored in .rdb[1] and
.rds[2] files during package installation. As a consequence building the same r
package in different directories does not produce identical .rdb and .rds files.
The background is that I work on reproducible builds[3] of R packages. I think
this is important from an engineering point of view but also from a
2007 Apr 19
2
invalid geometry string in change_geometry
I get the following error at the browser:
ArgumentError in ImagesController#upload
invalid geometry string `110×''
... for the call to change_geometry with an explicit size (''110x'') as
the geometry string:
def make_thumb (the_img)
require ''RMagick''
size = "110x"
debugger if ENV[''RAILS_ENV''] ==
2008 Apr 05
0
url_for + :canvas => false weirdness for non resource controllers
I noticed something strange in my app today. It appears that the
extra canvas path appended in url_for is back but only for
controllers that are not resources. Here is an example I have in my
site:
campaigns is a resource
checkout is not
# With the canvas false flag
(rdb:1) @controller.url_for(:controller => ''campaigns'', :action =>
''show'', :id
2010 Jun 21
1
Problem with package installation
Dear ComRades,
I am having the "wrong MD5 checksums" error with every package I try to install.
It happened with R 2.11.0, then I updated to R 2.11.1, same thing.
sessionInfo()
R version 2.11.1 (2010-05-31)
i386-pc-mingw32
locale:
[1] LC_COLLATE=Spanish_Spain.1252 LC_CTYPE=Spanish_Spain.1252 LC_MONETARY=Spanish_Spain.1252
[4] LC_NUMERIC=C
2000 May 18
0
Failed copying and writing
Samba 2.0.7, NT WS 4.0 sp6, Slackware 7.0 (glibc 2.1.2), linux kernel
2.2.15 with crypto patch patch-int-2.2.14.1.
Samba configured/compiled with the following switches:
--with-smbmount --with-syslog
Most of the time writing to, or copying from samba shares, hangs, then
fails.
Trying to copy scrt303.exe from HOMES share to NT box, smbstatus reports:
Samba version 2.0.7
Service uid
2000 May 22
0
read_socket_data: recv failure for 4
Samba gives read_socket_data: recv failure for 4 when trying to write or
read with NT4 WS, why?
Samba 2.0.7, NT WS 4.0 sp6, Slackware 7.0 (glibc 2.1.2), linux kernel
2.2.15 with crypto patch patch-int-2.2.14.1.
Samba configured/compiled with the following switches:
--with-smbmount --with-syslog
Most of the time writing to, or copying from samba shares, hangs, then
fails.
Trying to copy
2011 Jul 03
7
Age of Conan, Wine 1.3.23, Mac OS 10.6.7 ?
Age of Conan went free-to-play (sort of) recently, and I thought I'd give it a look. The AppDB entry and a search of bugs seems to indicate that it should mostly work except for some texture problems, but I can't seem to get past the installation.
Configuration:
* Mac OS X 10.6.7
* Wine 1.3.23
* Age of Conan web installer
Process:
* Created fresh WINEPREFIX by: "wine notepad"
2007 May 31
9
Switching to mongrel
I made an attempt to switch to mongrel today and I''m running into a strange
error message I can''t seem to track down:
debug: puppetmaster: Setting servertype to ''mongrel''
Server is not a class
Tracing through with the debugger shows:
[snip]
/foo/lib/gems/puppet-0.22.4/bin/puppetmasterd:248: case
Puppet[:servertype]
(rdb:1) n
2006 Mar 16
1
Problem compiling R-Patched
I downloaded R-Patched today (to see if another problem I want to
ask about is still present or if its just me - as per the posting
guide). I ran "tools/rsync-recommended" successfully. I then ran
"configure --enable-R-shlib" successfully. Then make stops with the
following error.
gcc -shared -L/usr/local/lib -o tools.so text.o init.o Rmd5.o md5.o
-L../../../../lib -lR
2012 Mar 05
0
Rails 3 - How can you get access to current_user in the IRB console?
I''m doing some design/debugging in IRB and need to login a user and then be
able to gain access to current_user in my efforts (I''m using Devise for
authentication.)
I found a sequence from SO that allows me to successfully login via IRB and
access a page response:
>> ApplicationController.allow_forgery_protection = false
>> app.post(''/sign_in'',
2007 Oct 18
1
Offtopic: help with an iPod
A friend bring and Ipod, initially it didn't start because of charge, so
I connected to my PC to give some charge, after that my linux didn't
mount it, and when I start the iPod it shows me a folder with a sign,
and that's all, nothing else matters. when I connected the iPod to the
PC it start to charge and suddenly stops and shows the folder I have
talked before
I run the command