Sha256: 57b8dccd1008e242d352eb828a74d6e292507ad349985ca749c710cd8e7dab3d

Contents?: true

Size: 1.13 KB

Versions: 24

Compression:

Stored size: 1.13 KB

Contents

# Tybo

A custom admin engine for Ruby on Rails

  

## Installation

Add this line to your application's Gemfile:

  

```ruby

gem  'tybo'

```

  

And

```bash

$ bundle install

```

Then execute the generator

```bash

$ bundle exec rails g tybo_install

```

## Policy
add your policy logic in ApplicationController eg:
```
  rescue_from ActionPolicy::Unauthorized, with: :not_authorized


  def not_authorized
    flash[:alert] = I18n.t('bo.unauthorized')
    redirect_to(request.referrer || root_path)
  end
```

## Customize

**Update images**: change image url in `config/initializer/tybo.rb`
```
  config.logo_url = 'your_logo.png'
  config.nav_logo_url = 'your_nav_logo.png'
  config.cover_url = 'your_cover.png'
```

**Customize colors**: Change the `tybo` colors  class in `tailwind.config.js`, 
you can use https://uicolors.app/create to generate complete palette
## Customize trix editor
https://gist.github.com/dhairyagabha/034f5baefb054b7b960438aaf3d88341
## Contributing

Contribution directions go here.

  

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
tybo-0.4.1 README.md
tybo-0.4.0 README.md
tybo-0.3.26 README.md
tybo-0.3.24 README.md
tybo-0.3.23 README.md
tybo-0.3.22 README.md
tybo-0.3.21 README.md
tybo-0.3.20 README.md
tybo-0.3.19 README.md
tybo-0.3.18 README.md
tybo-0.3.17 README.md
tybo-0.3.16 README.md
tybo-0.3.15 README.md
tybo-0.3.14 README.md
tybo-0.3.13 README.md
tybo-0.3.12 README.md
tybo-0.3.11 README.md
tybo-0.3.10 README.md
tybo-0.3.9 README.md
tybo-0.3.8 README.md