---
title: "Discussion on \"Refactoring my Ruby on Rails front-end with ViewComponent\" | Hashnode"
description: "Discussion on \"Refactoring my Ruby on Rails front-end with ViewComponent\". Content of this post\n\nIntroduction\nInstalling the ViewComponent Gem\nCreating components\nComponent methods\nTesting with Rspec\nFinal considerations\n\nIntroduction\nSome time ago i created a personal project using Ruby on Rails, it's a full-stack monolith..."
url: "https://hashnode.com/posts/refactoring-my-ruby-on-rails-front-end-with-viewcomponent/613bcc451821961e2551d72e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Refactoring my Ruby on Rails front-end with ViewComponent](https://anchietajunior.hashnode.dev/refactoring-my-ruby-on-rails-front-end-with-viewcomponent?utm_source=hashnode&utm_medium=feed)

Content of this post Introduction Installing the ViewComponent Gem Creating components Component methods Testing with Rspec Final considerations Introduction Some time ago i created a personal project using Ruby on Rails, it's a full-stack monolith...

Sep 10, 2021 · 4 min read · anchietajunior.hashnode.dev  
Read the article

-   [#ruby](https://hashnode.com/tag/ruby)
-   [#ruby-on-rails](https://hashnode.com/tag/ruby-on-rails)

## Written by

[Anchieta Júnior](https://hashnode.com/@anchietajunior)

@anchietajunior · Aracaju, Brazil

  
[View profile](https://hashnode.com/@anchietajunior)

Senior Software Engineer | Ruby and Elixir

I am a developer who likes to understand and build things.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
