Ruby on Rails
react-on-rails
Ruby on Rails | react-on-rails | |
---|---|---|
498 | 10 | |
55,541 | 5,084 | |
0.3% | 0.0% | |
10.0 | 8.0 | |
6 days ago | 14 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Ruby on Rails
-
Squash Your Ruby and Rails Bugs Faster
Coincidentally, the default Puma configuration in the most recent Rails release is similar to what's shown here (thanks to Nate Matykiewicz for the tip).
-
Moving From auto_strip_attributes to normalizes
Starting in Rails 7.1 we have "normalizes" as a declaration to make in our models. It provides the same functionality, but in a different manner.
-
Rails Guides 7.2 in Spanish Translated with OpenAI
MR to update Spanish translation
-
Diversify Your Tech Stack: Uncovering Powerful Node js Alternatives
It is also known to build secure applications, and the active community does well at finding solutions to the newest vulnerabilities. The Ruby and Ruby on Rails documentation are great resources for delving into this ecosystem, but if you prefer a guided path, The Odin Project open-source community would be an excellent start.
-
Stop Relying on If Not Exists for Concurrent Index Creation in PostgreSQL
Hey Andrew! So good to see you here. I agree with everything you said 100%. I am honestly split, because I was the first one recommending engineers if_not_exists, but now I am torn, because this can lead to very weird issues in production, esp. for ActiveRecord apps, and maintaining a "invalid index reaper job" doesn't sound like a good long term solution.
I did suggest some proposals to Rails here and would love to propose a PR based on a solution that makes the most sense too
https://github.com/rails/rails/issues/52583
- Ruby on Rails 7.2 Released
-
Ask HN: Learning Ruby on Rails?
I think the hardest part is deciding which gems to use. It's not uncommon to end up with over 50 gems in your Gemfile.
For example, built-in capabilities for authentication are limited: https://github.com/rails/rails/issues/50446
So then do you go with has_secure_password/etc., Devise, rodauth, authentication-zero, or something else? These are big decisions that then might affect other things like authorization, OAuth, PassKey, etc.
And that's authentication & authorization which are a relatively well-understood and maintained area, but other areas might have totally unmaintained gems that might have issues with recent versions of Rails, or native module compilation issues with more recent versions of operating systems, etc.
A lot of Rails guidance on blog posts and StackOverflow might be outdated.
This problem is not unique to Rails. I still think Rails is great and relatively vibrant. Nevertheless, I suggest being very wary of Rails guides, blog posts, and StackOverflow answers that are more than 1 year old and doing a careful study and inventory of gems before deciding to use them and reviewing their relative recent usage and activity.
-
What's Coming in Ruby on Rails 7.2: Database Features in Active Record
In Rails 7.2, this option changes from query_constraints to foreign_keys. Besides the parameter name change, some interesting discussions are underway about plans to repurpose the original query_constraints name by freeing it up.
-
How to setup Rails Guides for offline use
The guides are inside the Rails repository - https://github.com/rails/rails/tree/main/guides.
- Kamal Integration in Rails 8 by Default
react-on-rails
-
React + Ruby on Rails without any gems
One is to add a gem: react-rails or react_on_rails for example. But there is a way to have a simple integration without using these gems.
-
Considering moving from NextJS to Rails
You should take a look at https://github.com/shakacode/react_on_rails. I created that repo back in 2015 and it's still going strong. Popmenu.com uses it and we've got 5,000 restaurant chains on the Rails monolith and huge traffic and transaction volume. Check out the html source of a popmenu site, like https://110grill.com. You'll see react-on-rails in the source.
-
Spent the past week learning Stimulus and Hotwire - you don't need it, you can do the same thing with jQuery
It's me, Justin, the guy the started React on Rails and React on Rails Pro many years ago! I'll be following this thread!
-
Best project setup for Rails+React with "remember me" feature
The problem is I have no idea how to implement the "remember me" feature in that gem without just making the tokens not refresh for a very long time (I think that would be a security concern). So then I looked more into react_on_rails to just use sessions with Devise as a normal rails app, but I don't know if I'll be able to deploy that on AWS because of the changes I have to do to the webpacker/webpack config to allow for a better folder structure. I've never done that so I don't know if there may be any issues.
-
Frontend based access control?
I have a production level Ruby on Rails app that is slowly transitioning from pure Rails with JS sprinkles to a Rails backend and React frontend kind of situation using React on Rails.
- How to create a project with both .erb and react? Do I use webpack=react?
-
Does anyone know a way to make a React with Rails application SEO friendly?
https://github.com/shakacode/react_on_rails - It was last updated 2 months ago & can do prerendering. I'm not sure why more people aren't suggesting this.
-
React Frontend vs Hotwire
https://github.com/shakacode/react_on_rails use this instead. It's maintained and preferred nowadays
- Hotwire: the new evolution of Turbolinks from Basecamp
-
26 most popular Ruby/Rails repositories on GitHub in July-August 2020
React on Rails is an integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance. 4,558 stars by now
What are some alternatives?
Roda - Routing Tree Web Toolkit
react-rails - Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
Hanami - The web, with simplicity.
Sinatra - Classy web-development dressed in a DSL (official / canonical repo)
CodeBehind Framework - CodeBehind library is a modern backend framework. This library is a programming model based on the MVC structure, which provides the possibility of creating dynamic aspx files in .NET Core and has high serverside independence.
backbone-react-component - A bit of nifty glue that automatically plugs your Backbone models and collections into your React components, on the browser and server
Cuba - Rum based microframework for web development.
Camping - the 5k pocket full-of-gags web microframework
Padrino - Padrino is a full-stack ruby framework built upon Sinatra.
reactfire - Hooks, Context Providers, and Components that make it easy to interact with Firebase.