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.3.0.pre4 app/helpers/devise_helper.rb
artfully_ose-1.3.0.pre3 app/helpers/devise_helper.rb
artfully_ose-1.3.0.pre2 app/helpers/devise_helper.rb
artfully_ose-1.3.0.pre1 app/helpers/devise_helper.rb
artfully_ose-1.2.0 app/helpers/devise_helper.rb
artfully_ose-1.2.0.beta.1 app/helpers/devise_helper.rb
artfully_ose-1.2.0.alpha.2 app/helpers/devise_helper.rb
artfully_ose-1.2.0.alpha.1 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.27 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.26 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.24 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.23 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.21 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.20 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.19 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.18 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.17 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.16 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.15 app/helpers/devise_helper.rb
artfully_ose-1.2.0.pre.12 app/helpers/devise_helper.rb