No commit activity in last 3 years
No release in over 3 years
This gem generates nicer default views styled with Foundation so you have a bit of a better starting point for your app.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0.1
~> 13.4
git-cop
~> 3.0
~> 0.10
~> 12.3
~> 5.0
~> 3.8
~> 0.67

Runtime

~> 5.2.3, <= 6.0
> 4.0, < 6.0
 Project Readme

Table of Contents

  • Devise Foundationed
    • Prerequisites
    • Installation
    • Usage
    • Development
    • Contributing
    • License
    • Code of Conduct

Devise Foundationed

This gem tries to give you a nicer place to start with your views for your Devise model when you're using Foundation 6 (XY Grid).

You can find usage information below, but the gist of it is you'll run rails g devise:views:foundationed instead of the normal devise:views.

If you want to switch back to what Devise gives you no problem! Just remove the devise views folder and run the normal Devise generator command.

Prerequisites

  • This gem is meant to be run with Rails 6 which includes Webpacker.
  • You need to have Asset Pipeline and/or JS configured to include Foundation.

Installation

Add this line to your application's Gemfile:

gem 'devise-foundationed'

And then execute:

$ bundle

Or install it yourself as:

$ gem install devise-foundationed

Usage

To use the Foundation views generator you'll want to have Devise and Foundation installed per normal installation. When you have installed Devise and generated your user model you can copy over the views with:

rails generate devise:views:foundationed

If you've already generated the Devise views you can use the -f argument to force an override. That will erase any of the changes you've made!

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/posiczko/devise-foundationed. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Devise::Foundationed project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.