@@ -1,3 +1,9 @@
// Place all the styles related to the Users controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
+
+.user-info {
+ h1 {
+ font-size: 2em;
+ }
+}
@@ -1,4 +1,9 @@
class UsersController < ApplicationController
+ def show
+ @user = User.find(params[:id])
+ end
def new
end
@@ -0,0 +1,10 @@
+<% provide(:title, @user.name) %>
+<div class="row">
+ <aside class="col-md-4">
+ <section class="user-info">
+ <h1>
+ <%= @user.name %>
+ </h1>
+ </section>
+ </aside>
+</div>
@@ -5,4 +5,6 @@ Rails.application.routes.draw do
get '/home', to: 'static_pages#home'
get '/about', to: 'static_pages#about'
+ resources :users