- if @user
  - @title = t('.update_email_title')
  - if @user.email =~ /change-your-email\+[0-9]+@neighbor\.ly/
    - @user.email = nil
- else
  - @title = t('.site_title')

= content_for :title, @title

= render 'layouts/flash'
= render 'devise/shared/header'

.row
  .large-7.large-centered.columns
    .login-box.animated.fadeIn
      h3.text-center
        - if @user
          | Howdy, #{@user.display_name}.
          br/
          br/
          |We need some info - please 
          i add your email address
          |.
        - else
          = @title
      .separator
      .clearfix

      .large-12.large-centered.columns
        - if @user
          - url = update_email_user_path(@user)
          - method = 'put'
          - submit_text = t('.submit')
        - else
          - @user = User.new
          - url = sign_up_path
          - method = 'post'
          - submit_text = t('.create')

        = form_for @user, url: url, html: { method: method } do |f|
          = render 'devise/shared/alert' if @user.persisted?
          p
            = f.label :email
            = f.text_field :email, required: true

          = f.submit submit_text, class: [:button, :success, 'large-12', 'columns', 'large-centered']
      .clearfix

- if @user
  - @title = t('.update_email_title')
  - if @user.email =~ /change-your-email\+[0-9]+@neighbor\.ly/
    - @user.email = nil
- else
  - @title = t('.site_title')

= content_for :title, @title

= flash_messages
= render 'devise/shared/header'

.row
  .large-7.large-centered.columns
    .login-box.animated.fadeIn
      h3.text-center
        - if @user
          | Howdy, #{@user.display_name}.
          br/
          br/
          |We need some info - please 
          i add your email address
          |.
        - else
          = @title
      .separator
      .clearfix

      .large-12.large-centered.columns
        - if @user
          - url = update_email_user_path(@user)
          - method = 'put'
          - submit_text = t('.submit')
        - else
          - @user = User.new
          - url = sign_up_path
          - method = 'post'
          - submit_text = t('.create')

        = form_for @user, url: url, html: { method: method } do |f|
          = render 'devise/shared/alert' if @user.persisted?
          p
            = f.label :email
            = f.text_field :email, required: true

          = f.submit submit_text, class: [:button, :success, 'large-12', 'columns', 'large-centered']
      .clearfix

Use flash_messages helper in custom view
Use flash_messages helper in custom view

'layouts/flash' does not exist anymore. It was replaced by this helper.

raksonibs/raimcrowd,jinutm/silverme,jinutm/silveralms.com,gustavoguichard/neighborly,jinutm/silverpro,MicroPasts/micropasts-crowdfunding,raksonibs/raimcrowd,MicroPasts/micropasts-crowdfunding,jinutm/silverprod,jinutm/silverpro,jinutm/silveralms.com,raksonibs/raimcrowd,jinutm/silverme,MicroPasts/micropasts-crowdfunding,MicroPasts/micropasts-crowdfunding,jinutm/silverprod,jinutm/silverme,jinutm/silverprod,gustavoguichard/neighborly,raksonibs/raimcrowd,gustavoguichard/neighborly,jinutm/silverpro,jinutm/silveralms.com