Displaying 20 results from an estimated 46 matches for "create_users".
Did you mean:
create_user
2008 Mar 17
4
RSpec''ing model association callbacks
Hi all,
i''m learning rspec and i must admit i really love it.
But at the time i started learning it, i already
developed my models classes and their callbacks.
Now i''m trying to get a 100% coverage of my code but i
cannot reach it because i do not understand how to
spec my callbacks.
Look at this for example:
----------------- User Model
class User < ActiveRecord::Base
2006 Jul 25
5
webrick server slow or does not connect
hi,
In login_controller.rb when I do the fallowing code it works fine
before_filter :authorize, :except => :login
but I want to do the fallowing when creating the user so the
authorization is not checked
before_filter :authorize, :except => :login, :except => :create_user
but when I do this webrick server appear to be slow or not connected and
take lot of time to load?
Could someone
2007 Oct 02
2
Requires from other modules / requires with aliases
Hi everyone, I''ve been working on a module for bacula, and I''m having
a problem requiring resources I''ve defined in other modules. At the
moment, I have the following (simplified):
/etc/puppet/modules/bacula/manifests/init.pp:
class bacula {
...
define configure ( $gui="true", $db_password ) {
...
postgresql::create_db {
2007 Sep 23
4
Story Runner, autoincrementing
I''ve written a story and I run into a snag.
I''ve written the create_forum method and told it to set the id to 1
but when it creates the forum the id is autoincremented.
My forums table is empty but the id keeps incrementing the newest record on
creation.
When I run the story it comes out as something like 59 which fails my story
because I''m asking it to look at /forums/1
2007 Dec 11
3
Transactional/Rollback problems
I''m having a rollback problem with rspec trunk. It doesn''t seem like
rollbacks are happening quite as often as they should be. It
appears as though the rollbacks are *NOT* occurring on the first
description block in a file, but are for the rest. Here is a set of
specs that are failing:
require File.dirname(__FILE__) + "/../spec_helper"
describe
2004 Feb 19
0
Windbindd restarts and lost uids
We have a problem with our setup that exposed another problem in winbindd.
Setup: Samba 3.0.1, openLDAP 1.2.23 for idmap backend using port 1389,
security=ads (w2k). All works after we get the daemons started
successfully.
The first issue has to do with the initial setup of both a Samba
server [smbd, nmbd, winbindd, slapd], and a Samba client [just nmbd and
winbindd]. We do the
2009 Oct 29
1
[PATCH] Enables users to migrate virtual machines between hosts.
Users select a virtual machine on their current libvirt host. They then
select a target machine, which must have been previously configured as a
connection. They confirm the migration and then it runs.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
nodeadmin/addhost.py | 10 ++++-
nodeadmin/libvirtworker.py | 6 +++
nodeadmin/migratedomain.py | 81
2009 Sep 13
1
belongs_to + create_* = rails vs. console behavior difference = confused Pepe
Hi,
I have been battling something for a good hour and a half and finally
realized how to ''solve'' the issue but I am very confused as of why I
should do what I just did.
I have 2 classes:
class User
has_many :audits
...
end
class Audit
belongs_to :user
...
end
The way things need to work is to first create an audit and after the
audit is created a user that has
2007 Oct 16
10
Scenarios Plugin Pre-Announcement
This is sort of a pre-announcement for a Rails plugin my friend Adam
Williams and I are working on. We''re in the process of extracting it
from a project we are working on so that it can be generally useful to
the Rails community. We are calling it "Scenarios". It is a drop in
replacement for Rails fixtures:
http://faithfulcode.rubyforge.org/svn/plugins/trunk/scenarios/README
2008 Mar 20
5
sharing story steps
Hi,
How can I have a common set of steps that all my stories share?
i.e. My stories often start out looking like this:
Given a user Joe
Given a user Jordan
then:
Given("a user $username") do |username|
@users ||= {}
@user_sessions ||= {}
@users[username] = create_user(:username => username)
@user_sessions[username] = login_as(@users[username])
end
I want to share that
2007 Nov 20
9
Testing Models without fixtures
Hi,
I would like to test a sorting method that is in the user model, it''s
a class method called search.
What I would like to do is create 2 users and load the test database
with just those 2 users, so that I can call
User.search("john") and it would return those two users.
Not sure how to clear the test database and populate it just with
these 2 users for that specific
2008 Nov 15
4
data not being saved
I am trying to save data entered in a form and nothing seems to be
saving. What do you I have to look at to ensure everything is set-up
correctly? I have looked in my database.yml file and all looks good and
the database that I am trying to use exist. Thanks,
-S
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
2006 Dec 24
6
What do you think of this controller spec?
Here''s a controller spec I wrote, it''s for a very simple RESTful
controller (well, aren''t all RESTful controllers simple? :)
I''ve created a couple spec helper methods to refactor some of the
common code...for example, require_login_and_correct_user creates two
specifications: one for when the user isn''t logged in, and one when
the user is logged in but
2023 Apr 07
2
python module
I am looking for the python-samba module. I would like to
add/disable/modify AD accounts using python running on a linux machine.
ChatGPT suggested the python-samba module. Sample code as follows:
from samba.credentials import Credentials
from samba.netcmd.user import create as create_user
from samba.netcmd.user import setpassword as set_user_password
...
I am running Debuan bullseye and I can
2006 Aug 08
4
Creating a child simultaneously with parent via form
Hi there
I''ve got a user model and an address model; a user has_many addresses.
A user object can be created via an html form which also allows for an
initial address to be created.
I''ve got a controller method working to save both objects via the
form, but I suspect I can achieve this in a more rails-esque manner.
Here is my controller method:
def signup
@user =
2011 Apr 08
3
Ruby on rails migration problem
...rms in views, it is not updating the database for these city_id
and profession... ( not changing from null )
if add validation for presence of city_id .. it is giving the error
"City id cant be blank." even though i filled it...
where as it is working fine with the fields i have added in
create_users migration...
do i have to change anything else when create new migration in
AddDetailstoUsers migration .. other than using rake db:migrate ....
Thanks.,
Sagar
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this gr...
2008 Jan 04
2
Nested Routes + Facebook Resources
Does anyone have nested routes working with the facebook_resources
method?
My routes.rb has:
map.facebook_resources :users do |users|
users.facebook_resources :images
users.facebook_resources :connections
end
but user_connections_url won''t generate.
"rake routes" gives me:
new_user POST /users/new
{:action=>"new",
2005 May 06
1
idmap_sid_to_uid is not get called?
Hi
I have the following question:
Joining Win200x as ADS/DOMAIN, I see no problems for windows users to
get authenticated even if they don't have local accounts.
However, with the same samba (3.06) joining NT4 SP6 domain I see that
only users that also have entry in /etc/passwd are been authenticated.
I followed winbindd traces and saw that there is no problem
communicating with
2004 Jan 19
13
winbind and Solaris 9 with AD
Hi
have been trying to get winbind working on Solaris 9 but to no effect.
version info:
samba: 3.0.0
openldap: 2.1.23
kerberos: MIT 1.3.1
Have followed the instructions in every howto, usenet posting I could
find:
nscd not running
created relevant links in /lib and /lib/security/sparcv9
applied patch for nsswitch as recommended
kinit -e works
net ads join works
wbinfo -t works
wbinfo -u
2010 Dec 02
8
CanCan issue when being very specific
So I got CanCan and Devise working well. I have two types of users:
Admins and Nonadmins. Admins can edit all of Nonadmins profiles.
The problem is, every user (either Admin or Nonadmin) belongs to an
Account or Organization. Admins should only be able to edit users from
their own Account or Organization. I was able to do that too.
The problem is, I can''t display the Create New User