Memang desain table dimasalah saya redundant, tapi ini cuma test case yang saya coba selesaikan.
Masalah saya kemarin mungkin banyakj ditemui sama rails-noob macam saya :) Solusinya jadi gini : class Address < ActiveRecord::Base has_one :province belongs_to :user ... class Province < ActiveRecord::Base belongs_to :country belongs_to :address ... class User < ActiveRecord::Base has_one :address, :dependent => :destroy ... class UserController < ApplicationController ... def create @user = User.new(params[:user]) @address = @user.create_address(params[:address]) if @user.save redirect_to :action => 'list' else render :action => 'new' end end ... sekarang masalahnya kalo mau update gmn? :( tolongin yah