Displaying 20 results from an estimated 2000 matches similar to: "acts_as_authenticated vs. login_engine"
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
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 Sep 03
2
Fwd: Dealing with exec?
---------- Forwarded message ----------
From: Kevin Clark <kevin.clark at gmail.com>
Date: 01-Sep-2006 20:31
Subject: Dealing with exec?
To: James Mead <jamesmead44 at gmail.com>
Hey James,
Sorry to bug you. I was curious how you''d handle a call to exec in a
method you were testing. Kernel.stubs(:exec)... doesn''t seem to work
but I''m not sure where else an
2006 Mar 07
7
m:n or multiple 1:n?
I have a Newbee question:
i have three tables and want to connect them. so is it stupid to make a
triple m:n (rails style xs_ys_zs) or do i have to make a new table
(newtable) where i got multiple 1:n?
the habtm (has and belongs to many) do only work proper to join two
tables, or i am wrong?
-jens
--
Posted via http://www.ruby-forum.com/.
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 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
2006 Aug 01
2
HOWTO? security based on data values
Hi!
I recently started with RoR and this may be a newbie question.
I have a company table, employee table and transactions table.
1 company has many employees. Each employee performs many transactions.
Employees from different companies LOGIN to the system to record their
transactions. Employees can search on all transactions associated to
their companies (indirect relationship via employee),
2006 Dec 21
4
Stubbing Kernel#open
Anyone know how to stub Kernel#open? I''m trying to mock/stub an
open-uri call, but it doesn''t seem to like it.
Here''s the test code, and the failures:
body = File.open(File.dirname(__FILE__) +
''/../fixtures/google_search_california.html'').read
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 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 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 Sep 03
1
Returning different values with stubs
Right now I''m working on adding tests to a method that looks like this:
def get_via_redirect(path, args={})
get path, args
follow_redirect! while redirect?
status
end
So, I want to confirm that get is called and that status is returned
but I also want to see that when the value of redirect? effects how
many times follow_redirect is called. Is there
2006 Sep 03
1
Slimmed down version for inclusion in Rails?
I''m pushing a major overhaul in testing the Rails codebase. Mocha and
stubba make my life easy so that''s what I''m using. The first major
patch using them is in RailTies
(http://dev.rubyonrails.org/ticket/5970) now. I spoke to DHH today
about using it in the other libraries and I think it''ll be ok, but
they really want to include as little code as needed. I
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])
2006 Apr 24
1
Just a couple questions on how I should go about
> I need a simple blog with categories and comments and an archive. I want a
> nice posting system, but don''t want it in HTML. Is there something I can add
> or make, kind of like BBCODE?
http://whytheluckystiff.net/ruby/redcloth/
http://wiki.rubyonrails.org/rails/pages/RedCloth
> I pretty much know what else I have to do, but there is one more thing. A
> client section.
2006 Nov 04
0
Problem with edge rails, controller namespaces and routes
I just upgraded to edge rails so I can use the BigDecimal support for
monetary calculations. I''ve just come across the following problem..
Right now, I''ve got a content controller which is responsible for
updating much of my site''s content. I''ve decided to make this a
subclass of Admin, so I can organize my administrative related
controllers into their own
2006 May 30
0
The ARTS Plugin: Another RJS Testing System
If you missed it, I''ve written a plugin for testing RJS that uses
(basically) the same syntax as the RJS templates themselves. Here''s a
taste:
assert_rjs :alert, ''Hi!''
assert_rjs :assign, ''a'', ''2''
assert_rjs :call, ''foo'', ''bar'', ''baz''
assert_rjs :draggable,
2006 Apr 02
1
Migration Error
Hi All,
I am following the useful Migrations tutorial found on this page:
http://glu.ttono.us/articles/2005/10/27/the-joy-of-migrations
However, when I try to rollback the database schema to version 1 using
this command:
rake migrate VERSION=1
I get the following error:
undefined method `to_str'' for {:noop=>false, :verbose=>true}:Hash
I just upgraded to Rails 1.1.0... not