Displaying 20 results from an estimated 10000 matches similar to: "how do I create a change password using sha1?"
2006 Jan 10
13
# of entrys in different months
right now im writing a weblog as my first project in rails. Most tings
seems to be working great :), but there is (a least) one thing left i
can''t figure out how to do.
As most weblogs i would like to have an archive, whick looks like this:
January 2006 (42)
December 2005 (60)
November 2005 (2)
October 2005 (101)
September 2005 (4)
August 2005 (2)
July 2005 (101010)
where (x) is the
2006 Jan 11
17
Different Types of Users and User Engine
My question is how have people implemented different types of users in
their Web applications using user-engine?
As for my application, I use single table inheritance in order to derive
several different types of users, such as "moderators," "editors," etc
...
For example, let''s say that I want to create a moderator. I define a new
moderator class and Controller like
2006 Jan 03
18
Trying to do a simple thing ...
Hi !
I was talking to a seasider and he asked me if it was easy to do the following
thing using rails :
1) ask a number to the user
2) ask a second number
3) give the addition of the two number and a link to be able to replay
All these things have to be done in one controller and one action, there is no
need for verification and other stuff.
I tried but I''ve got some problems
2006 Jan 03
7
best authorization?
Hello,
I want to allow some users to manage other user accounts, but do not want them to manage the admin account.
I have tried auth_generator, login_engine and user_engine
I am having a hard time gettign this to work.
Looking for advise and help.
Thanks
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 22
4
Authorization Plugin 1.0 release candidate + 3 test apps
In honor of RailsConf, I''m releasing an authorization plugin with 3
test apps that show you how to use the system. A reasonably lengthy
description can be found here:
http://www.writertopia.com/developers/authorization
I will also be talking about the plugin''s architecture in my RailsConf
talk on Saturday.
Some features:
- Nice English-like way of expressing permissions through
2006 Jan 28
6
Check if user is in right group
What is the best way of checking this?
I have 3 tables:
groups
users
group_members
class GroupMember < ActiveRecord::Base
belongs_to :group
belongs_to :user
validates_uniqueness_of :user_id, :scope => "group_id"
Then I want a method here that checks if a given user is a member of a
given group. What is the right way of doing that?
def
2006 Jan 16
17
LoginEngine / UserEngine conceptual help
All,
I have a small Intranet app I''m trying to get ready for remote access.
(I only have 15 or so users for now and I don''t plan to be adding
very many more.).
I have installed the login engine and it seems to be working as
advertized. (Great job!)
For my needs I don''t want random people to be able to register and get
access to my app, but I will need to register
2006 Jan 05
2
how to use a helper which is not inside app/helpers/
Hi,
I wish to know it is possible to use a helper which is
not inside the folder ''app/helpers'', if it is
possbile, what should I do?
Thanks you very much!!!!
Saiho
__________________________________________
Yahoo! DSL ? Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
2005 Dec 03
5
XenLinux 2.4.30 - help
Hello,
I''m trying to build XenLinux 2.4.30 on debian. I get
the following error for make linux24
make[2]: *** No rule to make target `skbuff.c'',needed
by
`/usr/src/xen-2.0/linux-2.4.30-xen0/include/linux/modules/skbuff.ver''.
Stop.
Could somebody help me resolve this error. Or if this
is some problem with the system configuration that I''m
using, could
2006 Jan 20
13
Calendar date picker for use with rails.
Howdy folks,
As I was putting together a rough form for a rails app, I got to
thinking how much smoother (in my siytuation) a little calendar widget
would be than the default date picker selects.
Does anyone know if such a thing exists ?
I suspect it would have to be somewhat designed with rails in mind to
populate the right kind of post params for convenient use at the
controller end.
2006 Apr 14
6
LoginGeneratorACLSystem Issue
Hello all,
Again, thank you all in advance for any help here. I am trying to figure
out how to show the role associated with a user, in a template. I am
using the LoginGeneratorACLSystem along with the LoginGenerator. I can
show the first name of the user by writing "<%=
session[:user].first_name %>" but when I write "<%=
session[:user].roles.name %>" it spits
2006 Jan 12
4
Typecasting and boolean attributes
I have 2 radio buttons like this:
<%= radio_button ''group'', ''public'', true %>
<%= radio_button ''group'', ''public'', false %>
They hold the correct values when viewing the @group object. However,
when updating, it does not appear that the params[:group][:public]
value is being typecast correctly.
As
2005 Nov 28
4
validates_format_of nil
I''ve noticed that validates_format_of will return invalid if the field
is nil.
Question 1) How should we declare a validation that will validate it
with a regex if it is set, but, if the field is not set, just move on
Question 2) Why is it done this way? The other validators are only
invoked if the field is set . If you want to declare the field
mandatory, you add a
2006 Jan 11
14
User Engine/General Engine issues
I''m trying to get the login/user engine combo up and working and am
having difficulties. I got the login engine up and running fine, no
problems. Now, on to the user engine.
After fixing the needed stuff in the bootstrap task so it loads I''m
able to login as the default admin ok. BUT none of the
views/controllers that are in login/user_controller are being
overridden by the
2006 Jan 24
4
How to filter an activerecord find_all...
I have a nice hierarchical table structure like this:
divisions
has_many groups
groups
belongs_to division
has_many subgroups
subgroups
belongs_to group
has_many units
units
belongs_to subgroup
I have a report which is based on units, but i want to be able to filter
the units by which subgroup, or which group, or which division. I also
want to sort them by division.name,then group.name,
2006 Jan 22
6
Destructive behavior with link_to, button_to, :post=>true
Hello-
I would like to know what the suggested practice is for having multiple
submit buttons on a relatively complicated input page.
Let''s use the example of a Contact. There is lots of info there,
including name, address, phone number. There is also a list of "contact
associations" which can be modified on the same page.
Ideally, the user could have one
2005 Dec 09
7
UserEngine - rake bootstrap aborted
Hi there,
I''ve just installed login_engine and user_engine from the repositories,
followed the setup procedures as documented in:
vendor/plugins/user_engine/README
But I''m getting the following failure:
vince@vaio:~/Projects/Booking$ rake bootstrap
(in /home/vince/Projects/Booking)
rake aborted!
undefined method `edit'' for class `UserController''
2006 Feb 08
3
RJS templates before, during and after
RJS templates are nifty. They let you put all sorts of fun effects all
over your bland html pages without too much work.
The link_to_remote function also lets you run scripts before, during,
and after an AJAX call is run by using callbacks.
There does not seem to be an equivalent method for running an RJS
template before or during an action. Rendering it at the end is no problem.
One
2006 May 22
15
collection_select default selected value
Hiall,
Unfortunately I just can''t find out how to setup a default selected
value when using collection_select. My call is like so:
<%= collection_select(:consultant, :lastname, @consultants, :id,
:lastname, { :selected => @current_consultant.id } ) %>
which is not working, I debugged so far that I know that
@current_consultant.id contains the correct value.
Any tips?
cheers
2006 Jan 09
1
to another country
Hi everybody. This is my first post here.
I'm new to Asterisk. I started to study recently so I
have a lot of gaps. This is my question:
I have DSL here in USA and so has my friend who lives
in another country. Is it possible using asterisk and
our analog telephone devices to establish voice
comunication between us. If that is possible what kind
of additional hardware do we need? What would