Dynamic dropdown in rails 4

i am new to rails, i want to know how to create a dynamic dropdown in rails 4,
i want a clear way to do that because i dumped with lot of javascript and ajax function but i am not able to get anything done.please help as soon as possible.