How to implement dependent dropdowns in Rails 4 with an unobtrusive jQuery script ? class SpecializationType < ActiveRecord::Base # FIELDS # RELATIONS has_many :specializations # TRIGGERS # VALIDATIONS validates :name, :presence => true validates :description, :presence => true # SCOPES # OTHER def to_s name end end class Specialization < ActiveRecord::Base # FIELDS # RELATIONS belongs_to :specialization_type has_and_belongs_to_many :users # TRIGGERS # VALIDATIONS validates :name, :presence => true validates :description, :presence => true validates :specialization_type, :presence => true # SCOPES # OTHER def to_s name end end in views <%= form_tag users_path, {:method => :get, :class => "users_search_form"} do %> <...
I love Ruby on rails.Ruby on Rails Coding is not my job its my passion ..