refinerycms - rails rest routes with multiple params -
i use refinery cms blog module create simple blog, try customize archive section, want add 1 more param archive link, default route archive looks like:
blog_archive_posts /blog/archive/:year(/:month)(.:format) now question how can call in rails , how can provide params blog_archive_posts_path?
try
<%= link_to "archive #{year}/#{month}", blog_archive_posts_path(year: @year, month: @month) %> where @year , @month defined in controller appropriately
Comments
Post a Comment