similar to: Data relationships for e-commerce: users, orders, addresses

Displaying 20 results from an estimated 2000 matches similar to: "Data relationships for e-commerce: users, orders, addresses"

2010 May 10
7
NilClass passed to partial view
Hi, I have a simple program that tries to do something really basic. First, I have a company Model : ------------------------------------- class Company < ActiveRecord::Base has_one :billingAddress, :foreign_key=>"id", :class_name=>"Address" end Then I have the address Model : -------------------------------------- class Address< ActiveRecord::Base belongs_to
2006 Apr 04
4
Aggregating two objects of the same type
I would like to have a customer that has references to two addresses, a billing address and a shipping address. In a non-rails environment I would have two keys in the customers table, billing_address_id and shipping_address_id to reference the addresses. It appears that ActiveRecord expects the parent id to reside in the child table, regardless of whether the relationship is one-to-one or
2006 Jun 06
1
Please Help with single table inheritance relationships
I''ve been searching the web, wikis, and more, and I haven''t turned up examples of how to have multiple entities in a single-table inheritance related to anything. I have an addresses table, but multiple entities can have Addresses: both Person (which has 2 addresses) and Retailer. I''ve been told that I need to use single-table inheritance, and this was my attempt:
2006 Jun 03
8
confused about ActiveRecord relationships
I am very confused about where to put the belongs_to and the has_one (and other relationship identifiers). I have read the RDoc and the agile book many times about this and I think i still see it backwards. Let me outline my app so you have an understanding... I have 2 tables: Schools { id, school_name, address_id } and Addresses { street1, street2, city, state, zip, country } *** this
2006 Apr 08
2
one-to-one relationship confusion
Hello, I posted a similar email, earlier in the week, but I still must not be getting it. I have a customer that aggregates two addresses; a shipping address and a billing address. Addresses can also be referenced by other objects in a similar way, so I would really like to avoid putting the keys referencing the customer or other objects in the addresses table. Addresses are exclusively
2006 Aug 06
2
assert_difference gives undefined method error in unit tests
Hi there Am hitting undefined method errors for ''assert_difference'' in my unit tests under Rails 1.1.4 What could I be missing? Richard Sandilands
2006 Jul 21
3
Credit card processing through Australian gateways (eway etc)
Hi there Has anyone out there embarked on credit card processing in a Rails app through Australian gateways such as eway? I''m aware of Payment and ActiveMerchant, but neither support Australian gateways. It''s a little beyond me right now to hack these to work with eway. Any clues would be appreciated here. Richard Sandilands
2006 Jun 12
2
Validating a non-object attribute in a form via checkbox?
Hi there A user can place an ad with various attributes via a form; however, I want the user to check a box signifying that they''ve read the terms and conditions for use of the site. So the ''terms'' is not an attribute of the Advertisement model. I could check that the user has ticked the box in my controller but would like to bundle this up with the validation
2005 Sep 29
0
Table relationships with single table inheritance
Hi, How do I relate a table to another when one of the models uses single table inheritance? Will this even work? This is the specific problem I am having: There''s an "Address" model with "ShippingAddress" and "BillingAddress" as subclasses. It looks like this: class Address < ActiveRecord::Base End class ShippingAddress < Address has_one :order
2006 Jul 25
2
Shovel/TextDrive error: missing SSHAgent.socket
Hi there When running the initial ''rake remote:exec ACTION=setup_lighty'' command I get this error: ''No such file or directory - /tmp/501/nl.uu.phil.SSHAgent.socket'' Any clues would be appreciated. Richard Sandilands
2006 Nov 04
0
Check_box woes
I have a User model and an Address model. A user has_many addresses, and an address belongs_to a user. An address object for a user could be a billing, shipping or marketing address. The way I''m tracking this is via the user attributes: billing_adress_id, marketing_address_id and shipping_address_id in the user table, which holds the relevant address id. But in my form that allows a
2009 Jun 24
1
accepts_nested_attributes_for :reject_if issue
I have the following models: class Order < ActiveRecord::Base belongs_to :billing_address belongs_to :shipping_address accepts_nested_attributes_for :billing_address accepts_nested_attributes_for :shipping_address, :reject_if => proc { |attributes| attributes[''has_shipping_address''] != ''1'' } def after_initialize self.build_billing_address
2007 Feb 19
1
hosts allow on smb.conf
Hi, I have some query about the samba security, we are trying to setup remote map drive for vpn client, since this kind of client connection which using different IP address, the only way we can do is to set 'hosts allow' to nothing. We just want to know if this change is risky or not, our samba was setup as a DC, and client computers already join to Linux Domain. The VPN protocol
2006 Feb 24
4
Problem having two belongs_to of the same class type
I have a Shipment class that is used to ship packages between Branches. However, when I try to have two belongs_to in Shipment called shipped_to and shipped_from I can''t seem to make it work. I can get it to display the form properly but when I select the branches and click save I get the following error... "Branch expected, got String" Any ideas? I have added some code
2006 Apr 10
3
How to validate optional fieldset which becomes mandatory?
Hi, I am posting here because a re-read of my ''Agile'' book and quick google around didn''t give me any obvious clues, but I apologise if this has already been asked and answered before... I have an ''invoice address'' fieldset in a form which is entirely optional, however, should the user fill any one of the fields then they effectively all become
2006 Jun 07
0
Call for contributors to create a COMMERCE WIKI PAGE
COMMUNITY NEEDS A COMMERCE HOWTO Many people are asking about the topic of collecting credit card payments and finding a provider. I need to do this for my business, so I propose we make it as clear as possible for people to get started. LOCATION http://wiki.rubyonrails.com/rails/pages/HowToDoACommerceSite WHAT IT COULD CONTAIN The page could contain information and procedures to: * set up
2018 Sep 29
0
Step-by-Step Tutorial: How to Setup Your Own e-Commerce Online Store using WooCommerce 3.4.5, Wordpress 4.9.8, and CentOS 1805 (LAMP) in Amazon AWS Cloud
On Sep 28, 2018, at 20:08, Turritopsis Dohrnii Teo En Ming <turritopsis.dohrnii at teo-en-ming.com> wrote: > > Good morning from Singapore, > > > You can read my step-by-step tutorial on How to Setup Your Own e-Commerce Online Store using WooCommerce 3.4.5, Wordpress 4.9.8, and CentOS 1805 (LAMP) in Amazon AWS Cloud at any one of my two redundant blogs. My blogs were
2018 Oct 01
1
Step-by-Step Tutorial: How to Setup Your Own e-Commerce Online Store using WooCommerce 3.4.5, Wordpress 4.9.8, and CentOS 1805 (LAMP) in Amazon AWS Cloud
Hi Jonathan, Configuring SELinux is somewhat complicated, so I would usually set SELinux mode to permissive. ________________________________ From: CentOS <centos-bounces at centos.org> on behalf of Jonathan Billings <billings at negate.org> Sent: Saturday, September 29, 2018 7:48 PM To: CentOS mailing list Subject: Re: [CentOS] Step-by-Step Tutorial: How to Setup Your Own
2006 Aug 02
0
Update to e-commerce e-book
I have just released the first revision since the initial release of The Money Train, Building e-commerce sites using Ruby on Rails. It is available for purchase now at http://www.agilewebdevelopment.com/ book. Here''s a list of major changes since the initial release: - Added content to Gift Certificates chapter about legal and accounting details. - Added product options section.
2006 Mar 16
0
Commerce Server 2002
Was wondering if anyone knows if Ruby on Rails will run on Microsoft Commerce Server 2002? -- Posted via http://www.ruby-forum.com/.