Displaying 20 results from an estimated 3000 matches similar to: "validate unless, LoginGenerator difficulty"
2006 Jul 04
1
LoginGenerator Problem
I am trying to make a barebones login system based on this example
(which in turn is just standard RoR login) but when I enter a user name
and password, it says the login is unsuccessful every time. I am not
sure where I am going wrong. Here is all relevent information
CREATE TABLE `users` (
`id` int(6) unsigned NOT NULL auto_increment,
`login` varchar(20) NOT NULL default
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 Aug 04
1
Need a better undersanding of form helpers
perhaps someone can take a little time to give me a better
understanding of how to use form helpers.
Here is what I''m working with in my app:
user model - (the table where a user registers their information)
it contains the following fields -
first_name
last_name
email
account_type (currently set to string but will probably be a select
box with options)
password_salt (I''m
2008 Jul 16
2
belongs_to causing endless loop on first call to save!
Hi,
I have a situation I''m hoping someone out there may be able to shed some
light on. I have a Rails app (2.1.0 on Ruby 1.8.7) with a wizard-based sign
up process, that has recently been changed from storing incremental data in
the database to having a medium sized object graph living in the user
session until the user completes the entire sign up process (this is a
business
2009 Jul 04
12
save! not allowed after validates_uniqueness
I have this in a model
validates_uniqueness_of :aspect, :scope => :user_id
In an instance method of the same model I have "save!" but I don''t touch
the :aspect attribute in that instance method at all.
Whenever that save! command is run however I get this error:
ActiveRecord::RecordInvalid: Validation failed: Aspect has
already been taken
I don''t
2007 Jan 01
5
Validations based on associations
My model is very simple, it''s mostly just a join table that represents
which tournaments a user has registered for.
class Registration < ActiveRecord::Base
belongs_to :user
belongs_to :tournament
validates_presence_of :user_id, :tournament_id
validates_uniqueness_of :user_id, :scope => :tournament_id
end
the validates_uniqueness checks to make sure there''s no
2006 Apr 23
1
LoginGenerator problem after updating to FC5 and latest Rails
People,
A simple Rails app that was previously working with LoginGenerator eg:
http://localhost/library/account/signup
is now giving:
<h2>Application error</h2>Rails application failed to start properly
Other Rails apps are working OK that don''t use this LoginGenerator. I
have re-installed it with:
gem install login_generator
Anyone know what might be wrong/have
2006 Feb 01
1
LoginGenerator - Firefox Problem -The page isn''t redirecting properly
Hi,
HAs anyone come across this issue in Firefox;
I''ve just installed LoginGenerator and I''m allowing cookies to be set
yet any all to http://apollo:3000/account/login results in the error;
Firefox has detected that the server is redirecting the request for this
address in a way that will never complete.
Any Clues??
Eric.
2006 Jan 09
0
Need help configuring LoginGenerator
I''m new to Rails and I''m trying to get user login working on my app.
I''m running Ruby 1.8.2 on OSX 10.4 with Rails 1.0
I''ve installed the most recent LoginGenerator(1.1.0) and followed the
instructions in README_LOGIN as well as referencing any additional
information at http://wiki.rubyonrails.com/rails/pages/LoginGenerator.
The error message I''m
2006 Jan 16
2
LoginEngine vs. LoginGenerator?
I just saw a mention here of LoginEngine, which I hadn''t heard of
before. Last week when I was digging for user-account sample code for
my web-app, I instead found the LoginGenerator and started using that:
http://wiki.rubyonrails.com/rails/pages/LoginGenerator
Is one of these preferred over the other? From skimming the API docs,
it does seem that LoginEngine has more features,
2006 May 18
0
LoginGenerator
try >sudo gem install login_generator
> -----Original Message-----
> From: rails-bounces@lists.rubyonrails.org
> [mailto:rails-bounces@lists.rubyonrails.org]On Behalf Of Bala Paranj
> Sent: Thursday, 18 May 2006 1:26 PM
> To: rails@lists.rubyonrails.org
> Subject: [Rails] LoginGenerator
>
>
> I am following the instruction on the wiki and when I run:
> gem
2006 Jan 20
3
Is there a way to validate a model w/o saving it?
I have some code in my controller which looks like this:
if request.post? and @account.save and @user.save
...
end
and in my Account and User models I have many :validates, like so
account.rb
validates_presence_of :subdomain, :on => :create
validates_uniqueness_of :subdomain, :on => :create, :message => "is
already being used"
validates_exclusion_of
2006 Jun 19
0
logingenerator multiple select
hi,
..i''ve just finished installing the login generator and acl system from
http://wiki.rubyonrails.com/rails/pages/LoginGeneratorACLSystem
(sql sctructure of a habtam relationship of roles//users,
roles//permissions and so, being able to asign roles[with the associated
permissions]to the users..)
anyway, now i need to implement associating the correct permissions for
the correct
2006 Jan 10
0
LoginGenerator called on Form Submission
I have login authentication set for the submit action of a form. I want
the form to be visible to unauthenticated users but when they fill in
the form and submit it, I want it to redirect to the login page and then
onto the original form submission action after the user is
authenticated. This part is easy.
The hard part is, how do I pass the parameters collected from the
original form
2006 May 10
1
Validates_uniqueness_of multiple field combo?
Hello,
I am new to Ruby on rails and this is therefore probably trivial. Lets
say I have 3 tables - users[id,name, age, ...],
interests[id,name,description, ...], and finally a table
user_interests[id,user_id,interest_id] to link a user to a set of
interests. Now there is no problem to put validates_uniqueness_of :name
in the user-model to ensure that I only have one Lenny, but how do I
2005 Oct 21
4
Validate uniqueness on two columns
I would like to validate the uniqueness of two columns together. I have last
and first names as separate columns. What is the Rails Way to do this?
Thanks,
Jared Nuzzolillo
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
2006 Jul 05
8
loginGenerator - getting logged in username
i am working on a site taht uses loginGenerator..
it''s a great little package, but i am running into one little problem..
i would like to have something that says:
"logged in as <username>" in the site, but i am not quite getting it..
what i am using is:
<p>You are logged in as: <%= @session[:user] %>
but i have tried:
<p>You are logged in as:
2006 Feb 20
6
LoginGenerator - multiple user types...
I have been looking at the LoginGenerator gem. Looks great and can be
easily modified. However in my app I have two places where people can
login, one is for in my case "employees" the other is for "users". They
are seperate tables in my database and have many different fields.
I have an admin area located at ./sysadmin/ where only "employees" can
login, they
2006 Aug 02
12
Authenticate with an IP address : LoginGenerator
Is there a way to authenticate with an IP address? I''m using the
LoginGenerator, but would like to bypass the "before_filter
:login_required
" if a user is in a correct IP range...
Anyone know of a solution?
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Jul 11
3
LoginGenerator Killing Me ;)
OK I have dents in my head from beating on LoginGenerator, so if anyone
who has used this thing can shed a little light I would greatly
appreciate it.
It is installed and I have set it up on my User class. Folks can login,
logout, etc just fine. I have am not using the per method protection
model yet, as I am trying to migrate slowly ;)
What is broken though are all my methods that save or