Project

General

Profile

« Previous | Next » 

Revision 53c61d6d

Added by Ohad Levy over 12 years ago

  • ID 53c61d6ddb5498d82aa46cba9fa1efb1f0679438

added parenthesis to avoid warnings on older Ruby

View differences:

app/controllers/config_templates_controller.rb
unless error_msgs.empty?
msg = "There was an error creating the PXE Default file: #{error_msgs.join(",")}"
respond_to do |format|
format.html { error msg and return redirect_to :back}
format.html { error(msg) and return redirect_to(:back)}
format.json { render :json => msg, :status => 500 and return }
end
end
app/controllers/hypervisors/guests_controller.rb
if (@guest.send(action) rescue false)
state = @guest.running? ? "running" : "stopped"
notice "#{@guest.name} is now #{state}"
redirect_to hypervisor_guests_path params[:hypervisor_id]
redirect_to hypervisor_guests_path(params[:hypervisor_id])
else
error "failed to #{action} #{@guest.name}"
redirect_to :back
app/helpers/application_helper.rb
end
def checked_icon condition
return image_tag "toggle_check.png" if condition
return image_tag("toggle_check.png") if condition
end
def searchable?

Also available in: Unified diff