🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

phcdevworks_notifications

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phcdevworks_notifications

4.0.1
Rubygems
Version published
Maintainers
1
Created
Source

PHCDevworks Notifications for Rails 7 (Form Validation & Notification Engine)

Say goodbye to clunky, confusing alerts and form validation notifications on your website! PHCDevworks offers easy-to-use Rails 7 helper engine and partial views that can help you implement clear, concise, and user-friendly alerts.

  • Easily add alert and form validation helpers to your Ruby on Rails project.
  • Set up in seconds with just one line of code in the application_helper file.
  • Keep your Rails projects manageable, tidy, and secure while saving time.

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 %>

Status

Gem Version Publish to Github.com Publish to Rubygems.org

FAQs

Package last updated on 27 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

OSZAR »