Displaying 20 results from an estimated 800 matches similar to: "acts_as_authenticated trouble"
2006 Jan 12
0
generating user table with Acts_as_authenticated
Sorry for the newbie question. I''d like to check out the
Acts_as_authenticated plugin but have no idea how to conveniently set up the
User Table in Mysql.
I use a mac OSX, but how do I change the following code into a DB schema?
def self.up
create_table "add_authenticated_tables", :force => true do |t|
t.column "login", :string, :limit =>
2007 Jul 18
3
Help. Acts_as_Authenticated plugin stops working for me?
Hi,
I successfully installed AAA couple days before, and i managed to
register a uer with it, with no user activation.
but for some strange reason, it stops working for the signup method,
with i go to the signup page, press submit, it shows an error page,
what''s wrong? here''s the error page.
undefined method `activation_code'' for #<User:0x3b6dbd
2007 Feb 10
5
acts_as_authenticated strangeness
hi
the strangest thing is happening. on my local machine
acts_as_authenticated works fine, but whe on the server [dreamhost] it
refuses to log in. no error messages. nothing. just reloads the login
page again.
here`s my action:
def login
return unless request.post?
flash[:notice] = "Incorrent login"
self.current_user = User.authenticate(params[:login],
params[:password])
2007 Feb 11
1
Specing Rails Views
Hello -
I''m currently trying to write some specs for my rails views. My
views depend upon
the restful authentication plugin method logged_in? Like so,
<% if logged_in? %>
<ul id="product-admin-nav">
<dd><%= link_to "create a new product", new_product_url %></dd>
</ul>
<% end %>
However, when I have the following
2006 Jan 13
2
Change Password with acts_as_authenticated
I want to have a form to change a users password. I can''t figure out
what the method in the controller should look like. I tried @user.save
and @user.update_attributes, but can''t get it to work.
My Form:
##############################
<%= start_form_tag :action => "update_password", :id => @user.id %>
<%= password_field ("user",
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 #
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
2006 Jan 31
13
Acts_as_authenticated
Hello
I have been trying a number of security/login generators recently. My
favourite so far is the Acts_as_authenticated. I like the fact that it
is only billed as a starting point and doesn''t try to do everything.
I would like to add security roles to it, so that some of my controller
actions can only be used by an admin role. Has anybody implemented this
using
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
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
2008 Jun 17
3
Help with error - uninitialized constant AuthenticatedSystem::Base64
I am using restful_Authentication plugin combined with the built-in
http_basic authentication Rails 2.0.2
The following code in my controller seemed to work fine,
1. before_filter :authenticate
2.
3. def authenticate
4. case request.format
5. when Mime::XML, Mime::ATOM
6. if user = authenticate_with_http_basic { |name,
pass| User.authenticate(name,
2006 May 22
2
good practice or waste of time?
I have what I hope is a simple question regarding a security practice
I''ve been using in my first Rails app. I want to know if it''s
worthwhile or if the extra typing isn''t worth it.
I have 3 models that are related to each other.
class User < AR:Base
has_one :library
end
class Library < AR:Base
belongs_to :user
has_many :items
end
class Item < AR:Base
2006 Apr 28
2
["acts_as_authenticated"] << "Role-Based Authorization Rails Recipe"
hi guys,
has anyone here implemented role based authorization from rails recipes
into acts_as_authenticated ? how''s it going?
Case:
there is ONE admin. And MANY users. Admin is the only one who can
create, edit, delete user, etc.. users also need to login, but go to
different pages. do you guys think it''s good to try rick''s
acts_as_authenticated + chad''s
2007 Sep 11
2
acts_as_authenticated redirect on ajax requests
Hi there,
I''d like to know if there is a solution to the scenario when using
acts_as_authenticated and ajax:
I have an action in my controller which is protected by login via
acts_as_authenticated. Now, this action can be called both by human
interaction, as well as ajax requests. (It is an add to cart link). It
works great as long as I am in an authenticated session.
Now, I want to
2006 Dec 11
2
Does mongrel look at the Rails page cache?
Hi all. I''m trying to skip the Rails page cache if the user is logged
in:
---
# Rewrite index to check for static
RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteCond %{HTTP_COOKIE} !^.*logged_in=yes.*$
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond
2007 May 06
5
Comparing polymorphic property to same object fails
I''ve got a polymorphic association on one table. I assign to it in the
controller.
This is handling invitations of users to tasks in a task management
application. If the user issuing the invitation is the user being
invited (ie the user assigned themselves to a task), I want to
activate the invitation immediately in the model.
The trouble is that this:
if self.assignable ==
2007 Jan 02
0
acts_as_authenticated plugin rspecs
Hello,
Just thought it could be interesting for some of you. I''ve written
rspecs for acts_as_authenticated plugin.
http://rashkovskii.com/articles/2007/01/01/rspec-on-rails-
acts_as_authenticated
I''m not sure they are 100% ok, but they seem to be :)
Thank you,
Yurii.
2006 Mar 08
8
Acts_as_authenticated plugin?
Hi,
I''ve just downloaded the acts_as_authenticated plugin but I can''t find much
in the way of documentation.
First is there anywhere that someone could point me to to get a handle on
this.
Second.. Does the plugin still require the use of generators to use?
Thanx in advance
Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 07
1
''Remember me'' in acts_as_authenticated troubles
Hi there
I''m having trouble getting the ''remember me'' functionality going in
acts_as_authenticated.
The issue seems to be that the login_from_cookie method is using only
the first 60 characters of the remember_token string in the database,
whereas the string in the db is 75 characters long.
I can see in my dev log that login_from_cookie is trying to find the
user but
2006 May 16
0
acts_as_authenticated vs. login_engine
which to use? we''re not doing anyting too fancy, though that may change -- we
might need rbac in the future. i''m using loging_engine right now, pretty
happily, but i came across a blog entry that claims acts_as_authenticated is
the latest and greatest. if anyone has some pros and cons to share, i''d
appreciate it -- would like to make the correct choice before we launch