Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% provide(:title, "Home") %>
- <div class="center jumbotron">
- <h1>Welcome to the Sample App</h1>
- <h2>
- This is the home page for the
- <a href="http://www.railstutorial.org/">Ruby on Rails Tutorial</a>
- sample application.
- </h2>
- <%= link_to "Sign up now!", '#', class: "btn btn-lg btn-primary" %>
- </div>
- <%= link_to image_tag("rails.png", alt: "Rails logo"),
- 'http://rubyonrails.org/' %>
- <br/><br/>
- <%= link_to image_tag("bunratty.png", alt: "Bunratty"),
- 'http://rubyonrails.org/' %>
- <%= link_to image_tag("kitten.png", alt: "Kitten"),
- 'http://rubyonrails.org/' %>
- <%= image_tag image_url('rails.png') %>
- <%= image_tag image_path('rails.png') %>
- Display using html
- <img src="/public/rails.png" alt="rails logo"/>
- gem 'rails', '5.0.1'
- gem 'bootstrap-sass', '3.3.6'
- @import "bootstrap-sprockets";
- @import "bootstrap";
- /* universal */
- body {
- padding-top: 60px;
- background-color:lime;
- }
- section {
- overflow: auto;
- }
- textarea {
- resize: vertical;
- }
- .center {
- text-align: center;
- }
- .center h1 {
- margin-bottom: 10px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement