similar to: difference between @secure_password, secure_password

Displaying 20 results from an estimated 400 matches similar to: "difference between @secure_password, secure_password"

2006 Jun 14
3
where to define a struct
Hello, I''m trying to use the following Struct in my web app: UserInfo = Struct.new( "UserInfo", :first_name, :last_name, :email, :domain_name ) I placed this in the environment.rb, thinking that it should be initialized only once. But when I try to access it from within my controller, I get: undefined method `UserInfo'' for #<UserController:0x243ad5c>. so
2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post. I am trying to configure file_column plugin so that it stores the images in a directory completely outside of RAILS_ROOT. I have no problems in storing the files by setting :root_path option. But I can''t get to display these images using ''url_for_file_column''. What I get instead of the image is
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
2008 Jan 16
4
ActionController::InvalidAuthenticityToken in LoginController
Hi, I''m having a problem trying to get a login controller working. When I try and post to my login controller I get the following error: ActionController::InvalidAuthenticityToken in LoginController#login login_controller: class LoginController < ApplicationController def login case request.method when :post if @session[''user''] =
2006 Feb 22
0
STI and Inheritance
Hello ~ I have run into an issue with some of my objects not behaving as I expect. Basically I am using STI on my Users table and have several types of users. BaseUser --UserType1 < BaseUser --UserType2 < BaseUser etc.... Recently when I create a UserType object and save it to the database it ignores the validation rules for the parent class BaseUser. Furthermore the after_validation
2006 Aug 14
2
after_create is not being called
Hi all I have the following model: class PhotoGallery < ActiveRecord::Base attr_accessible :title, :description, :file_path, :title_photo_id has_many :photos, :dependent => :destroy belongs_to :title_photo, :class_name => ''Photo'', :foreign_key => ''title_photo_id'' validates_presence_of :title, :description, :file_path
2003 Feb 25
2
syntax rules
hi, i lost half a day trying to figure out how r is parsing statements in multiple lines. can someone explain (or direct me to documentation) the following. consider the following statements in a program file, say foo.r: a <- 1 + 2; b <- {1 + 2}; {c <- 1 + 2}; d <- c(1, 2); if i do source("foo.r"), i get a=3, b=2, c=1, d={1,2}. according to the r language definition
2008 Feb 03
1
ActiveRecord object.valid? triggers unexepected results
I''m editing an ActiveRecord object in a session through AJAX, updating it with object.attributes = params[:object], and validating it with object.valid? Because it''s associated with other objects in a form, I want to save them all together. The surprise was that object.valid? triggers after_validation_on_update. I''m having an audit log and I was getting bogus entries.
2012 May 26
2
before_create is after_validatation :on => :create , when it should be before_validation :on => :create
In ActiveRecord''s callbacks, methods within a before_create callback are called after the validation, but before the model is created. This was an intentional design decision, but I think it was the wrong one. What do you think? When I think of before_create, I think of before_validation :foo, :on => :create, but, by default, before_create is synonymous with after_validation :foo,
2006 Jul 11
0
text_field_with_auto_complete problem
hello all, I am trying to get a customized text_field_with_auto_complete working where the generated dropdown will display not only the list of teams (first line), but also their city and country(second line). In my view, I have: <p> <label for="team_name">Team: </label> <%= text_field_with_auto_complete :team, :name, {}, :skip_style => true %>
2006 May 15
0
losing validation error messages
Hello all, I am pretty new to Rails and have recently started on a simple project with it.. I have a simple home_controller and home/index.rhtml page that displays a login/registration form. The login/registration actions are handled by users_controller.rb. register action in users_controller always redirects back to :controller => "home", :action => "index".. The
2003 Feb 19
3
working with list
hi, i have two questions: (1) lookup: given a list of 'strings' in a list, i want to know the index of a given string in the list. if the string is not in the list, the index can be 0 or length()+1. for example, suppose i have names <- c("dog", "cat", "pig", "fish"); then i want lookup(names, "cat") to return 2 and lookup(names,
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
2015 Jan 23
0
Wine release 1.7.35
The Wine development release 1.7.35 is now available. What's new in this release (see below for details): - Beginnings of support for OpenGL core contexts. - Initial support for glyph placement in DirectWrite. - Some more WBEM objects. - Various bug fixes. The source is available from the following locations: http://prdownloads.sourceforge.net/wine/wine-1.7.35.tar.bz2
2018 Sep 19
0
Problem getting quota-warning script to function.
Hi! Can you provide dovecot version? Also output of mail_debug=yes logs would be useful Aki On 19.09.2018 00:19, Ted wrote: > Hello, > > I'm trying to implement quota enforcement in our mailservers, and it is > all working properly except that the quota warnings are not firing when > the quota levels are passed.? the server stops accepting email when the > quota is
2011 Feb 13
3
[LLVMdev] conversion from 'const llvm::Value*' to 'llvm::Constant*'
Oh, I thought that after "codegening" cos(0) would get me double 1.0 (assigment is working for anything like: global a = 1/3 + 2 /3 for example) What would be the best way to make assigments involving functions, like global a = cos(0); without getting the assertion arising from InitVal = cast<Constant>(Init->Codegen()); ? I made some changes and now my code basically works,
2011 Feb 13
0
[LLVMdev] conversion from 'const llvm::Value*' to 'llvm::Constant*'
Hi Anton, > Oh, I thought that after "codegening" cos(0) would get me double 1.0 > (assigment is working for anything like: global a = 1/3 + 2 /3 for > example) What would be the best way to make assigments involving > functions, like global a = cos(0); > without getting the assertion arising from InitVal = > cast<Constant>(Init->Codegen()); ? the problem
2011 Feb 13
1
[LLVMdev] conversion from 'const llvm::Value*' to 'llvm::Constant*'
Hi Duncan and Reid, Thanks for your comments and suggestions. I was puzzled because assigning to a local variable in the tutorial example works. For example: var a = cos(1) in ( 2 * a ); emits declare double @cos(double) define double @0() { entry: ret double 0x3FF14A280FB5068C } and we get the right answer 1.08060461. On Sun, Feb 13, 2011 at 5:09 PM, Duncan Sands <baldrick at
2018 Sep 18
2
Problem getting quota-warning script to function.
Hello, I'm trying to implement quota enforcement in our mailservers, and it is all working properly except that the quota warnings are not firing when the quota levels are passed.? the server stops accepting email when the quota is reached, and you can see tyhe quota usage through the email client connected through, but as the quota passes the set levels the /usr/local/bin/quota-warning.sh
2011 Jan 17
1
Replacing rows in a data frame
R-helpers, Below is a simple example of some output that I am getting while trying to work with a data frame in R 2.12.1 for Mac. ----- > testdat <- data.frame(matrix(ncol=10, nrow=10)) > colnames(testdat) <- c('a','b','c','d','e','f','g','h','i','j') > testdat[seq(1,10,3),] <-