This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <div class="row"> | |
| <div class="col-md-6"> | |
| <div class="panel panel-primary"> | |
| <div class="panel-heading"> | |
| Here's your Profile <%= @user.name %> | |
| </div> | |
| <div class="panel-body"> | |
| <img class="avatar" src="<%= @user.avatar_url %>"> | |
| <span class="name"><%= @user.name %></span> @<%= @user.username %> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <div class="jumbotron"> | |
| <h1>Welcome to Bark</h1> | |
| <p>what the woof ...</p> | |
| <p><a class="btn btn-primary btn-lg" role="button">login</a> or sign up below</p> | |
| </div> | |
| <div class="row"> | |
| <div class="col-md-6"> | |
| <%= image_tag 'Dog.jpg', size: "600x350", alt: "Bark" %> | |
| </div> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <div class="panel right"> | |
| <h1>Join Bark today</h1> | |
| <%= form_for @user do |f| %> | |
| <% if @user.errors.any? %> | |
| <ul> | |
| <% @user.errors.full_messages.each do |message| %> | |
| <li><%= message %></li> | |
| <% end %> | |
| </ul> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <div id="createbark" class="panel right"> | |
| <h1>Create a Bark</h1> | |
| <p> | |
| <form> | |
| <textarea name="text" class="barkText"></textarea> | |
| <input type="submit" value="bark"> | |
| </form> | |
| </p> | |
| </div> | |
| <div id="barks" class="panel left"> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class User < ActiveRecord::Base | |
| has_secure_password | |
| before_validation :prep_email | |
| before_save :create_avatar_url | |
| validates :name, presence: true | |
| validates :username, uniqueness: true, presence: true | |
| validates :email, uniqueness: true, presence: true | |
| def create_avatar_url | |
| self.avatar_url = "http://www.gravatar.com/avatar/#{Digest::MD5.hexdigest(self.email)}?s=50" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class UsersController < ApplicationController | |
| before_action :set_user, only: [:show, :edit] | |
| def new | |
| @user = User.new | |
| end | |
| def create | |
| @user = User.new(user_params) | |
| if @user.save | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | pre code.ruby {margin-left:0px;} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | group :development do | |
| gem 'quiet_assets' | |
| gem 'thin' | |
| end | |
| gem "therubyracer" | |
| gem "less-rails" | |
| gem "twitter-bootstrap-rails" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | CREATE TABLE IF NOT EXISTS players ( | |
| id INTEGER PRIMARY KEY AUTOINCREMENT, | |
| name VARCHAR(50), | |
| win INTEGER, | |
| loss INTEGER, | |
| draw INTEGER, | |
| created_at TIMESTAMP, | |
| updated_at TIMESTAMP | |
| ); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | --color --format documentation | 
NewerOlder