Our great sponsors
-
turbo
The speed of a single-page web application without having to write any JavaScript (by hotwired)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
If you think you have seen enough Rails magic, you are mistaken my friend. Rails have a new trick up its sleeve: Hotwire. And with the magical Turbo tool that comes with it, you can create modern, interactive web applications with minimal, or sometimes no JavaScript at all, providing users with an incredibly smooth experience.
The HTML options include a class attribute, which sets the CSS class for the button to "btn bg-indigo-50 disabled:opacity-50". This will give the button a nice background colour and make it slightly transparent when disabled. I'm using TailwindCSS for styling.
<%= link_to(@car) do %> <%= @car.name %> -- Check this car! <% end %> cars/1"> Tesla -- Check this car! <%= link_to "https://avohq.io/" do %> AvoHQ - The Best Rails Guide <% end %> https://avohq.io/"> AvoHQ - The Best Rails Guide