Displaying 20 results from an estimated 20000 matches similar to: "[Stories]Changes in the database not taken into account"
2009 May 15
0
[PATCH server] use service layer for Network controller.
There's still room for additional refactoring as we may want to eventually split out nic, bonding, and ip address manipulation into their own controller/svc module, but that would be a much more extensive redesign than we want to deal with for the overall service layer creation refactoring.
Signed-off-by: Scott Seago <sseago at redhat.com>
---
src/app/controllers/network_controller.rb
2008 Mar 05
14
[Stories] Login and subdomain
I''ve just begin using rspec stories, and i m encountering some
problems. In my application i have different subdomains in which
specific users can log in, for example an admin will go to
admin.myapp.com/authenticate/login, and an user belonging to a
specific company will log in company.myapp.com/authenticate/login, and
of course both have a different login process.
To perform some
2011 May 25
1
rake task: uninitialized constant
I have this rake taks:
CUSTOM_MONTHS = [nil, "GEN", "FEB", "MAR", "APR", "MAG", "GIU", "LUG",
"AGO", "SET", "OTT", "NOV", "DIC"]
def parse_date_string(date_string)
begin
day, month, year = date_string.split("-")
Time.mktime(year, CUSTOM_MONTHS.index(month),
2006 Mar 29
2
delete_all not resetting auto incement in database
Hey
I''m writing a simple admin interface thats reading user data (skills)
from a comma separated file.
To clear the database before inserting new skills, I use
Skill.delete_all
Then I insert the new values I read from a file. Everything goes well
up to the point where I see that auto-generated ID''s are not starting
from 1. They start off at 840 (responding to the number of
2006 Jul 26
7
Delete_all causes a deadlock on MSSQL database ???
Hi all,
When i use the ''delete_all'' function to remove a few rows from my
database, it causes a deadlock on the sql server. The delete seems to be
successful, it then redirects to the ''view'' page, and the record does
appear to be deleted as far as the ''view'' rails page shows.
BUT if i go into sql query analyser, i can''t do a
2007 Dec 31
4
How to run stories with `spec'' command?
Hi, all!
I have a story steps array.rb and the story array.story. I
can run it with
ruby array.rb
But when I execute
spec array.rb
nothing happened. I''m wondering how can I use spec command to
execute stories? (executing examples is OK) Or maybe another
question. If I have to run stories with `ruby'' command, how
can I choose the output format? (I think there''s
2008 Jul 01
2
rateable plugin problem
I am having some problem figuring out how to use the rateable plugin. i
followed as close as the directions located at
http://www.naffis.com/blog/articles/2006/08/31/rails-ajax-star-rating-system
but there seem to be some problem.
I am getting the following error
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.rating
Extracted source (around line
2013 Feb 28
1
Validation Failed: Userkey has already been taken, Email has already been taken
Hi,
I am using Factory girl with rspec and capybara for testing my rails
appliction. I have the below code
FactoryGirl.define do
factory :user do |f|
f.email "sss1 at gmail.com"
f.userkey "12ssd345q62"
end
end
When I run the test it is failing as "Validation Failed: Userkey has
already been taken, Email has already been taken".
What could be the reason for
2006 Mar 17
1
How to update values in database in this form?
Hi,
This is my rHtml page & Corresponding actions & model pages:-
===listform.rHtml=================
<h1>Products List</h1>
<%= start_form_tag(:action => "add_to_cart")%>
<table>
<tr>
<%
i=0
%>
<th>
Product No.
</th>
<th>
Unit Price
</th>
<th>
Available Qty.
</th>
<th>
Demand Qty.
</th>
2010 Jul 08
3
my web app seed data and cucumber
I''m writing a web app which is used a SaS. Each customer has their own
db and app directory. I have a rake task which creates all necessary
minimum data to run their website: default rights and roles, a
superadmin user, a "us_states" table already populated, some local
depots and terminals (it''s a logistics app).
I don''t have any cucumber scenarios for it and
2010 Nov 24
0
Surprise in (delete_all | clear | destroy_all) on association
Hi,
I was very surprised by difference of delete_all on association vs
model(delegated to relation).
Given TaskFilter.has_many(:qualifiers, :class_name=>''TaskFilterQualifier'')
TaskFilter.delete_all => one DELETE statement
Without :dependent option on "qualifiers" association
TaskFilter.first.qualifiers.delete_all =>
SELECT `task_filter_qualifiers`.* FROM
2008 Mar 20
3
cleaning up after stories
do I have to manually clear out the database after a story runs?
Seems like the data the story left is still in there.
Joe
2005 Mar 30
0
Samba 3.0.13 security= ADS / Problem to access a share in auth_util.c ==> change of group not taken into account (supplementary groups)
Excuse me, i am french....
My SAMBA v3.0.13 (over a linux Redhat 7.3.1 With kernel 2.4.27-4) is
configured with " security = ADS " to communicate with Active directory
(2003 server).
The problem : When i modify the group of a user in the Active directory,
this modification is not completely taken into account in samba.
In fact the orders "getent" and "wbinfo"
2005 Mar 24
3
Caching computation in rails?
Caching computation in rails?
Simple example: factorial modulus a large number
input: integer x
output: factorial( x ) % 12345678901234567
I want it so that if it computes factorial of N once, it will not have
to compute for N again.
code:
class SiteController < ApplicationController
caches_action :factorial, :inv
def examine
@inv = @params[''inv'']
@outv =
2006 Aug 16
0
mysterious ''duplicate entry'' database error when building table
hi,
i tried posting this yesterday, but i never saw my message make it to the list
so i suspect something went awry..
my rails app has some ''sync'' code where it connects to a remote db, grabs the
records from a table, deletes all the records from a table which is a local
copy, and then rebuild the table with the records fetched on the remote db..
it boggles the mind how a
2003 Sep 18
1
modified include-from file not taken into account.
Hello list,
Using rsync 2.5.6 on Solaris 7/8 boxes:
I was happily running this script via crontab:
$ more webrsync.ksh
#!/bin/ksh
# @(#) File synchronization across hosts using rsync
#Description :
#
# Created : 4 September 2003
# Author : Loris Serena
set -x
LPATH=/usr/local/bin
for i in 1 3 4 5 6 7 8
do
${LPATH}/rsync -azvv -e ${LPATH}/ssh --stats
2006 May 17
0
teardown not cleaning the BD?
Hi,
I am a bit confused, I have a few functionnal tests were I add/delete
records on top of the ones provided in the fixture and it seems like the
records are surviving the teardown. Isnt teardown supposed to be ran
after each test? So if I have something like:
def teardown
Client.delete_all
Concept.delete_all
Variation.delete_all
ClientVariation.delete_all
end
All the
2006 Jan 04
3
ActiveRecord delete_all With Sanitized Parameters?
Hi there
I''m trying to delete a set of active record objects based on certain
conditions. I''d like to do something like the following:
Context.delete_all("uri IN (?)", uris)
But delete_all doesn''t allow multiple arguments. Since I don''t have
the IDs for the objects I want to delete, I can''t use delete(id), and
have resorted to this,
2006 Jul 05
2
Serialized object behaves weird
Hi!
I got a class named EinsatzFilter which I serialized to session. Before
saving to session it works afterwards I keep getting the message:
"undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from
ActiveRecord::Base inherited class.
Code:
class EinsatzFilter
include ApplicationHelper
attr_reader :personen, :monat, :projekte, :kunde
2009 Jun 01
2
IMAP labeling sometimes not taken into account
Dear Dovecot list,
I recently switched from uw-imapd to dovecot to manage my huge mbox
files (about 1 GB). I now observe a very strange behavior, difficult to
reproduce reliably, which might be related to some misunderstanding on
my part on how either dovecot works or imap labeling works.
What I call "labeling" is the fact of marking some e-mail, in my e-mail
client (currently