Displaying 20 results from an estimated 500 matches similar to: "Integrating with Legacy Databases"
2006 May 11
3
Setting cookie value in test
In the initial version of my application I am just going to require
cookies - down the road _considering_ changing that and providing
something that works without.
Anyway, this is somewhat of a two part question
1. Does this approach make sense or is there a better way typically used?
Just have a before_filter in my application.rb to verify that the
:_session_id cookie is present. If it
2014 Apr 02
1
AD + smbd?
Stupid question # 885:
Can Samba 4.1 be both AD server and smb server?
Some recent updates on my server broke a bunch of stuff. Samba was among
them.
I have managed to recover the AD server, but the smb server refuses to
take control. Whenever I run the 'smbclient -L localhost -U%', I get all
the correct messages, but no workgroup master.
Domain=[OZCO] os=[Unix] Server=[Samba 4.1.2}
2013 Sep 26
2
Login Problem
Hello All,
I am getting a problem while login for inactive users.
While login I am getting -
Processing by Devise::SessionsController#new as HTML
User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 2
LIMIT 1
Redirected to http://localhost:3000/
Filter chain halted as :require_no_authentication rendered or redirected.
Inactive users
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
2009 Sep 23
5
Overriding AR read/write_attribute - Overridden write_attribute Is Never Called
Could someone explain this?
#config/initializers/ar_attributes.rb
module ActiveRecord
module AttributeMethods
alias_method :ar_read_attribute, :read_attribute
def read_attribute(attr_name)
p "read_override"
ar_read_attribute(attr_name)
end
alias_method :ar_write_attribute, :write_attribute
def write_attribute(attr_name, value)
2011 Mar 11
1
Using dovecot with wordpress/phpass passwords?
Good afternoon,
I am trying to setup dovecot to authenticate using the userdata from wordpress.
It's being a bit mor difficult than I thought. This is the relevant
part of the dovecot-sql.conf
default_pass_scheme = CRYPT
password_query = SELECT user_pass AS password FROM wp_users WHERE
user_email='%u';
user_query = SELECT 501 as uid, 501 as gid,'maildir:storage=51200' as
2015 Jun 19
2
Samba rebind user@email.com to user_email.com
Hello List,
I'm dealing with the following issue here:
https://forum.zentyal.org/index.php?topic=25300.0
Although it starts with OpenChange, it ends with Samba4 so I very much hope that somebody on this list can help me out.
Basically I try to authenticate users through the Outlook autoconfigurator using RPC-OVER-HTTP to a samba server. The problem is that in Samba4/LDAP I cannot have
2008 Mar 19
3
[LLVMdev] Proposal for GSoC project for improving llvm-test testsuite
Am Mittwoch, den 19.03.2008, 14:49 +0100 schrieb Holger Schurig:
> > Just my two cents. From time to time I'm testing LLVM via
> > compiling & running such big beasts as Qt and Mozilla. Also,
> > at 2.0 time I tried to compile & test bunch of software from
> > KDE and many others.
>
> I tried to compile the 3D game engine "darkplaces" with
2006 May 03
1
nil.strip error While trying to post xml data over https.
I am trying to subit some xml data over https to access an API. My code
so far seems to generate a very non-helpful error in the guts of the
net/http library. This code produces a NoMethodError for nil.strip"
require ''net/http''
require ''net/https''
require ''uri''
url =
2006 Apr 12
2
Collection has next question
Hi,
I know about pagination but dont want to use that option if it all
possible.
How in a collection of posts can i check if the there is a next item in
the collection and then add that an object.
For instance:
//Returns all the posts into a collection called posts
@posts = Post.find(:all)
//Returns a specific post based on an id
@post = Post.find(params[:id])
//How can i return the next
2011 Mar 08
2
Comment creer un formulaire maitre-detail
Salut a tous!
Est-il possible de creer un formulaire maitre-detail?
J''ai besoin de creer une fenetre ou l''utilisateur rentre un commande et
les differents produits associaes a cette commande.
Puis-je afficher le tout dans une seule page? Faut-il un minimum de 2
pages
Comment visualiser le detail de la commande avec tous les produits
commandes, et l''imprimer si
2006 Jul 14
7
Form validation - keepin correct fields displayed on refresh
All,
I''m finally doing my first real form in Rails - the model object that
I''m entering information for has 8 validations so far.
If I type in good values for all the fields but one, I get the pretty
validation, and the nice field highlighting, but all of the fields are
cleared, forcing me to retype all of that info. That is a big drag.
Is there a standard way to get the
2008 Mar 19
0
[LLVMdev] Proposal for GSoC project for improving llvm-test testsuite
> "Didn't work" means... what? Compilation failed? Program doesn't work?
> Either way: what mesages do you get?
The graphical screen was just blank. darkplaces emits some log messages as usual. But step by step...
Used LLVM-GCC
-------------
The used llvm-gcc, when run with "llmv-gcc --version" shows "llvm-gcc (GCC) 4.2.1 (Based on Apple Inc. build 5546)
2006 Mar 08
4
Sending Documents via ActionMailer
Hi,
I''ve been trying to set up to send already generated PDF''s via the
ActionMailer class however it dosn''t seem to send the full file. So when
I try to load the file after being sent it via email it dosn''t because
it is corrupt. When I choose to send HTML instead it sends fine but it
dosn''t work with Word Documents either
Do I need to do anything
2005 Dec 14
9
Passing quantity in a shopping cart
I am using this line on my index.rhtml page to capture the quantity
required of a particular item for a basic shopping cart app:
<%= text_field ''line_item'', ''quantity'', {:size=>3} %> </td>
but my next screen (a cart screen) doesn''t reflect what was entered in
that text field when the item is added to the cart. That is,
2006 Feb 06
7
Delaying initialization of associations until first access
Guys,
Say I have the following:
-----
class Person < ActiveRecord::Base
has_one :house
end
class House < ActiveRecord::Base
belongs_to :person
attr_accessor :color
end
-----
Then I have the following code:
-----
john = Person.new
john.house.color = "Blue"
john.save
-----
What I would like to have happen, is that on first call to john.house, if
house hadn''t been
2010 Jul 19
3
ActiveRecord override
Would really appreciate it if someone could tell me why this is happening:
I override ssn method of AR class so I can encrypt/decrypt to/from the db:
class Person < ActiveRecord::Base
def ssn=(value)
write_attribute(:borrower_ssn, Crypto.encrypt(self.encryption_key,
value))
write_attribute(:borrower_ssn_final_four, value[5,4])
end
def ssn
# this begin - rescue can be
2007 Nov 26
6
Model setters, override attribute=(attribute)?
Hi,
I have a model similar Basket shown below. If customer_type is set
then it should also set customer to nil. Likewise, if I set customer,
it should inspect the customer_type attached to the customer and set
accordingly within Basket. However implementing it as below doesn''t
seem to work.
Am I missing a better way to achieve this? I had also considered using
a before_save
2006 Aug 12
10
adding extra variable to a class, how to access it?
somple question here but pretty confusing on my side. i have a model
towns that is mapped to my towns table. can i add an extra variable to
the class and access it in my view? basicall what i am trying to do is
return a list of towns, and next to each town, display a total number of
what i have in each town.
ive tried both attr_reader and @total but no avail.
here is my view
<% for
2006 Jul 12
2
Weird problem. How to tell if an attribute has changed? Please help.
How do you tell if an foreign key attribute has been changed?
For example, lets say you have a model with attribute table_a_id.
Would you do this?
def table_a_id=(value)
if value != table_a_id
@table_a_changed = true
write_attribute ''table_a_id'', value
end
end
def table_a=(value)
if value != table_a
@table_a_changed = true