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="w-30"></div> | |
<a class="btn-sml btn-accent"></a> | |
<nav class="horizontal-links"></nav> | |
<form class="form-stacked"></form> | |
<form class="form-inline"></form> |
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
.mas { margin:5px } | |
.mts { margin-top:5px } | |
.mrs { margin-right:5px } | |
.mbs { margin-bottom:5px } | |
.mls { margin-left:5px } | |
.mam { margin:10px } | |
.mtm { margin-top:10px } | |
.mrm { margin-right:10px } | |
.mbm { margin-bottom:10px } |
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
user.rb | |
def unfollow!(other_user) | |
friendships.find_by_followed_id(other_user.id).destroy | |
end | |
users/show.html.erb | |
<% unless @user == current_user %> | |
<% if current_user.friends_with?(@user) %> | |
<%= form_for current_user.friendships.find_by_followed_id(@user), | |
html: { method: :delete } do |f| %> |
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
<%= form_for @contact, validate: true do |f| %> | |
<fieldset> | |
<div class="input_error"> | |
<%= f.label :message %> | |
<%= f.text_area :message, autofocus: 'autofocus' %> | |
<span data-icon="M" class="message">Error message goes here</span> | |
</div> | |
<div class="input_success"> | |
<%= f.label :name %> |
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
<?php | |
//If form was submitted | |
if(isset($_POST['submitted'])) { | |
$errormsg = ""; //Initialize errors | |
if(isset($_POST['emailaddress']) && $_POST['emailaddress'] != "Email Address"){ | |
$emailaddress = $_POST['emailaddress']; // If title was entered | |
} | |
else{ | |
$errormsg = "* Please enter an email address"; |
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
@testimonials = Testimonial.find(:all, :limit => 2, :order=> 'created_at desc') | |
@testimonials = Testimonial.find(:all, :limit => 2, :order=> 'random') |
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
<li class="job <%= compact.state %>"> | |
<a href="<%= compact %>"> | |
<div> | |
<strong>Description</strong> | |
<span><%= compact.description %></span> | |
</div> | |
<div> | |
<strong>Quantity</strong> | |
<span><%= compact.quantity %></span> |
NewerOlder