You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could someone in-the-know please add to the documentation the proper way to add helper methods to views.
There are many proposed solutions out there on SO and elsewhere, none of which seem to work reliably in different cases and across AA versions.
For instance, let's say I want to add a method link_to_if_authorized to use in index and show pages. What is the right way to do this? I have tried a number of methods.
index do
column :slug do |plan|
link_to_if_authorized [:edit, plan], plan.slug, edit_admin_plan_path(plan)
end
The text was updated successfully, but these errors were encountered:
Could someone in-the-know please add to the documentation the proper way to add helper methods to views.
There are many proposed solutions out there on SO and elsewhere, none of which seem to work reliably in different cases and across AA versions.
For instance, let's say I want to add a method link_to_if_authorized to use in index and show pages. What is the right way to do this? I have tried a number of methods.
The text was updated successfully, but these errors were encountered: