similar to: generating user table with Acts_as_authenticated

Displaying 20 results from an estimated 2000 matches similar to: "generating user table with Acts_as_authenticated"

2006 Apr 12
3
acts_as_authenticated trouble
First off, I''d like to address that I''m n00bs. I''ve read the README and blogs associated with this plugin, and there really isn''t too much documentation. I have the newest version of rails,ruby, and acts_as_authenticated installed. #The setup I set up the acts_as_authenticated in the following manner. *created a table called "accounts" in the
2008 Jun 29
3
Working around/with Restful Authentication
I''m using Restful Authentication, and the code to create a user is pretty straight forward - there is a before_save action and a before_create action: before_save :encrypt_password before_create :make_activation_code But for some reason when I try to create a user programmatically in the controller like this: User.new(:email =>
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
2008 Feb 07
1
ActiveRecord 'find_or_initialize_by' dynamic finder bug? Ignoring conditions.
Hello all, I just ran into something that I think is a bug, and I would like to confirm with the core team whether this is expected/desired behavior or if this is a bug that I should file and develop failing tests for (I doubt I have the active record method_missing fu to actually patch it). Test Scenario: I would like to find or initialize a new user and base the find on the users email
2006 Apr 26
1
Possible acts_as_authenticated bug (or rails)
The code that comes with the plugin uses a method that looks like this: def password_required? crypted_password.blank? or not password.blank? end with validations that look like this: validates_presence_of :password, :if => :password_required? validates_presence_of :password_confirmation, :if => :password_required? validates_length_of
2010 Oct 11
5
Object lost in memory/trashed?
Hi, I''ve got a problem on which I''ve spent many hours, and I can''t get a clue on what is happening... I hope someone here will be able to help me. Here is the situation : my Rails app uses acts_as_commentable and acts_as_bookmarkable on a Diagram model. Everything''s working OK individually: I can create a comment on a Diagram, bookmark it, and so on. Now,
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 ==
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
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 Apr 22
7
Proper Database Design For A Newbie
Hi all, I am starting out learning Ruby on Rails (coming from a PHP background) and I have a question about proper database design. Let me give you a quick example of what I want to do: Database: CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `login` varchar(40) default NULL, `email` varchar(100) default NULL, `crypted_password` varchar(40) default NULL, `salt`
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
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
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
2006 Apr 21
1
Data access problem in object when using acts_as_authenticated
Hi all, I''m running into this frustrating issue with the acts_as_authenticated plugin and one of the additional fields I added to the users table. I have added a column ''account_type'' to the users table (among several others) which denotes the type of account it is. This stores an integer value that is set by the system during account creation. The value is getting set
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:
2012 Jun 11
0
Using AuthLogic
Hello, I''m trying to use the authlogic to make my login in my app. The problem is when I change my user model. user model: class User < ActiveRecord::Base attr_accessible :crypted_password, :email, :password_salt, :persistence_token, :username acts_as_authentic end create_users migration class CreateUsers < ActiveRecord::Migration def change create_table :users do |t|
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])
2012 Mar 22
1
Rspec not loading fixtures
I am taking over a code base and am trying to run the tests. I am somewhat new to RSpec so this might be a trivial problem. Basically I can tell that the fixtures are not getting loaded. All 100 tests fail with a similar error. But I don''t know why. Below is the code, with my narrative with *** before it... Can you see anything or give me a clue where to look. So far I am coming up