Sha256: 615b159ae9812cbdfaaa1f3414d61f670af2e87a9f55d231b0fb55f6fc14dfc5

Contents?: true

Size: 351 Bytes

Versions: 37

Compression:

Stored size: 351 Bytes

Contents

module DeviseHelper
  def devise_error_messages!
    messages = resource.errors.full_messages.join('<br />').html_safe
    if messages.present?
    	messages = content_tag(:div, 'x', :class => 'close', 'data-dismiss' => 'alert') + messages
    	content_tag(:div, messages, :class => "alert alert-error flash", 'data-alert' => 'alert')
  	end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.11 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.10 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.9 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.8 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.7 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.6 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.5 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.4 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.3 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.2 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.1 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre app/helpers/devise_helper.rb
artfully_ose-1.1.0 app/helpers/devise_helper.rb
artfully_ose-1.1.0.rc2 app/helpers/devise_helper.rb
artfully_ose-1.1.0.rc1 app/helpers/devise_helper.rb
artfully_ose-1.0.0.rc4 app/helpers/devise_helper.rb
artfully_ose-1.0.0.rc3 app/helpers/devise_helper.rb