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
| a = 1 | |
| b = 1 | |
| sum = a + b |
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
| describe "1 plus 1" do | |
| it 'equals 2' do | |
| a = 1 | |
| b = 1 | |
| sum = a + b | |
| expect(sum).to eq(2) | |
| end | |
| end |
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
| # == Schema Information | |
| # | |
| # Table name: episodes | |
| # | |
| # id :integer not null, primary key | |
| # title :string | |
| # description :text | |
| # file_url :text | |
| # original_url :text | |
| # created_at :datetime |
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
| # == Schema Information | |
| # | |
| # Table name: episodes | |
| # | |
| # id :integer not null, primary key | |
| # title :string | |
| # description :text | |
| # file_url :text | |
| # original_url :text | |
| # created_at :datetime |
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
| # == Schema Information | |
| # | |
| # Table name: episodes | |
| # | |
| # id :integer not null, primary key | |
| # title :string | |
| # description :text | |
| # file_url :text | |
| # original_url :text | |
| # created_at :datetime |
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
| # == Schema Information | |
| # | |
| # Table name: users | |
| # | |
| # id :integer not null, primary key | |
| # email :string default(""), not null | |
| # encrypted_password :string default(""), not null | |
| # reset_password_token :string | |
| # reset_password_sent_at :datetime | |
| # remember_created_at :datetime |
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 LinkMailer < ActionMailer::Base | |
| default from: "[email protected]" | |
| def rss_link(user) | |
| @user = user | |
| @episode_count = user.user_episodes.count | |
| mail to: @user.email, subject: 'Dit podcast feed er her.' | |
| end | |
| end |
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 EmailsController < ApplicationController | |
| def send_email | |
| redirect_to_account if current_user.email.blank? | |
| case params[:email].to_sym | |
| when :rss_link | |
| LinkMailer.rss_link(current_user).deliver_later | |
| end |
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
| #vffaab | |
| #vfffck | |
| #vffbif | |
| #vfffcm | |
| #vfflbk | |
| #vfffcn | |
| #vffsdr | |
| #vffran | |
| #vffesb | |
| #vffach |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1"> | |
| <title>Mike Jakobsen</title> | |
| <link rel="stylesheet" href="css/font-awesome.min.css"> | |
| <link rel="stylesheet" href="css/owl.carousel.css"> | |
| <link rel="stylesheet" href="css/jquery.mCustomScrollbar.min.css"> |