@ohadlevy I will change to a before_filter.

Regarding testing, these two methods are ajax requests to reload the edit host form.  It doesn't change anything in the database.  After the capybara integration branch is merged, I could add a test to check this.