-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to call filters with more than 2 arguments #33
Comments
With static url we can write:
but how about named routes (object routes) i don't know |
Hi @sdilshod, Assume that I have a resource called
Then in liquid template:
and the
Create new file :
Hope this help! |
Sample code available here. |
Thank you @radin-reth ! I made something like this for routes without additional params. Can you show example for route helpers with params? Is it possible for example edit_article_path(@Article)? Now i have for this type routes corresponding methods inside drop class, but its little uncomfortably.
|
It's a bit tricky @sdilshod , Hope it helps! |
ок, thank you @radin-reth |
Hello!
In rails i can write
link_to 'this is a link', root_url, :class => 'css-class'
My question is how can i call link_to filter inside liquid template?
Thanks
The text was updated successfully, but these errors were encountered: