Displaying 20 results from an estimated 35 matches for "authenticatedsystem".
2009 Mar 18
0
uninitialized constant AuthenticatedSystem
...w app, and thought I would list it here for archival purposes.
Firstly, there are messages about files not existing. My fix was to
manually create lib and test/fixtures directories. (Remember, this is
a brand new application.)
Secondly, There were "uninitialized constant" messages re.
AuthenticatedSystem. My fix was to add "require
''authenticated_system''" to the file where AuthenticatedSystem was
included.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group...
2008 Jul 16
0
A copy of AuthenticatedSystem has been removed from the module tree but is still active!
Hmm, this is a weird one. I just started up script/server today to get
this error when browsing around.
"A copy of AuthenticatedSystem has been removed from the module tree
but is still active!"
Any ideas? I''ve googled, but the results that show all seem to refer
to Rails 1.*
I don''t think I''ve changed anything that would affect this.
I''m using Rails 2.0.2 and acts_as_authenticated.
Che...
2007 Jul 30
6
Object.stubs doesn''t seem to work.
Hi
I''m using Mocha 0.5.3 and I want to stub out a call to Time.now, just
like the example in the post
http://blog.floehopper.org/articles/2007/06/08/mocha-0-5-released
However, trying it in irb gets me the following error:
>> require ''mocha''
=> true
>> Time.stubs(:now).returns(Time.parse(''Thu Feb 01 00:00:00 UTC 2007''))
NoMethodError:
2007 Oct 04
5
Specs and Libs
How would I go about writing specs for a lib, particularly one with
all protected and private methods. I''m trying to spec the
AuthenticatedSystem library from the rails restful_authentication
plugin:
http://pastie.caboo.se/103625
Also, when you''re mocking objects, a side-effect is helping you
define the api of the object. Is there a way to get all the
behaviors that have been mocked for a class and its objects? Is
there a...
2008 Jun 17
3
Help with error - uninitialized constant AuthenticatedSystem::Base64
...9;
13. return true
14. end
15. end
Then I started seeing this error whenever I accessed any action in my
controller
and also while accessing the login, logout actions as well.
I can''t seem to get rid of it.
NameError in MyController#index
uninitialized constant AuthenticatedSystem::Base64
RAILS_ROOT: C:/railsapps/Myapp
Application Trace | Framework Trace | Full Trace
vendor/rails/activesupport/lib/active_support/dependencies.rb:263:in
`load_missing_constant''
vendor/rails/activesupport/lib/active_support/dependencies.rb:453:in
`const_missing''
lib/authentic...
2006 Jan 16
16
acts_as_authenticated current_user in a model?
What do I need to do to be able to use an acts_as_authenticated
current_user in a model?
Is there some sort of include or require I can do some where that would
allow this?
**********************************************************
Here is what I am trying to do:
**********************************************************
class Setting < ActiveRecord::Base
before_create :created_by_user #
2007 Jun 16
2
Specs don''t find modules when using the secure_actions or ssl_requirement plugin
Hello,
I''m trying the secure_actions plugin (or ssl_requirements)
I''m installed the plugin, and added the include in application controller:
class ApplicationController < ActionController::Base
include ExceptionNotifiable
include AuthenticatedSystem
include SecureActions
...
but when I try to run the specs I got this error:
/home/edgar/sandboxes/sugarstats/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:477:in
`const_missing'': uninitialized constant
ApplicationController::SecureAction...
2008 Jun 15
2
RSpec story failing because of routing error on "/"
...git://github.com/dchelimsky/rspec-rails.git vendor/plugins/
rspec-rails
git clone git://github.com/technoweenie/restful-authentication.git
vendor/plugins/restful-authentication
./script/generate rspec
./script/generate authenticated user sessions
mate app/controllers (and added " include AuthenticatedSystem" to the
application controller)
rake db:migrate
rake db:test:prepare
ruby stories/rest_auth_stories.rb
Many thanks for your kind attention,
danny sofer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Siz...
2006 Apr 17
2
newbie before_filter question
I''ve successfully gotten acts_as_authenticated working. Currently the
before_filter line for my admin screen is like this:
class AdminController < ApplicationController
include AuthenticatedSystem
before_filter :login_required
Only issue I have now is that anyone logged in can access that screen.
I''d like to differentiate between a regular user and admin. I saw
something in the recipe''s book but it''s not quite what I''m looking for.
All I want...
2007 Feb 11
1
Specing Rails Views
...</dd>
</ul>
<% end %>
However, when I have the following in my specification:
render "products/show"
I get an error ''logged_in?'' isn''t defined for <#Class....>
My rails app gets ''logged_in?'' via ''include AuthenticatedSystem'' in
my application controller.
I understand that views are tested in isolation from their controller
counterpart in rpsec, so ''include AuthenticatedSystem''
isn''t called and thus ''logged_in?'' isn''t available for the test/spec.
I fou...
2007 Nov 02
1
uninitialized constant ActAsAuthenticated
...noweenie.stikipad.com/plugins/show/Acts+as+Authenticated,
but db:migrate fails:
$ rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
uninitialized constant ActAsAuthenticated
Tried to move include AuthenticatedSystem to ApplicationController,
didnĀ“t help.
Any suggestions?
Regards,
Martin Stabenfeldt
--~--~---------~--~----~------------~-------~--~----~
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 rubyonr...
2008 Mar 14
1
how do I get a older version of restful_authentication
...cation running, unfortunately, the new version of the
plugin does not support the older rails very well.
how can I get an older version of restful_authentication (pre rails
2.0.2)?
I''m getting this error:
undefined method `authenticate_with_http_basic'' when I put
"include AuthenticatedSystem" in the app controller.
--
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-/JYPx...
2008 Sep 30
0
undefined method `authenticate_with_http_basic' for #<SessionsController:0xb6c47c44>
...the authentication..
ruby script\generate authenticated user sessions
...output omitted...
I specified everything.. It worked fine upto 500 pages..
later,
class SessionsController < ApplicationController
# Be sure to include AuthenticationSystem in Application Controller
instead
# include AuthenticatedSystem
skip_before_filter :login_required
He told me to comment the authenticated system and use skip_before.. i done
it and the
" include AuthenticatedSystem " line added to the application.rb file...
now i created the new migration tasks and created the controller
when i need to access the...
2008 Jan 03
1
help - updated from 1.2.5 to 1.2.6 and getting undefined method 'session=' for ActionController::base
...r::RequestForgeryProtection for details
# Uncomment the :secret if you''re not using the cookie session store
protect_from_forgery # :secret => ''3ac52b38782bce94aa5b8b39873f2052''
# Be sure to include AuthenticationSystem in Application Controller
instead
include AuthenticatedSystem
# If you want "remember me" functionality, add this before_filter to
Application Controller
before_filter :login_from_cookie
end
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core...
2009 Jul 25
3
Rails Authorization and Security question
Working through the Users and Authentication of Learning Rails book
(great book, code needs to be proof-read in a few cases, though), I
came across this:
There''s still one leftover that may be worth addressing, depending on
your security needs. The authorization? method has secured the data,
and the view no longer shows the user options they can''t really use,
but if a
2007 Oct 15
0
Fwd: Content filtered message notification
...thod
le 03/10/2007 10:40, James Mead nous a dit:
On 27/09/2007, Christophe <anaema_ml at yahoo.fr> <anaema_ml at yahoo.fr> wrote:
Hi, I''m trying to stub the login_required() method of the
acts_as_authenticated plugin in an RoR integration test.
This method is defined in the AuthenticatedSystem module, in the
lib/authenticated_system.rb
What happen is that the stub have no effect and the real method is still
executed.
Here is the code. Any idea ?
Thank you
require "#{File.dirname(__FILE__)}/../test_helper"
class CheckStopsiteTest < ActionController::IntegrationTest
f...
2006 Apr 12
3
acts_as_authenticated trouble
...he acts_as_authenticated in the following manner.
*created a table called "accounts" in the database. (minus the
activation_code and activated_at fields)
*used the generator to "script/generate authenticated account account"
*followed the instructions in the README to include AuthenticatedSystem
in my application files.
#the problem
The controllers, views, and models all work fine. The user is directed
to ''/signup'' on loading, and upon signing up, everything inserts into
the database correctly, but when I log in, no session is retained.
In my account_controller file,...
2008 Mar 28
10
Inheriting from AdminController intstead from ApplicationController
...a controller named AdminController which resists under
app/admin/admin.rb instead of inhereting from ApplicationController,
so I could better separate between admin and public section. The
AdminController looks like this:
module Admin
class AdminController < ActionController::Base
include AuthenticatedSystem
helper :all
protect_from_forgery
layout ''admin/layouts/admin''
end
end
For testing the new namespace I created a GroupsController which looks
like this:
require ''admin/admin''
module Admin
class GroupsController < AdminController
def index...
2006 Dec 11
1
Index help on Polymorphic Associations
Hello,
I''m a newbie to aaf and rails and I hope anyone can help me with this.
I have the following Models:
class Project < ActiveRecord::Base
acts_as_authorizable
acts_as_audited :except => [:created_by, :updated_by ],
:user_class_name => ''AuthenticatedSystem'', :user_method =>
''current_user''
acts_as_ferret :fields => {:name => {:store => :yes},
:description => {:store => :yes},
:project_notes => {:store => :yes}}
has_many :notes, :as => :...
2010 Apr 02
6
App_Controller and partial issues with has_many through
...to User
Application_Controller is as follows:
class ApplicationController < ActionController::Base
before_filter :login_from_cookie
before_filter :find_user_interests
helper :all # include all helpers, all the time
session :session_key => ''_blah_session''
include AuthenticatedSystem
def find_user_interests
@user_interests = current_user ? current_user.interests : []
true
end
end
Application.html.erb has as follows:
<%= render :partial => "users/interests", :object => @user_interests %>
_interests.html.erb partial is as follows:
ul
<%...