Joined September 2012
·

Paulo McNally

Managua, Nicaragua
·
·
·

Change :error to 'error' and others

module ApplicationHelper
  def custom_bootstrap_flash
    flash_messages = []
    flash.each do |type, message|
      type = 'success' if type == 'notice'
      type = 'error'   if type == 'alert'
      puts type

      text = "<script>toastr.#{type}('#{message}');</script>"
      flash_messages << text.html_safe if message
    end
    flash_messages.join("\n").html_safe
  end
end

I added galleryModalViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; to center, else no move to x or y

Achievements
149 Karma
0 Total ProTip Views