Seattle area Web Developer
http://boylandev.com/
Block or Report
Block or report HeatherB
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
Setup i18n in Refinery CMS
Setup i18n in Refinery CMS 1# app/controllers/application_controller.rb
23Class ApplicationController < ActionController::Base
4. . .
5before_action :set_locale
-
Add a field to Refinery blog posts
Add a field to Refinery blog posts 1# db/migrate/1585076360_name_of_migration.rb
23class NameOfMigration < ActiveRecord::Migration
4def change
5add_column :refinery_blog_posts, :name_of_field, :text
-
HTML email
HTML email 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5<title>The Hockey Review</title>
-
About ERB
About ERB 1<% %>
2an opening and closing tag, ruby will evalute the code between them
34EXAMPLE USE:
5An 'if' statement is a very common use of this tag structure.
-
AJAX with Rails
AJAX with Rails 1# app/views/refinery/pages/home.html.erb
23<div id="filter-platform">
4<span data-platform="all" class="filter-all homefilter">
5<%=t :platform_all %>
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.