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
{ | |
"size": 0, | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"match": { | |
"content": "willford woodruff" | |
} | |
} |
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
{ | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"match": { | |
"title": "Answers to Gospel Questions" | |
} | |
} | |
] |
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 media-development/segment/_search | |
{ | |
"size": 0, | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"match": { | |
"content": "test" | |
} |
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 media-development/segment/_search | |
{ | |
"size": 50, | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"match": { | |
"content": "jesus" | |
} |
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 media-development/media/_search | |
{ | |
"query": { | |
"bool": { | |
"should": [ | |
{ | |
"match": { | |
"title": "Gospel" | |
} | |
}, |
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
Spree::Core::Engine.routes.url_helpers.product_url(v.product, host: HOST) |
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
Spree.config do |config| | |
config.allow_ssl_in_development_and_test = false | |
end |
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
<%= link_to image_tag(root_taxon.icon.url(:normal), width: "140", alt: root_taxon.name), seo_url(root_taxon), title: root_taxon.name %> |
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
2.0.0-p353 :003 > [true, true, true].any? { |a| !a } | |
=> false | |
2.0.0-p353 :004 > [true, false, true].any? { |a| !a } | |
=> true | |
2.0.0-p353 :005 > [true, false, false].any? { |a| !a } | |
=> true | |
2.0.0-p353 :006 > |
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
class Spree::Elist::SubscribersController < ApplicationController | |
respond_to :html | |
def create | |
@subscriber = Spree::Elist::Subscriber.new(params[:elist_subscriber]) | |
@subscriber.save | |
respond_with @subscriber, location: request.referer | |
end | |
end |