Git Product home page Git Product logo

devise-bootstrapped's Introduction

Devise Bootstrapped

This gem tries to give you a nicer place to start with your views for your Devise model when you're using Bootstrap 3.

You can find usage information below, but the gist of it is you'll run rails g devise:views:bootstrapped 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.

Installation

Add this line to your application's Gemfile:

gem 'devise-bootstrapped'

A Bootstrap v4 version is available if you use the bootstrap4 branch from github

gem 'devise-bootstrapped', github: 'king601/devise-bootstrapped', branch: 'bootstrap4'

And then execute:

$ bundle

Usage

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

rails generate devise:views:bootstrapped

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

Upgrading to Bootstrap v4

To upgrade to v4 you can force override the views, or you can modify each view's offsets to use the new syntax.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/king601/devise-bootstrapped. 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.

devise-bootstrapped's People

Contributors

afomera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

devise-bootstrapped's Issues

Kudos

Great idea for a gem! Love it!

Submit button classes

@afomera After using on a recent project (bootstrap4) I noticed a problem with the form submit buttons. The below code is from devise/registrations/new.html.erb:

<div class="form-group">
        <%= f.submit "Sign up", class: "btn btn-primary btn-block btn-lg" %>
</div>

This results in a light background button with light text, which changes to btn-primary only on hover. I thing the form-group should be form-control.

Thanks for a great product.

Deprecation issue: devise_error_messages will no longer work after next major release

Hey, I was fiddling with the devise-bootstrapped gem and came across with this deprecation warning in my Rails server output (as of v4.6.2) after generating the views:

DEPRECATION WARNING: [Devise] "DeviseHelper.devise_error_messages!" is deprecated and it will be removed in the next major version.

I guess I have to render partial: 'devise/shared/error_messages' for the error messages from this point on.

Screenshots

Hi,

Would be great if you can put some screenshots in README :)

Thanks.

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.