Evan

15%
Flag icon
Even with small web projects, there are often elements that appear repeatedly, for example a footer on the page with contact info or a menu. Rails gives us the option of encapsulate this HTML code in form of partials and then integrating it within a view. A partial is also stored in the directory app/views/example/. But the file name must start with an underscore (_).
Ruby on Rails 5.0 for Autodidacts: Learn Ruby 2.3 and Rails 5.0
Rate this book
Clear rating
Open Preview