Skip to content

Instantly share code, notes, and snippets.

View scalone's full-sized avatar

Thiago Scalone scalone

  • CloudWalk
  • São Paulo / SP
View GitHub Profile

Quality Analyst Test

1. Introduction

This is a test created to a job position interview.

For this exercise, we advise you to:

  • We would recomend work with linux/Mac;
  • All documents creates on this process should be shared with the e-mail thiago@cloudwalk.io, we would recommend google docs for it;
  • Install Ruby;
ActiveAdmin.register CityNeighbourhood do
member_action :change_neighbourhoods, :method => :get do
@neighbourhoods = City.find_by_id(params[:city_id]).try(:neighbourhoods)
render :text => view_context.options_from_collection_for_select(@neighbourhoods, :id, :name)
end
#...
form do |f|
f.input :city, input_html: {
onchange: remote_get("change_neighbourhoods", 'city_id', :neighbourhood_id)
}