Class: Blog::TagsController
- Inherits:
-
MainController
- Object
- MainController
- Blog::TagsController
- Defined in:
- lib/nexmo_developer/app/controllers/blog/tags_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
2 3 4 5 6 7 |
# File 'lib/nexmo_developer/app/controllers/blog/tags_controller.rb', line 2 def show @tag = params['slug'] blogposts = TagParser.fetch_blogposts_with_tag(params[:slug]) @blogposts = blogposts.map { |attributes| Blog::Blogpost.new attributes } end |