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> |
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
<?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
<%= 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
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
.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
<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
.modal { | |
position:absolute; | |
top:50%; | |
left:50%; | |
width:800px; | |
height:500px; | |
margin:-400px 0 0 -250px; | |
background:#fff; | |
border:1px solid #eee; | |
z-index:9999; |
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
Fetching repository, done. | |
Counting objects: 5, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (3/3), done. | |
Writing objects: 100% (3/3), 286 bytes, done. | |
Total 3 (delta 2), reused 0 (delta 0) | |
-----> Removing .DS_Store files | |
-----> Ruby app detected | |
-----> Compiling Ruby/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
<!-- Method One --> | |
<span id="specific-item">Show more</span> | |
$('#specific-item').click(function() { | |
$(this).text('Show less'); | |
}); | |
OlderNewer