Forms are stretched to take reasonable part of viewport. Maybe it is better to add class selector to change style as you wish using SCSS, but this approach fits for my project. Maybe someday I'll make it more flexible.
Gene.
##...so, now continue original Readme:
Here are some of the highlights:
- Devise views with Bootstrap 3.
- Used Bootstrap responsive columns.
- I18n Support.
WARNING: This gem copies lots of its code from devise-i18n-views gem.
Add this line to your application's Gemfile:
gem 'devise-bootstrap-views'
And then execute:
$ bundle
Add some minor css fix to your rails asset pipeline manifest
# SASS
*= require devise_bootstrap_views
# LESS
*= require devise_bootstrap_views_less
Then you need to install the required translations in your config/locales
. You can do this either manually (downloading them from devise-i18n-views/locales) or through the apposite generator devise:views:locale
, eg.
rails g devise:views:locale it
will generate config/locales/devise.views.it.yml
.
The devise:views:bootstrap_templates
generator will copy all views to your application, so you can modify the files as you wish:
rails g devise:views:bootstrap_templates
Sample Application can be found at this link - Devise Boostrap Views Application
- Fork it ( https://github.com/hisea/devise-bootstrap-views/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request