search for: acts_as_authenticated

Displaying 20 results from an estimated 154 matches for "acts_as_authenticated".

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 attachmen...
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 role based...
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 display th...
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 database. (minus the activation_code and activated_at fields) *used the generator to "script/generate authenticated account account" *followed the ins...
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...
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.
2010 Dec 15
2
skip password validation in authlogic
i am using authlogic for user authentication and authlogic-connect for facebook and twitter signup.what i need is that i need to skip validation on the password field if user is signup via facebook or twitter.my environment is rails 3 and ruby 1.9.2. i have acts_as_authentic in my user model.however i can skip phone number validation like this validates :phone_number, :numericality =>
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 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 our app and get locked in to one or the other. here''s the blog post: http://glu.ttono.us/articles/2006/02/06/rails-best-practices-tip...
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,...
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 red...
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 using a truncated string t...
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...
2012 Oct 16
5
`method_missing_without_paginate': undefined method `class_attribute' for ActiveRecord::Base:Class
hi i am using radiant 0.8.2 , rails 2.3.4, ruby 1.8.7 and rubygems 1.4.2. and i can''t able to run my existing application. error occurred : run command for server "script/server -e production -p 3001" error: => Booting WEBrick => Rails 2.3.4 application starting on http://0.0.0.0:3001 config.gem: Unpacked gem rack-rewrite-1.2.1 in vendor/gems has no specification
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],...
2006 Jul 12
0
acts_as_authenticated and paypal
I''m working on a subscription form that has to be tied to paypal using the paypal ipn plugin at http://elctech.com/products_ruby_paypal.shtml. I''ve got my subscription (signup) form setup to include the creditcard information as well as the billing address etc. It''s a modified version of the signup form from the acts_as_auth plugin. I want the model to not save if
2006 Jun 12
0
keeping logged in via acts_as_authenticated
My site is working but every time I quit Firefox and go back I seem to have been logged out. Is there a setting somewhere that I can alter to keep the user logged in longer? -- Posted via http://www.ruby-forum.com/.
2006 May 22
0
acts_as_authenticated mailing for activation problem
Hi I''m relatively new to all this, so sorry if this is a daft question. I''ve got the acts_as_authenicated plugin working and have added the user activation extras - which is all fine but I can''t seem to get the activation mail sent. My mail setup in config/environment.rb works with other notifiers, so I was wondering if there''s anything I''m not
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
2006 Feb 09
1
acts_as_authenticated plugin
Hello, I have just installed the plugin. Can somebody tell me how create some users in the ''users'' table. Is there a doc explaining how to use the plugin for a newbie? Thanks Juanma -- Posted via http://www.ruby-forum.com/.