Skip to content

Instantly share code, notes, and snippets.

@wazery
Created September 19, 2017 12:19
Show Gist options
  • Save wazery/4f3a56fed806b46aa1c0e3392461e2cd to your computer and use it in GitHub Desktop.
Save wazery/4f3a56fed806b46aa1c0e3392461e2cd to your computer and use it in GitHub Desktop.
task1_steps

Task 1

The first thing every Rails developer tries when working on this task; is to find the app/views directory, but the ManageIQ team decided to split out the code base into smaller gems and components.

They created a new gem (Rails Engine) called 'manageiq-ui-classic', in which it contains everything related to the UI.

If you open the Gemfile, you will find line #172 :

manageiq_plugin "manageiq-ui-classic"

The mangeiq_plugin is defined in line #14, in which it adds the gems from the ManageIQ organization's GitHub account, when called.

So let's get into the steps of finishing this task.

Steps:

  1. Fork the manageiq_ui_classic gem, and now you can find the views under app/views
  2. Open the view app/views/catalog/_st_form.html.haml
  3. In line #11, you can find the constant that has the values
  4. That constant is defined in the main Rails app, so you can modify it there, and make sure to restart the server cause it will result in a runtime error

Thats it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment