ruby on rails - How to include multiple resources in a tag? -
how can use tags when user clicks on tag takes him new page lists out posts tag in (in other words not 1 resource includes resources)?
i played around creating tags scaffold, creates tags index, started getting error after error , i'm not sure if best route ;)
routes.rb
'tags/:tag', to: 'tags#index' resources :habits resources :goals resources :valuations resources :quantifieds resources :results
if route solving problem through creating tags_controller can offer me advice on can make work? or should work application controller , use partials did creating sidebar?
i followed along episode start: http://railscasts.com/episodes/382-tagging
thank time!
Comments
Post a Comment