<?php | |
/** | |
* These class and hook allow exposing your data to Yoast, for it to build | |
* the sitemap, split it correctly in multiple pages every 1000 entries, | |
* and add it to its index. Here's a list of the placeholders I used : | |
* - MY_NAMESPACE: your Plugin/theme/custom namespace | |
* | |
* - MY_CUSTOM_DATATYPE: The type of data you're exposing in those sitemaps | |
* - MY_CUSTOM_DATATABLE: Database table hosting your data |
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
wp post list --post_type=post,page --field=ID | xargs -n1 -I % wp embed cache clear % |
- https://github.com/excid3/jumpstart
- https://github.com/honeybadger-io/heya
- Follow Josh on Twitter for development updates
This creates a 4-part email series to welcome users who sign up for your Jumpstart app. The first email is sent immediately, and the following emails are sent 2 days apart.
This guide assumes you meet Jumpstart's requirements.
This is all you really need to know in order to make Action Mailbox work in development.
- Fire up
ngrok http 3000
and make note of your subdomain for steps 3 and 8. - Create a Mailgun account because they offer sandbox addresses; grab your domain from the Dashboard.
- Go into Receiving and create a catch-all route pointing to:
https://XXX.ngrok.io/rails/action_mailbox/mailgun/inbound_emails/mime
- Add your Mailgun API key to your credentials:
action_mailbox:
mailgun_api_key: API KEY HERE
<?php | |
/* | |
Plugin Name: WP Instagram Widget | |
Plugin URI: https://github.com/scottsweb/wp-instagram-widget | |
Description: A WordPress widget for showing your latest Instagram photos. | |
Version: 2.0.3 | |
Author: Scott Evans | |
Author URI: https://scott.ee | |
Text Domain: wp-instagram-widget | |
Domain Path: /assets/languages/ |
<?php | |
/** | |
* Gravity Forms Bootstrap Styles | |
* | |
* Applies bootstrap classes to various common field types. | |
* Requires Bootstrap to be in use by the theme. | |
* | |
* Using this function allows use of Gravity Forms default CSS | |
* in conjuction with Bootstrap (benefit for fields types such as Address). | |
* |
Cheat Sheets are greate but they are not a substitute for learning the framework and reading the documentation as we most certainly have not covered every potential example here. Please refer to the Rails Command Line Docs for more information.
You can get all of this information on the command line.
rails generate
with no generator name will output a list of all available generators and some information about global options.
rails generate GENERATOR --help
will list the options that can be passed to the specified generator.
module Devise | |
module Models | |
module RemoteAuthenticatable | |
extend ActiveSupport::Concern | |
# | |
# Here you do the request to the external webservice | |
# | |
# If the authentication is successful you should return | |
# a resource instance |