Sha256: 13d8c06e3f6b46e292812ad794a71a9c5bd5bcccdc400bfc52ec37d6b0144d08
Contents?: true
Size: 708 Bytes
Versions: 7
Compression:
Stored size: 708 Bytes
Contents
- flash[:group] = :general if flash[:group].blank? - if flash[:group] == group - [:notice, :warning, :error, :info].each do |flash_type| - color = nil - color = "success" if flash_type == :notice - color = "danger" if flash_type == :error - color = "info" if flash_type == :info - color = "warning" if flash_type == :warning - if flash[flash_type] %div{ class: (color ? "alert alert-#{color}" : "alert") } = flash[flash_type] - resource = nil unless resource - if resource && resource.errors.any? .alert.alert-danger - if resource.errors.any? %ul - resource.errors.full_messages.each do |msg| %li = msg
Version data entries
7 entries across 7 versions & 1 rubygems