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

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -