search for: taxgroup

Displaying 2 results from an estimated 2 matches for "taxgroup".

2006 Apr 16
5
Newbie Problems with pluralization
...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__) + ''/../test_helper'' class TaxGroupTest < Test::Unit::TestCase fixtures :taxes, :tax_groups, :taxes_tax_groups # Replace this with your real tests. def setup @taxgroup = TaxGroup.find(1) end # Replace this with your real tests. def test_create assert_equal 1, @taxgroup.id assert_equal "Ontario",...
2006 Apr 25
0
How to manage one to many within application.
...ubmit_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 = TaxGroup.find(...