Coder Social home page Coder Social logo

Comments (4)

adriancuadros avatar adriancuadros commented on July 17, 2024

Hey Charlie,

I'm guessing this is a problem that is directly with foundation. Did you
include the js file they specify in:

http://foundation.zurb.com/docs/ ?

On Sun, Jun 9, 2013 at 6:37 PM, Charley Hine [email protected]:

They popup fine but the 'x' does not close them.

β€”
Reply to this email directly or view it on GitHubhttps://github.com//issues/34
.

Adrian Cuadros
Innku
(81) 83870544
Monterrey, Nuevo LeΓ³n

from foundation_rails_helper.

charleyhine avatar charleyhine commented on July 17, 2024

Ended up rolling my own for Foundation 4:

<%if flash[:success] %>
  <div data-alert class="alert-box success">
    <%= flash[:success] %>
    <a href="#" class="close">&times;</a>
  </div>
<% end %>

<% if flash[:alert] %>
  <div data-alert class="alert-box alert">
    <%= flash[:alert] %>
    <a href="#" class="close">&times;</a>
  </div>
<% end %>

<% if flash[:error] %>
  <div data-alert class="alert-box alert">
    <%= flash[:error] %>
    <a href="#" class="close">&times;</a>
  </div>
<% end %>

from foundation_rails_helper.

sgruhier avatar sgruhier commented on July 17, 2024

you can include FoundationRailsHelper::FlashHelper in your application_helper.rb

module ApplicationHelper
  include FoundationRailsHelper::FlashHelper
end

and just add something like this in your layout

  <div class="row flash">
    <div class="twelve columns">
      <%= display_flash_messages %>
    </div>
  </div>

and don't forget foundation JS

//= require foundation

from foundation_rails_helper.

dsandstrom avatar dsandstrom commented on July 17, 2024

Probably can close issue.

from foundation_rails_helper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.