takafumir / rails_amp

RailsAmp is a Ruby on Rails plugin for AMP(Accelerated Mobile Pages).
MIT License
65 stars 26 forks source link

How to target a controller inside a directory? #9

Closed marioperezpereira closed 6 years ago

marioperezpereira commented 6 years ago

Hi! I wanted to know how can I target inside rails_amp.yml to a controller inside a directory.

E.G. I want to target both controllers/posts_controller#show and controller/blog/posts_controller#show. I have tried the following but it seems not to be working:


targets:
  posts: show
  blog_posts: show 
marioperezpereira commented 6 years ago

ok found it:

targets:
  posts: show
  "blog/posts": show