Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Ruby
Posted by: Bartosz Walecki
Added: Sep 30, 2017 12:51 PM
Modified: Apr 11, 2019 10:40 AM
Views: 27
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>