Skip to content

Instantly share code, notes, and snippets.

@buoyant
Created December 3, 2012 16:57
Show Gist options
  • Save buoyant/4196309 to your computer and use it in GitHub Desktop.
Save buoyant/4196309 to your computer and use it in GitHub Desktop.
controller file of registration form
def dynamic_districts
@districts = District.find_all_by_state_id(params[:id])
respond_to do |format|
format.js
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment