Events, event registrants, event tickets and event products.
This requires Rails 6+ and Twitter Bootstrap 4 and just works with Devise.
Please first install the effective_datatables gem.
Please download and install the Twitter Bootstrap4
Add to your Gemfile:
gem 'haml-rails' # or try using gem 'hamlit-rails' gem 'effective_events'
Run the bundle command to install it:
Then run the generator:
rails generate effective_events:install
The generator will install an initializer which describes all configuration options and creates a database migration.
If you want to tweak the table names, manually adjust both the configuration file and the migration now.
Then migrate the database:
Use the following datatables to display to your user the events:
%h2 Events - datatable = EffectiveEventsDatatable.new
Add a link to the admin menu: ```haml - if can? :admin, :effective_events - if can? :index, Effective::Event = nav_link_to 'Events', effective_events.admin_events_path
All authorization checks are handled via the effective_resources gem found in the
The permissions you actually want to define are as follows (using CanCan):
can :index, Effective::Event if user.admin? can :manage, Effective::Event end
MIT License. Copyright Code and Effect Inc.
Run tests by:
- Fork it
- 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)
- Bonus points for test coverage
- Create new Pull Request