Displaying 20 results from an estimated 700 matches similar to: "undefined method `redirect_back_or_default' w/ Salted Login Generator tests"
2007 Jun 29
0
acts_as_authenticated, reset_session, and redirect_back_or_default
Just a question and an FYI
I just installed rails and acts_as_authenticated and was setting up a
site. Everything works fine except that in the AccountController that
I generated the calls to the routine redirect_back_or_default don''t
work because the call just before it to reset_session clears the
session[:return_to] that the method uses to set where it will
redirect.
I ended up adding
2005 Dec 31
0
Salted Login Generated code throwing lots of errors
Hi,
I''m having a lot of problems while integrating the salted login
generator. All of the errors are of the form:
"The error occured while evaluating nil.[]"
Most seem to be down to evaluating a nested hash, where the first hash
is a nil object. For example, @params[''user''][''login''] where
@params[''user''] returns the nil
2006 Jul 04
1
LoginGenerator Problem
I am trying to make a barebones login system based on this example
(which in turn is just standard RoR login) but when I enter a user name
and password, it says the login is unsuccessful every time. I am not
sure where I am going wrong. Here is all relevent information
CREATE TABLE `users` (
`id` int(6) unsigned NOT NULL auto_increment,
`login` varchar(20) NOT NULL default
2006 Jan 27
1
Multiple Database write question
I am working on reconfiguring an app that we are about to release to
work tighter with another app that we already have. Both of these
apps are going to share a single users database that stores the
general information about the user such as login, password, name,
email and so forth. They also have app specific stuff that is
attributed to the user that is stored in the app''s own
2008 Aug 19
6
redirect with application add
There are groups within our app that people can be invited too. If a user
recieves an invite to a group and hasn''t yet added the application the
filter chain ends up redirecting them to the main canvas page instead of the
the group page directly. Is there a way to handle this if the user hasn''t
installed the app, I tried redirect_back_or_default in one of my controllers
but it
2008 Jan 30
2
Where can I get "authenticate_with_http_basic"?
Hi,
I just installed Rails 2.0.2
[root@mymachine easyx]# ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
[root@mymachine easyrx]# gem install rails --include-dependencies
Need to update 16 gems from http://gems.rubyforge.org
................
complete
Successfully installed rails-2.0.2
[root@remandev easyrx]#
But I''m getting this error in my restful_authentication
2007 Aug 27
2
send_file : downloaded file cannot be open after upload OK
I easily implemented the upload , using the ''attachment_fu'' plugin...
I can see and open the uploaded files (a pdf file 60k and a jpeg images
28k)
now I try to implement the download action in my document_controller, I
wrote :
def download
@document = Document.find(params[:id])
send_file(@document.full_filename,
:filename =>
2009 Feb 13
1
Help with return_back
I have to log in my app, after the login I want to return back to the
page I was visiting just before the redirect to the login. Now, I have
this in my Sessions controller:
redirect_back_or_default(''/'')
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2011 Jun 29
6
RSpec with Rails 3.1rc4: spec test won't recognize <%= %> (should be simple)
In my user_sessions_controller:
class UserSessionsController < ApplicationController
before_filter :require_no_user, :only => [:create, :new]
before_filter :require_user, :only => :destroy
def new
@user_session = UserSession.new
@message = "Hello."
end
def create
@user_session = UserSession.new(params[:user_session])
if @user_session.save
2009 Jun 05
6
rails 2.3.2
Hi all,
I am using rails v.2.3.2 and if I put following line to my
ApplicationController:
include LoginSystem
and I moved my login_system.rb to lib folder:
module LoginSystem
protected
def is_logged_in?
@logged_in_user = User.find(session[:user]) if session[:user]
end
def logged_in_user
return @logged_in_user if is_logged_in?
end
def logged_in_user=(user)
if
2006 Jun 06
1
Redirect\Cookie bug with MSIE 5.5sp2
Hello all,
There seems to be a bug in internet explorer 5 where a redirect
causes the session to be lost.
A controller says....
def login
case @request.method
when :post
if @session[:user] = User.authenticate(@params
[:user_login], @params[:user_password])
return redirect_to(:action=>''send_confirmation'') unless
2006 May 25
1
AppMailer and McCray''s theme generator
Hi,
I am using Matt McCray''s theme generator.
http://rubyforge.org/projects/theme-generator/
Everything works fine, but rendering an action in a controller using
the AppMailer raises this:
undefined method `current_theme'' for #<AppMailer:0x39df950>
Is there someone who could help me ?
Thanks !
Mickael.
Traces:
2012 Oct 08
7
puppet 3.0 and passenger
I need a pointer in the right direction...
Is there a document for migrating puppet/passenger to 3.0?
--
Peter L. Berghold Salty.Cowdawg@gmail.com
http://blog.berghold.net
“"Don''t wait until everything is just right. It will never be perfect.
There will always be challenges, obstacles and less than perfect
conditions. So what. Get started now. With each
2005 Sep 02
7
Form to update two tables
Hello there,
this is probably a very simple problem but I''m stuck.
I''m following the Login generator tutorial from rubyonrails. It''s all
worked fine so far. But I want to add a bit more functionality so that
when a user signs up in addition to chosing a login name and password
they type in a company name which is added to a seperate table called
COMPANIES. The id
2012 Oct 09
3
Seeing an error that is totally confusing the heck out of me
Got the following:
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not autoload package: Could not autoload
/usr/local/lib/site_ruby/1.8/puppet/provider/package/windows.rb: no such
file to load -- windows/error at
/etc/puppet/modules/php/manifests/init.pp:28 on node
This after I reverted back to puppet v2.7.11 on my master. Not running
windows anywhere... why am I
2006 Mar 14
2
no such file to load -- login_system
I''m hoping someone can help me out here. My application works fine
locally using webrick. One I upload to my shared server space I get an
application error saying rails has failed to start.
The log file production.log reads as follows:
MissingSourceFile (no such file to load -- login_system):
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__''
2007 Nov 17
18
Syntax Problem
I admit I am stuck. I am converting a legacy php site to ROR. The old
site uses MD5, a security flaw waiting to happen. I upgraded to AAA
and am adding code in the session_controller.rb file to see if
crypted_password is blank. If it is, crypt and check the password
against the old md5 version and write it in the new crypted_password
field.
Here is my code add on before the logged_in?:
def
2006 Mar 09
3
removing something from the session
Hi,
Kind of a dumb question but when there is something in the session how do
you remove it?
@session.delete(:params) doesn''t work unfortunately.
--
Frank Kim
http://betweengo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060309/de00e277/attachment.html
2006 Jan 03
18
Trying to do a simple thing ...
Hi !
I was talking to a seasider and he asked me if it was easy to do the following
thing using rails :
1) ask a number to the user
2) ask a second number
3) give the addition of the two number and a link to be able to replay
All these things have to be done in one controller and one action, there is no
need for verification and other stuff.
I tried but I''ve got some problems
2012 Feb 20
3
puppet-forge.. do I remember correctly?
Do I remember correctly that puppet-forge is no longer accepting uploads?
--
Peter L. Berghold
Owner, Shark River Technical Solutions LLC
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to