Displaying 20 results from an estimated 1100 matches similar to: "Requires from other modules / requires with aliases"
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 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
2005 Jul 18
1
scripts/create_db
I have been installing rails. I got through the //localhost:3000
information. At that point, I figured I need an app and have been
working on salted hash login. I found
http://wiki.rubyonrails.com/rails/show/SaltedLoginGeneratorQuickstart
and worked through to where I want the create the db tables. Instead, I get
script/create_db
-bash: script/create_db: Permission denied
[root@astarcc
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
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
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
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
2005 Dec 19
1
Is there a guide for using ERBSQL?
I''m not sure I completely understand the benefits of using ERBSQL or
how to use it. Google searches have proved it to be rather
undocumented.
From what I understand the embedded ruby sql allows you to write sql
that''s easier to deploy via the create_db script and also more
portable to postgres, myslq, or whatever.
But what I can''t find is a resource that
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",
2006 Mar 02
5
Instiki and SQL Server??
Hello. I reeeeally want to get Instiki running at my day job, but they
are Microsoft-heads. While I can probably sell them on trying Rails,
they are definitely going to want the database to sit in our SQL Server
instance with our other databases. I can''t get instiki to create the
tables in sql server though (I''ve added ADO.rb, and gotten a
connection). When I run the
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
2005 May 08
2
Samba / AD / Winbind issues
List members,
I have an issue that I hope one of you can help me with ... I have
set up a AD ( 2003 ) as PDC and a RHE3 AS server running Samba V3.0.6-2.3E
following the instructions in the HOW-TO- By example. Here is what I have
at the moment ..
I had no problems adding the RH server to the Domain and I have Winbind set
up in the nsswitch.conf file for passwd, group and hosts
I
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
2023 Apr 07
1
python module
On 07/04/2023 20:20, David Bear via samba wrote:
> 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
2004 Jul 15
1
Samba 3.0.2 on HPUX 11i with winbind; Get_Pwnam_internals didn't find user + NT_STATUS_NO_SUCH_USER
Hey,
I've troubles with a samba-installation ( version 3.0.2, HP-CIFS-Technologie
Preview ) on HPUX 11i. I want to setup a fileserver within a
customerenvironment connecting into a windows 2000 domain, which contains a
lot of trusted domains. I have joined the domain already and wbinfo brings
me the list of users and groups. Also within the winbind_imap.tdb I see some
entrys which seems to
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
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
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