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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -