[RUBY] How to insert a video in Rails

How to insert a video in rails

Conclusion

java:index.html.erb


<%= video_tag "earth.mov", class: "landing_video", loop: true, autoplay: true, muted: true %>

For earth.mov </ font>, please apply your favorite video here.

Basically, the format does not matter whether it is mp4 or mov, but when considering the UI, if the capacity is too large, it will be inconvenient to use, so be careful about that!

That's all from the scene!

Recommended Posts

How to insert a video in Rails
[How to insert a video in haml with Rails]
How to insert a video
How to implement a like feature in Rails
How to easily create a pull-down in Rails
How to make a follow function in Rails
How to implement a like feature in Ajax in Rails
How to write a date comparison search in Rails
[Rails 6] How to set a background image in Rails [CSS]
[Rails] How to load JavaScript in a specific view
[Rails] How to write in Japanese
How to introduce jQuery in Rails 6
How to install Swiper in Rails
How to display a graph in Ruby on Rails (LazyHighChart)
How to implement search functionality in Rails
How to change app name in rails
How to use custom helpers in rails
How to use MySQL in Rails tutorial
Steps to set a favicon in Rails
[rails] How to configure routing in resources
[rails] How to create a partial template
How to implement ranking functionality in Rails
How to publish a library in jCenter
How to use credentials.yml.enc introduced in Rails 5.2
How to rename a model with foreign key constraints in Rails
How to write Rails
How to uninstall Rails
Rails: How to write a rake task nicely
Convert to a tag to URL string in Rails
[Rails] How to write when making a subquery
[Rails] How to create a graph using lazy_high_charts
How to display a web page in Java
[Rails] How to use select boxes in Ransack
How to translate Rails into Japanese in general
How to prevent direct URL typing in Rails
How to run a djUnit task in Ant
How to add a classpath in Spring Boot
How to create a theme in Liferay 7 / DXP
How to separate .scss by controller in Rails
How to conditionally add html.erb class in Rails
[Rails] How to create a Twitter share button
How to use JQuery in js.erb of Rails6
[Ruby on Rails] How to install Bootstrap in Rails
[Rails] How to use PostgreSQL in Vagrant environment
How to check Rails commands in the terminal
How to automatically generate a constructor in Eclipse
How to implement a slideshow using slick in Rails (one by one & multiple by one)
How to create a query using variables in GraphQL [Using Ruby on Rails]
[Rails] How to log in with a name by adding a devise name column
How to update user edits in Rails Devise without entering a password
[Java] [For beginners] How to insert elements directly in a 2D array
How to clear all data in a particular table
[rails] How to post images
How to create a Java environment in just 3 seconds
How to set the display time to Japan time in Rails
How to implement guest login in 5 minutes in rails portfolio
[Ruby on Rails] How to write enum in Japanese
[Rails] How to use enum
How to delete a new_record object built with Rails
[Rails] How to install devise
[Rails] How to use enum