Project

General

Profile

Bug #690 ยป architecture_selected-find_by_name.patch

Alexander Rusa, 02/25/2011 04:36 AM

View differences:

app/controllers/hosts_controller.rb
def ajax_methods
return head(:method_not_allowed) unless request.xhr?
@host = Host.find(params[:id]) unless params[:id].empty?
@host = Host.find_by_name(params[:id]) unless params[:id].empty?
end
def load_vars_for_ajax
    (1-1/1)