From the course: Ruby on Rails 5 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Images

Images - Ruby on Rails Tutorial

From the course: Ruby on Rails 5 Essential Training

Start my 1-month free trial

Images

- [Narrator] In this movie, we will learn to work with asset pipeline to add images to our applications. Images managed by asset pipeline should be kept inside /app/assets/images. If you weren't using asset pipeline, then you would put them in /public/images. Those locations are similar to what we used for stylesheets and JavaScripts. However, images are different than stylesheets and JavaScripts. A web application has images which are important for the application's interface such as backgrounds, buttons, or icons. But web applications also often use images provided by users. Those users don't have to just be the general public. They also could be admins who are uploading product images, photographs, or images meant to accompany paragraphs of text. As a general rule of thumb, you should put your core application UI images inside asset pipeline, that is, inside /app/assets/images. But any user-supplied images that are related to content should go in /public/images and not be managed…

Contents