No commit activity in last 3 years
No release in over 3 years
Provides a Rails 6 helper for CSS Naked Day.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

CSS Naked Day Rails

This gem provides a simple helper that tells you whether it is currently CSS Naked Day.

This has been tested with Rails 6 but should work for some older versions. I made this for my personal website in about 30 minutes so if my math is wrong or anything let me know, I'm not a timezone expert.

Installation

Add the gem to your Gemfile.

gem 'css_naked_day_rails'

Install the gem.

bundle

Usage

Inside your layouts where you are loading your stylesheets or JavaScript packs.

<%= stylesheet_pack_tag('application', media: 'all') if !css_naked_day? %>
<%= javascript_pack_tag 'application' if !css_naked_day? %>

If you want to add a message about CSS Naked Day to one of your views.

<% if css_naked_day? -%>
  <p>The website isn't broken, it's <%= link_to 'CSS Naked Day!', 'https://css-naked-day.github.io' %></p>
<% end -%>

References