Displaying 2 results from an estimated 2 matches for "tax_group".
Did you mean:
max_group
2006 Apr 16
5
Newbie Problems with pluralization
Hi,
I have a many to many relationship incorporating the following tables:
taxes --> taxes_tax_groups --> tax_groups
I have a model named tax with the following declaration:
has_and_belongs_to_many :tax_groups
and I have a model named tax_group with the following declaration:
has_and_belongs_to_many :taxes
I am attempting to run the following unit test:
require File.dirname(__FILE__) + &...
2006 Apr 25
0
How to manage one to many within application.
...t;
<%= submit_tag "Create" %>
<%= end_form_tag %>
<br>
<center><%= link_to ''Back'', :action => ''customer_list'' %><%=
session[:test]%></center>
<br>
#end customer new
#Controller
def customer_new
@tax_groups = TaxGroup.find(:all)
@states = State.find(:all)
@countries = Country.find(:all)
@terms = Term.find(:all)
@states = State.find(:all)
@countries = Country.find(:all)
@customer = Customer.new
session[:customer] = @customer
end
def customer_create
@tax_groups = Ta...