Displaying 20 results from an estimated 2000 matches similar to: "Restful Authentication Uninitialized Constant in Production..."
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
2008 Mar 21
3
Error in new project boot.rb
When I create a new 2.0 project (rails project_name)
Aptana shows what appears to me to be a valid error in boot.rb
The line:
if version = self.class.gem_version
is an assignment
Should this not read:
if version == self.class.gem_version
def load_rails_gem
if version = self.class.gem_version
gem ''rails'', version
else
gem
2007 May 30
6
authentication mocks
hi
I''m using restful_authentication
and have controller specs working using users fixtures (and login_as)
however i''ve been trying for hours without success to do it without
fixtures, using mocks and stubs instead.
anyone here done this? got code?
:)
thanks
2007 Aug 04
2
Modifying the restful_authentication plugin / Classes creating instances of themselves.
Hi,
I''m trying to modify the restful_authentication plugin so that it
first authenticates against LDAP (Active Directory), if successful, it
tries to find a matching user with the same username in the database,
through a model ''user''. If it finds a user, it updates a last_login
attribute; if it doesn''t find one, it creates one. The "remember me"
2007 Sep 03
13
Some basic questions
1. I have a text area in which I type on multiple lines..but when I
display it, it prints whole text in one line..how can I solve that?
Datatype is TEXT
2. I can see a list of all posts at ..post/ with index method but I want
to see a particular post with ..post/[id] .. how can I do that?
3. I want my application to be completely secured and whatever page
unlogged in user tries to open, it
2006 Aug 10
6
Login Restfully
In DHH''s keynote, he alluded to doing logins with REST. Has anyone
implemented this, and if so, would you mind elaborating on how you did
it please?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
2008 Apr 10
7
Facebooker and existing website?
Hi
I am trying to use facebooker with an existing website that already
has a model named ''User''.
I therefore created a model called BkUser for use with facebooker.
Also I have different controllers for all facebook requests.
I am using acts_as_authenticated for handling login etc for my website
and everytime a user is logged into my facebook app and tries to also
browse the
2009 Dec 25
18
rescue_from ActionController::RoutingError II
OK ... so I''m not supposed to use it but ...
Why doesn''t rescue_from ActionController::RoutingError work witht he
code from
http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
# See ActionController::RequestForgeryProtection for details
2008 Sep 18
1
user_observer (restful_authentication) causes failure in loading rails
I have restful_authentication in use on an app and it has been working
fine, but I recently was changing the account creation flow and needed
to enable the UserObserver. I did so by including it in the
environment.rb (config.active_record.observers = :user_observer) and
Rails wouldn''t start.
I got the following error;
source/communitysites/vendor/rails/activerecord/lib/active_record/
2009 Mar 18
6
How to use a freshly updated Rails gem?
Hi there,
How do I make my app pick up the new Rails gem that I have just updated?
I have:
1. just updated rails from version 2.1.0 to version 2.3.2 (console:
"rails -v" -> "Rails 2.3.2")
2. in environment.rb set: "RAILS_GEM_VERSION = ''2.3.2'' unless defined?
RAILS_GEM_VERSION"
3. restarted the server
Result:
- The Console in Eclipse tells me
2010 May 05
1
[PATCH server] Upgrade rails gem version for F13
From: root <root at ovirt.admin.virt.par.lng>
Signed-off-by: Arthur Cl?ment <aclement at linagora.com>
---
src/config/environment.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/config/environment.rb b/src/config/environment.rb
index 9c1a9fa..ca6ed03 100644
--- a/src/config/environment.rb
+++ b/src/config/environment.rb
@@ -20,7 +20,7 @@
# Be sure
2006 Aug 15
3
Versions Compatibility and RAILS_GEM_VERSION
Is there any problem with versions compatibility?
A project I started with 1.1.2 cannot run with 1.1.4.
Dreamhost recently updated their rails from 1.1.2 to 1.1.5 and 1.1.6.
Needless to say I got "Application Error". However when I changed
RAILS_GEM_VERSION to either 1.1.5 or 1.1.6, it works. (Haven''t made a
thorough checking though.)
Here it seems there is no
2008 Sep 08
2
Restful Authentication and State Machine state transfer question
I''m adding some code to a project using restful_authentication and
acts_as_statemachine
In the create method for a user there is the following code generated
by the restful_authentication template
@user.regster! if user.valid?
And this will save and the user record if it is valid. I understand
that the statemachine will then change the state from passive to
pending. It will guard
2010 Mar 31
1
[PATCH] Upgrading the server to work with Rails 2.3.4.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
src/app/controllers/application_controller.rb | 2 +-
src/config/environment.rb | 2 +-
src/config/initializers/new_rails_defaults.rb | 6 +++++-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb
2010 Oct 08
7
90% of documentation outdated?
I have been trying for a few days to set up a basic user registration/
login system with rails 3 and nearly every single piece of
documentation is outdated. Restful_authentication has several git
branches, none of which appear to result in a working installation.
All of them leave me with "could not find generator authenticated".
With Devise: "could not find generator devise"
2010 Oct 24
1
Re: [Rails-core] Re: (Unable to start rails application) ruby scipt/server error
Rails application which i create manually like
rails new blog
and the content of the file "blog/config/boot.rb" are
require ''rubygems''
# Set up gems listed in the Gemfile.
gemfile = File.expand_path(''../../Gemfile'', __FILE__)
begin
ENV[''BUNDLE_GEMFILE''] = gemfile
require
2006 Aug 08
8
RESTful Rails Plugin
I am following the instructions on how to use RESTful Rails plugin found at
http://www.xml.com/pub/a/2006/04/19/rest-on-rails.html?page=3.
When I run the rake test:functionals
I get the following error message:
rake aborted!
undefined method `first'' for :book:Symbol
(See full trace by running task with --trace)
How can I fix this problem? I am using Rails 1.1.4 version. TIA
2008 Nov 21
15
Switching the version of Rails that an app uses
Hi All,
I’ve got a few versions or Rails installed and I''d like to run an App
I’m developing with various versions of Rails. I heard of two ways to
switch the version of Rails that an app uses:
1. Use GitHub as described by http://kylecordes.com/2008/04/30/git-windows-go/
. But that requires using Bash in a Command Window and more steps
than I want to go through.
2. Alter
2007 Jul 06
3
stubbing helper methods for View specs
Hi there
I have several view specs, that include the following snippet in
their "before" block to stub the methods by acts_as_authenticated
before :each do
@u = mock_model(User)
@u.should_receive(:name).and_return("Hans Muster")
template.should_receive(:logged_in?).and_return(true)
template.should_receive(:current_user).and_return(@u)
end
this
2007 Nov 25
5
Can't find rails after re-installing/upgrading Kubuntu
Hello Railers (?),
I have just re-installed my machine with the lattest Kubuntu, which brings with Rails 1.2.4 instead of 1.2.3. Now my Rail project doesn''t start anymore. At first I''ve got this message:
Cannot find gem for Rails ~>1.2.3.0:
Install the missing gem with ''gem install -v=1.2.3 rails'', or
change environment.rb to define