Displaying 20 results from an estimated 30000 matches similar to: "authlogic and controlling the resources users can access"
2007 Aug 29
2
assign local variable instead of instance variable.
Hello,
I have a view that generates a list of adverts with <%=
render :partial => ''advert'', :collection => @adverts %>
I have the render call described with
@controller.template.should_receive(:render).with(:partial =>
''advert'', :collection => @adverts)
Bu when i was about to describe my partial i got stuck.
My partial _advert.rhtml:
2010 May 21
0
can authlogic be used for multiple models?
I want to use authlogic plugin for multiple models in my project. In
admin module of the project i am using administrator and
administrator_sessions and also on user module i am using user and
user_sessions models.
So i have a doubt ,whether can we use this authlogic plugin for
multiple models or not?
--
You received this message because you are subscribed to the Google Groups "Ruby on
2011 Jun 16
2
Authlogic: Trying to login in my Cucumber test - Authlogic::Session::Activation::NotActivatedError
In a Cucumber step definition, I''m trying to login, but I keep getting
this error:
You must activate the Authlogic::Session::Base.controller with a
controller object before creating objects
(Authlogic::Session::Activation::NotActivatedError)
My code:
Given /^I am the logged in (.+) "(.+)"$/ do |role, login|
user = User.create!(
:login => login,
:password =>
2012 May 07
0
Authlogic Single Access Token-Web Service Iphone app
Hi all
I am working on Rails 2 application where i need to provide
web services for iphone app.
I am using authlogic gem for authentication.For web services i am
using single access token(user_credentials="XXXXXXXXX").
Every thing is working fine except session[:something] for API
call.This session variable is not working for API call.This session
variable is not
2010 Dec 02
7
Rails 3 + Authlogic not working all of a sudden
Hey People,
I''ve been working on Rails 3.0.0 and Authlogic for quite a while now but
all of a sudden I can''t login into my application anymore.
After some research I found out that no sessions are stored into the db
anymore so I started the console and saw this:
ruby-1.9.2-p0 > u = UserSession.new({:username => ''Test'', :password =>
2010 Jan 18
1
binarylogic-searchlogic ~> 2.0 binarylogic-authlogic mbleigh-subdomain_fu
I am having problem starting my app, here''s the error message, i am
running Ubuntu 9.04 with Apache with Passenger:
The application has exited during startup (i.e. during the evaluation
of config/environment.rb). The error message can be found below. To
solve this problem, please follow any instructions in the error
message.
Error message:
Missing these required gems:
2014 Apr 14
0
Foundation & Authlogic
Seems I can get either Foundation or Authlogic to work but not both -
After bundle install when I do a rails g foundation:install I get the
following:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-4.1.0/lib/acti
ve_record/dynamic_matchers.rb:26:in `method_missing': undefined local
variable o
r method `inheritable_attributes' for ActiveRecord::Base:Class
(NameError)
2010 Aug 30
1
in a rails3 - rspec then require 'authlogic/test_case' and now I broke stuff?
I''m a newb here and probably shouldn''t be using Rails3 yet to start with,
but for some reason I was feeling adventurous.
I''m also learning to use rspec along the way and things ''were'' working out
with my ''rake spec'' until I tried to follow some examples for test
Authlogic with rspec.
I ''think'' what started the
2012 Feb 21
2
API Authentication-Authlogic
Hi all
I am using Authlogic gem for authentication.I want an API
authentication for external API(XML) call.How to implement this in
authlogic .Thanks in advance...
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To
2010 Oct 30
3
Authlogic not active
Trying to add authlogic in a simple project but get the error;
Showing app/views/layouts/application.html.erb where line #33 raised:
undefined method `underscore'' for nil:NilClass
Extracted source (around line #33):
30: <div id="mainleft">
31: <ul class="menu">
32: <li><%= nav_link "Home", "site", "index"
2010 Jul 19
6
Setting a root_url
I know how to setup a roo_url using map.root in "routes.rb".
The issue I''m currently having is as follows:
I walking through this Rails cast regarding Authlogic:
http://railscasts.com/episodes/160-authlogic
I decided that I make my map.root the "login" page, that is, the
index.html.erb of the user_sessions_controller.
So, what I did is typed the following in the
2009 Nov 17
2
rake db:seed with authlogic fails to populate users
I have a db/seeds.rb file that I want to load, but while the rest of the
seeds file works fine, nothing is ever populated in :users. I just fails
silently, so I can''t figure out what exactly is causing the problem.
I have authlogic installed into the user.rb model with
acts_as_authentic. I''m sure that''s part of the problem, but I''m not sure
that manually
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of
searching ive managed to get a little bit of Authlogic working. I''m able
to register a user, login & logout.
Now, I would like to add more features, get more of authlogic working.
I''m using Railscast EP 160 as my reference.
Portions of the code found on the tutorial throw errors: Eg:
<!--
2009 Dec 23
0
Migration from the "Restful Authentication" to "Authlogic"
Hi,
I am using Authlogic for authentication.
Previously our application having a "Restful Authentication". We have
users who are created by using the "Restful Authentication".
My problem is these users will not able to login with Authlogic as the
password encryption methods are different for both and I am getting
"Password not valid" error.
So I searched for that and
2010 Jul 15
2
Authlogic admin user functionality
I am using authlogic as a authentication engine in my rails app.
I have two types of users 1) Users who are registered and has access
to there own profile.
2) Admin user who has access to everybody''s profile
In the user table i have a :is_admin field boolean field which defines
the admin user.
like the current_user method, Is there a way authlogic provides which
can tell me if the
2010 Feb 05
1
Encrypting the password using Authlogic
Hi,
I am using "Authlogic" for user authentication.
I have a excel file into which I have user deatils. I have to migrate
those details to the "users" table. For that I have written a script
which goes through the excel file and store the data into "users" table.
My code is like this:-
user=User.new
user.password="password"
2009 Dec 03
2
AuthLogic Question - one time password (persistence_token) - what config is required to use this???
Hi,
I''m stuck trying to work this one out - have been reviewing the
AuthLogic code base but having a hard time making sense of it (
http://github.com/binarylogic/authlogic ).
Question 1 - Can anyone confirm what config exactly is required to
make the one time password (persistence_token) work in AuthLogic? See
below for the bulk...
Question 2 - If not the full answer to the above,
2010 Nov 14
5
Authlogic and rails 3 : NameError in User sessionsController#new
Hi everybody,
I''ve installed Authlogic on Rails 3 following the Railscast (http://
railscasts.com/episodes/160-authlogic), and the resources I was able
to find on the web, but I''m facing a problem.
Once I''ve generated the user_sessions controller and mapped the login
and logout routes, I get an error if I try to load the login page :
uninitialized constant
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 =>
2011 Feb 21
1
authlogic problem
I can''t get authlogic to work.
(https://github.com/binarylogic/authlogic)
i''ve installed it,
i''ve put the following in environment.rb:
config.gem "authlogic"
''gem list'' gives:
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.3, 2.0.2)
actionpack (3.0.3, 2.0.2)
activemodel (3.0.3)
activerecord (3.0.3, 2.0.2)
activeresource (3.0.3,