---
title: "Discussion on \"Alpine.js for Ruby on Rails Developers: Simplifying Frontend Development\" | Hashnode"
description: "Discussion on \"Alpine.js for Ruby on Rails Developers: Simplifying Frontend Development\". Simplify frontend development in Ruby on Rails with Alpine.js, a lightweight JavaScript framework that enhances interactivity without complexity"
url: "https://hashnode.com/posts/alpinejs-for-ruby-on-rails-developers-simplifying-frontend-development/66bdce2a4c00bb8e47b20640"
---

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

Discussion

# [Alpine.js for Ruby on Rails Developers: Simplifying Frontend Development](https://alexsinelnikov.blog/alpinejs-for-ruby-on-rails-developers-simplifying-frontend-development?utm_source=hashnode&utm_medium=feed)

Simplify frontend development in Ruby on Rails with Alpine.js, a lightweight JavaScript framework that enhances interactivity without complexity

Aug 15, 2024 · 3 min read · alexsinelnikov.blog  
Read the article

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

## Written by

[Alex Sinelnikov](https://hashnode.com/@avdept)

@avdept · Miami, FL

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

Engineer, researcher, CTO

Software engineer in my soul. Been building since early 2000.

## Responses 1

Markdown supported · ⌘↵ to post

[Benjamin Bock](https://hashnode.com/@bnjmn)

[Aug 24, 2024](https://hashnode.com/posts/alpinejs-for-ruby-on-rails-developers-simplifying-frontend-development/66bdce2a4c00bb8e47b20640/comment/66c997f40d4abd147713f5f7)

I used Rails+Turbo+Alpine in two projects and agree with you.

However, especially with Turbo morph, I often need to manually re-run effects after a page is refreshed using morphing. What’s your general approach to this?

[Alex Sinelnikov](https://hashnode.com/@avdept)

[Aug 26, 2024](https://hashnode.com/posts/alpinejs-for-ruby-on-rails-developers-simplifying-frontend-development/66bdce2a4c00bb8e47b20640/comment/66c997f40d4abd147713f5f7#reply-66cc319dc1292c1d2630eddc)

You can keep your frontend state in the form input. It can be simple hidden input with json data inside it. And when you do request, you can use value of the input to restore/modify state of your block.
