Displaying 1 result from an estimated 1 matches for "profession_id".
Did you mean:
professional_id
2007 Oct 05
1
Custom helpers for list of options?
...y, state, city, profession
... I read about the country_select helper.
Is better to have all those tables or use custom helpers? what the rails way?
Thanks.
For example : http://pastie.caboo.se/104092
# = Schema
# country_id integer
# city_id integer
# state_id integer
# profession_id integer
# category_id integer
# ......
class User < ActiveRecord::Base
belongs_to :country, :city, :state
belongs_to :profession, :category, :subcategory
end
=========== VS
# = Schema
# country :string
# city :string
# state :string
# profession :string
# category...