Rails 5 version: Rails view helpers making page headings, taglines, seo and title tags easier to manage and standardize view coding process. Rails 6 (active) version: https://rubygems.org/gems/phcdevworks_notifications


Keywords
bradpotts, phcdevworks, rails, rails-engine, rails-gem, rails-helper, rails-views, rails6, ruby, ruby-gem, ruby-on-rails, rubygem
License
MIT
Install
gem install phctitleseo -v 48.4.1

Documentation

PHCDevworks Notifications for Rails 6 (Form Validation & Notification Engine) Gem Version

PHCDevworks Notifications Rails 6 engine with helpers for alerts and form validation notifications.

  • Add alert and form validation helpers ruby on rails.
  • Setup in seconds with only one line of code in the application_helper file.
  • Save time and keep your rails projects manageable, tidy and secure.

Step 1 - Add PHCDevworks Notifications to your gemfile

gem 'phcdevworks_notifications'
bundle install

Step 2 - Load Helpers in the Application's Controller

Add the line of code below into your app/controllers/application_controller.rb (application's controller file).

helper PhcdevworksNotifications::Engine.helpers

How to Add Bootstrap 4 Notifications to Layouts

Add the line of code below to your app/views/layouts/application.rb

<%= render 'phcdevworks_notifications/bootstrap/notifications' %>

How to Add Bootstrap 4 Validations to your Form

Add the line of code below to your _form.rb file. Change @example_object to the same one on your form.

<%= render 'phcdevworks_notifications/bootstrap/validations', :object => @example_object %>