×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: RPG
Posted by: Bartosz Walecki
Added: Sep 30, 2017 12:51 PM
Views: 3
Tags: no tags
  1. direct :current_users do
  2.   { action: "index", controller: "users", active: true }
  3. end
  4.  
  5. <%= link_to "Current users", current_users_path %> #=> <a href="/users?active=true">Current users</a>