This file contains 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
<% if user_signed_in? %> | |
Signed in as <% current_user.email %>. Not You? | |
<%= link_to "Sign Out", destroy_user_session_path %> | |
<% else %> | |
<%= link_to "Sign In", new_user_session_path %> | |
<% end %> | |
Returns this era | |
No route matches [GET] "/users/sign_out" |
This file contains 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
Rails.configuration.stripe = { | |
:publishable_key => ENV['PUBLISHABLE_KEY'], | |
:secret_key => ENV['SECRET_KEY'] | |
} | |
Stripe.api_key = Rails.configuration.stripe[:secret_key] |
This file contains 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
Rails.configuration.stripe = { | |
:publishable_key => ['pk_foo'], | |
:secret_key => ['sk_bar'] | |
} | |
Stripe.api_key = Rails.configuration.stripe[:secret_key] |
This file contains 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
greetings all. attempting to play the current time into a variable, so everytime I call said variable it returns the current time | |
clock = Time.new | |
This returns the time when the variable was created. How do I return the current time when the variable is called? |
This file contains 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
Errno::ECONNREFUSED: Connection refused - connect(2) for "your-dns-needs-immediate-attention.network" |
This file contains 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
C:\Users\Zanzibar\Desktop\rubyprojects\pgapp>git status | |
warning: LF will be replaced by CRLF in config/routes.rb. | |
The file will have its original line endings in your working directory. | |
# On branch master | |
# Your branch is ahead of 'origin/master' by 1 commit. | |
# (use "git push" to publish your local commits) | |
# | |
# Changes to be committed: |
This file contains 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
Rails.application.routes.draw do | |
# The priority is based upon order of creation: first created -> highest priority. | |
# See how all your routes lay out with "rake routes". | |
# You can have the root of your site routed with "root" | |
root 'public/index.html' | |
# Example of regular route: | |
# get 'products/:id' => 'catalog#view' |
This file contains 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
/* | |
Theme Name: Twenty Fourteen Child | |
Theme URI: http://localhost/twenty-fourteen-child/ | |
Description: Twenty Fourteen Child Theme | |
Author: John Doe | |
Author URI: http://localhost | |
Template: twentyfourteen | |
Version: 1.0.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
This file contains 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
get_header(); ?> | |
<div class="col-md-12 intro-me clearfix"> | |
<h2> <?php echo ft_of_get_option('fabthemes_welcome_title'); ?></h2> | |
<p> <?php echo ft_of_get_option('fabthemes_welcome_text'); ?> </p> | |
</div> | |
<div id="primary" class="content-area "> | |
<main id="main" class="site-main" role="main"> |
This file contains 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
<!-- my loop for songs --> | |
<div class="row clearfix"> | |
<div class="col-md-2 column"> | |
<img src="https://i4.sndcdn.com/artworks-000058923387-31sii8-t50x50.jpg" > | |
</div> | |
<div class="col-md-6 column"> | |
<h3>Song Title Term Goes Here</h3> | |
<h4>Artist Name Term Goes Here</h4> | |
</div> | |
<div class="col-md-2 column"> |
OlderNewer