Displaying 20 results from an estimated 2000 matches similar to: "warning: already initialized constant problem"
2005 May 18
10
Salted Login Generator issues
Hello all,
I''ve just installed and begun to integrate the salted login generator.
So far I''m very impressed, though I''ve hit a few snags along the way.
Unfortunately, I''ve met the first one that I haven''t been able to
resolve on my own.
When I hit the login action, I get errors in my log files. The specific
error with trace is included below.
2006 Feb 16
1
file_column problem
I cannot get the file_column plugin to work. Probably something stupid
I am doing wrong as I am pretty much a newbie...
1. I added a varchar column to my table called "image"
2. This is my class:
class User < ActiveRecord::Base
file_column :image, :magick => { :geometry => "80x80>" }
attr_accessor :new_password
... rest of class
3. In my controller I
2006 Aug 25
0
Re: login sugar
Well,
it turns out that this piece of software requires that a new user
call the welcome action. The welcome action changes the user''s state
to verified. Once the user is verified, he will be allowed to
attempt authentication. The login page actually states this
which is useful to me once I read it.
I get the URL to the welcome action from the e-mail sent out
or the development.log
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
2005 Jul 05
2
Salted hash login generator (verification problem?)
Hi all,
I hope someone can help with what is probably a simple newb
installation mistake on my part. I''m having a couple of problems with
the salted hash login generator. I installed it following the
quickstart guide, and the unit tests work like a charm. There are two
errors and a failure on the function tests, though; the verified field
seems to be involved in at least one of
2006 Jan 13
0
Controller part of in-place editing
I''m doing some incremental improvements on scaffolding, and want to add
in-place editing to an admin section. I think I may have the view part
working right (at least, the editor pops up as expected) with this in my
view:
###
<% for link in @links %>
<tr>
<td> <div id="<%= ''url'' + link.id.to_s -%>"><%= link.url
2007 Nov 01
8
Specifying mixins
Hi folks,
Can anyone share some accumulated wisdom about the best way to spec
mixins in general, and (Jamis Buck-style) ActiveRecord "concerns" in
particular?
The standard situation here is that there''s a bunch of functionality,
related by concept if not by implementation, that one wants to inherit
in many different classes (e.g. ActiveRecord models) without having to
2006 Apr 14
1
SaltedHashLoginGenerator Integration Woes
I''m trying to modify the SaltedHashLoginGenerator to where it separates
the users table into two tables: a users table which contains login
info: token, salt, etc) and userprofiles table (which contains
firstname, lastname, authlevel, etc)
I''m trying to use the existent helper for user under
app/helpers/user_helper.rb and copied to
app/helpers/userprofiles_helper.rb and
2006 Jan 23
3
prototype.js: enumerable mixin for hash broken
Hello everyone.
I am not sure if this is the right place to post, please redirect me
if there is a mailinglist more specifically dealing with prototype.js.
After playing around with the very inspiring prototype library I have
found a rather annoying thing, that makes the usefulness of the
Enumerable mixin for Hashes
questionable, if I am not totally wrong (again :-).
Here an example:
2013 Apr 05
2
ClassicUpgrade => EpicFail
ClassicUpgrade of my samba3 data to samba4 fails, with this error:
ERROR(<class 'passdb.error'>): uncaught exception - Unable to get id for sid
Full log of the classicupgrade is at the end of this email.
Project member on this list, Andrew Barlett, wrote that the issue is probably that my Samba 3 passdb was passable in an NT 4 DC mode, but is actually 'invalid' :
2008 Nov 22
1
Testing Environment for Plugints
Hello,
I''m currently creating my first plugin in rails. It creates a model
and a mixin for controllers. For testing purposes I need a test
controller (sort of a mock) to which I can include my mixin and test
wether the mixed in methods work. My problem is in order to do this I
either have to setup my test enviorment in a rails app outside of my
plugin or I have to replicate a whole rails
2006 Sep 12
1
acts_as_taggable -- which one?
There appear to be three acts_as_taggable implementations and I''m looking for
a recommendation on which to use.
- Gem
- DHH plugin
- Dema mixin
The Gem implementation appears to be obsolescent, from what I can read on
the lists and Google search.
I like that the DHH plugin uses polymorphic associations because there will
be lots of different taggable items in my application; however,
2006 Jan 27
4
acts_as_whatever
Hi there,
I love the acts_as_* family that rails uses. I''ve also found I can
create something similar by dropping the following code into my
activerecord classes:
class MyClass < ActiveRecord::Base
class << self
alias_method :count_with_unapproved, :count
end
def self.find(*args)
options = extract_options_from_args!(args)
if options[:conditions].nil?
options[:conditions] =
2006 May 10
1
model mixin module madness
If I have several models which exhibit the same functionality, it seems
makes sense to create a mixin, ''include'' it in each model and save
myself some work and repeated code.
Where can I define a module which will be available to all models? I
can''t seem to find a documented place for them.
Alternatively, is there a Rails-standard way of achieving the effect?
Ben
2006 Aug 16
0
sort_link_helper , sorting on date
I am using this helper to sort my table colums, no problem sorting on
string but how can I sort a date colum ( in my DB, )
user_helper.rb ----------------------
def sort_link_helper(text, param)
key = param
key += "_reverse" if @params[:sort] == param
options = {
:url => {:action => ''list'', :params => @params.merge({:sort =>
key, :page =>
2009 Feb 02
2
ActiveRecord::AssociationTypeMismatch (User(#54754560) expected, got User(#54510280))
i keep getting this AssociationTypeMismatch error. i think this could
be a bug related to ruby/rails when using mixins. heres a short
version of my code:
# user.rb
require ''friend_invitation''
require ''friendship''
class User < ActiveRecord::Base
include FriendInvitationUser, FriendshipUser
...
end
# friendship.rb
...
module FriendshipUser
def
2004 Oct 19
0
RE: Another Interesting "Problem" with Win32-EventLog
> -----Original Message-----
> From: Joey Gibson [mailto:joey@joeygibson.com]
> Sent: Tuesday, October 19, 2004 6:11 AM
> To: ruby-talk@ruby-lang.org; Berger, Daniel
> Subject: Re: Another Interesting "Problem" with Win32-EventLog
>
>
> Daniel Berger wrote:
>
> >After getting home from work today I tried again on my home machine.
> >My
2005 Dec 26
0
Why isn''t this working???
This is a very straightforward problem..
-I included a mixin in lib/ (see below)
-In environment.rb, I included the require statement (require
''acts_as_tree_additions'')
-Defined a method in the model:
def category_list
format_as_list #method in acts_as_tree_additions
end
-Called that method in the view..
I know the method is in the correct use, because it prints out a
2011 Sep 23
3
ldap ENC extension to use environment parent node
Hi,
We currently use ldap ENC to set server role variables and extlookup
to set domain or environment variables.
I have a suggestion regarding ldap use as an ENC - if a node within
ldap has the environment attribute set then it should inherit/mixin
(if available) from a node named after it''s environment.
It could be populated with only puppetVar type attributes so that any
environment
2007 Apr 13
0
mixin behavior
Hi, all,
I need to DRY up some code in a few models. My first inclination,
having come from the Java world, was to go with an abstract class.
After a bit of reading, I then decided to follow the mixin route
instead. Now I''m running into trouble, most likely from a few basic
misunderstandings.
There are three models I will be using to average and count rating
data by executing a