Skip to content

Latest commit

 

History

History
82 lines (58 loc) · 1.6 KB

README.md

File metadata and controls

82 lines (58 loc) · 1.6 KB

GetLinkList

Information

thumb

getlinklist will be able to easily display a linked list of routing only of GET on view.

You can hide in unnecessary get url.

Getting start

Add to this in Gemfile

gem ‘get_link_list’

Run bundle install command

bundle install

open app/assets/javascripts/application.js
write this

//= require get_link_list

open app/assets/stylesheets/application.css
write this

  *= require get_link_list

open app/views/layouts/application.html.erb add helper in top of body tag

  <%= render_get_links if !Rails.env.production? %>

setting for ignore

All GET link does not need to be displayed in the view.
For example, mailer links are GET, but there is no need to display.

You can set the controllers and actions that do not appear in the list.

create config file

bundle exec rails g get_link_list:config

ignore controller

Open config/initializers/get_link_list.rb

config.ignore_controller = ["controller_name1" : "", "controller_name2" : ""]

ignore controller action

config.ignore_controller = ["controller_name1" : ["action_name1","action_name2"]]

Expand assets

If you want to customize js and css.
GetLinkList Gem expands assets in your rails application.

Run this

bundle exec rails g get_link_list:assets

and then

create  app/assets/javascripts/get_link_list/index.js.coffee
create  app/assets/stylesheets/get_link_list/index.css.scss