similar to: Silent Validation Failures

Displaying 20 results from an estimated 400 matches similar to: "Silent Validation Failures"

2014 Oct 25
1
Dynamic tags in email address
I'm trying to get dynamic tagging (user+sometag at example.com) to work on a mail server I'm setting up, however it only works as long as it's sent to the main user and not to aliases. virtual-alias-maps query: SELECT get_email_alias_dyn('%s') virtual-mailbox-domains query: SELECT 1 FROM domain WHERE name='%s' virtual-mailbox-maps query: SELECT 1 FROM user_alias
2008 Sep 18
1
using NOPASSWD in sudoers
Hello Everyone, I am trying to change our /etc/sudoers (using visudo) to allow 2 commands to be run as root without a password, but it isn't working. Here is the part of the sudoers file that is in question. # User alias specification User_Alias FULLACCESS = doug, scott # members of the FULLACCESS User_Alias may run chown and chmod without a password FULLACCESS ALL = (root) NOPASSWD:
1999 Nov 13
0
Retraction: security hole in sudo allows users full access
I did not understand the man pages for sudo and incorrectly interpreted the results. I interpreted the ALL to apply to all commands defined in the sudoers file. Basically, I'm an idiot, but here is the chain I followed, and the correct interpretation. In the man pages on sudo, it says the following: A User_List is made up of one or more usernames, uids (prefixed with
2008 Jan 30
0
prob linking to static page in public folder
For the first time, I''m trying to link to a static page and running into a problem... Here''s the link_to code: <%= link_to "Terms of Service", ''/terms_of_service.pdf'', :popup => true %> And here''s the error I''m getting: no route found to match "/terms_of_service.pdf" with {:method=>:get} Should be simple and
2006 Apr 07
0
validates_acceptance_of problem
I''m having some difficulties getting validates_acceptance_of to work. No matter whether I tick the checkbox for my terms and conditions on my form, it will not submit it and shows my error message. in my model i have: validates_acceptance_of :agree_to_terms, :message => "" in my view i have: <%= error_message_on :user, :agree_to_terms, "You must agree to the
2007 Feb 25
0
validates_associated causing weird results
I''d almost think the presence of "validates_associated" is causing the associated model to run validation twice. The associated model, Upload, which handles uploaded files and saves them, is saving each uploaded file twice in a row. This doesn''t happen if I remove "validates_associated" from the model it belongs to, or if I have the model save files during
2006 Feb 08
5
validates_acceptance_of + functional testing
I had to add a check box indicating that a user accepted certain terms to a page. So, I put in a ''validates_acceptance_of :terms'' line into the appropriate model and added a checkbox to my view. Everything works as expected in my web browser. However, my functional tests still pass and I didn''t add or change anything to them. I was expecting to have to add another
2008 Jan 19
1
mixing templates and other methods for a file''s content
Hello there, I have come to a situation where I would like to mix 2 approaches to create the contents of a file. Here is what I have: a module ''sudo'' which manages a hosts /etc/sudoers file: init.pp: class sudo { case $operatingsystem { Debian: { package { "sudo": } } } file { "/etc/sudoers": mode => 440, content =>
2007 Aug 21
2
validates_acceptance_of (and hidden input)
Hi Why does a failed "validates_acceptance_of" create a hidden input in the view? cheers, jason --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this
2006 Jul 21
1
validates_acceptance_of weirdness
On my registration form I have a checkbox for a waiver. In the model I have the statement: validates_acceptance_of :waiver, :on => :create, :message => "must be accepted" In the view: <%= check_box_tag("waiver") %> <%= error_message_on "user", "waiver", "Waiver "%> For some reason validate is accepting everything when the
2006 Apr 27
1
validates_acceptance_of, virtual attributes and mass assign
Hi, I''ve a question concerning validates_acceptance_of method. Documentation says that the validated attribute is a virtual one, without a field in db. But when I add such an attribute to my form (say check_box(:xyz, :agreement)), it''s passed in params[:xyz][:agreement], but not assigned when calling Xyz.new(params[:xyz]), probably because corresponding field
2006 Oct 04
0
Displaying validates_acceptance_of Errors In A Check Box
Hello, I am having trouble displaying a check box which must be checked but hasn''t been. I would like it to be highlighted as in a scaffolded view but the hidden check box field which is generated by the check_box helper is also highlighted, and the text next to it loses its styling. My code follows. Should I get cleverer with the CSS or write my own check_box helper which
2006 Feb 28
6
How To Validate Boolean Form Field
Hello all. I''ve got the following in my model: class Individual < ActiveRecord::Base validates_presence_of :first_name, :last_name, :street, :city, :state, :zip validates_acceptance_of :AZ_resident, :message => "You must be an Arizona resident." end The AZ_resident field is present and defined as boolean (PostgreSQL 8.1), but validation will not occur.
2006 May 24
1
Observer behavior differences between DEV and TEST environments ?
Hi all ! I''m having an issue and I can''t seem to make heads or tails of it. I am attempting to add an observer to a model object. I created app/models/greenback_transaction_observer.rb, inherited from AR::Observer, defined methods, registered in config/environment.rb, but things don''t work... So, I took a step back and put in the following code: class
2010 Nov 19
6
augeas / sudoers
Hello everybody! How can i create with puppet following sudoers file: User_Alias CENTREON=apache,nagios CENTREON ALL = NOPASSWD: /etc/init.d/nagios* restart CENTREON ALL = NOPASSWD: /etc/init.d/nagios* reload CENTREON ALL = NOPASSWD: /usr/bin/nagios* -v * The problem that augeas create only last line, replacing previous one. -- You received this message because you are subscribed to
2005 Nov 26
0
Model warnings along with Validations
Hi railers, Is there a simple method to extend Active Record to have similar functionality as the validate functions e.g. validate_on_find validates_acceptance_of validates_each validates_format_of validates_length_of validates_uniqueness_of etc... but only report warning on model attributes instead of errors(). I would like to save the model if there are warning and if the model is invalid
2006 Apr 07
6
validation nightmare
Please help, I am really at a loss at how validation is supposed to work in rails. Model contains acts_as_tree I want to force my NEW objects to have a parent I do NOT want existing object to have a parent so I only want to have parent_id on create, NOT on update. I am trying this: def validate_on_create validates_presence_of :parent_id, :message => "You must specify a
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2007 Nov 03
3
Birthdate validation
Hello everyone, I''m almost cracking my head trying to do this birthdate validation. It turns out that I can only accept users with at least 18 years old and I''m trying to validate it writing this code on my user.rb fil at app/ models class User < ActiveRecord::Base validates_presence_of :full_name validates_presence_of :street_address validates_presence_of :city
2007 Nov 13
0
Allowing validates_acceptance_of to store value on the database column
I''ve reopened a ticket for this and provided a patch withs tests. From my notes on the ticket: > An example use case here, is that I want to use the current version of the EULA as the :accept value, and store that column, so I can refer to the explicit version the user accepted at a later date. http://dev.rubyonrails.org/ticket/7457 Any feedback and/or support for the patch is