Socket
Book a DemoInstallSign in
Socket

action_link

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

action_link

1.0.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

ActionLink is a Ruby gem that provides intuitive ViewComponents for CRUD resource link actions in Rails. It simplifies the process of creating common action links (show, edit, delete, etc.) with associated icons.

Usage

Here's an example of how to use the ActionLink gem in a Rails view:

# In Rails view
= render ActionLink::Show.new(url: [:admin, @post], current_user: current_user)

More Usage Examples

Here are some more examples of how to use the ActionLink gem in a Rails view:

# In Rails view
= render ActionLink::Edit.new(url: [:edit, @post], current_user: current_user)
= render ActionLink::Destroy.new(url: [:destroy, @post], current_user: current_user)
= render ActionLink::New.new(url: [:new, @post], current_user: current_user)

Installation

To install the ActionLink gem, add it to your application's Gemfile and run bundle install:

gem 'action_link'

Alternatively, you can install the gem manually by running:

gem install action_link

Development

To contribute to the development of the ActionLink gem, follow these steps:

  • Fork the repository on GitHub.
  • Clone your forked repository to your local machine.
  • Install the gem's dependencies by running bin/setup.
  • Run the tests to ensure everything is working correctly: rake test.
  • Make your changes and add tests for your changes.
  • Commit your changes and push them to your forked repository.
  • Create a pull request on GitHub with a description of your changes.

License

The ActionLink gem is available as open source under the terms of the MIT License.

The icons used in this gem are taken from the incredible iconmonstr.

FAQs

Package last updated on 11 May 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.