This guide will show you how to:
- configure and use Refinery::Pages::MenuPresenter
- use a decorator to add a custom method to Refinery::Page class
endprologue.
module Refinery | |
module PhotoGallery | |
module Extensions | |
module Pages | |
def has_one_page_album | |
has_many :album_page, :as => :page, :dependent=> :destroy | |
has_many :album, :through => :album_page | |
has_many :photos, :class_name => Refinery::PhotoGallery::Photo, :through => :album , :order => "created_at ASC" | |
class PromotionAttachment < ActiveRecord::Base | |
belongs_to :promotion | |
attr_accessible :like_gate_image, :promotion_image, :app_icon, :video_url | |
validate :validate_like_gate_image_dimensions | |
[:like_gate_image, :promotion_image].each do |file_name| | |
options = { | |
styles: { |
<div id="slider"> | |
<!--<img src="images/image1.jpg" alt="image1"/> | |
<a href="#link"><img src="images/image2.jpg" alt="image2"/></a> | |
<img src="images/image3.jpg" alt="image3"/> | |
<img src="images/image4.jpg" alt="image4"/> | |
</div>--> | |
<%= image_tag 'Composite1.png', { :alt => 1 } %> | |
<%= image_tag 'Composite2.png', { :alt => 2 } %> | |
<%= image_tag 'Composite15.png', { :alt => 15 } %> | |
<%= image_tag 'Composite14.png', { :alt => 14 } %> |
#!/usr/bin/env ruby | |
spec_hits = [] | |
checks = { | |
'_spec\.rb$' => ['focus:[:space:]*true'], | |
'\.rb$' => ['binding\.pry', 'debugger'] | |
} | |
# Find the names of all the filenames that have been (A)dded (C)opied or (M)odified | |
filenames = `git diff --cached --name-only --diff-filter=ACM`.split("\n") |
This guide will guide you through the upgrade process from version 2.0.10 to version 2.1.×.
endprologue.
WARNING. This guide assumes that you will be upgrading from version 2.0.10 of Refinery CMS. If your application is not up-to-date we strongly recommend for you to upgrade it to version 2.0.10 before trying to upgrade to version 2.1.0.
WARNING. Before continuing make sure you have a backup copy of your application and database in case something goes wrong.
This guide will guide you through the upgrade process from version 2.0.10 to version 2.1.×.
endprologue.
WARNING. This guide assumes that you will be upgrading from version 2.0.10 of Refinery CMS. If your application is not up-to-date we strongly recommend for you to upgrade it to version 2.0.10 before trying to upgrade to version 2.1.0.
WARNING. Before continuing make sure you have a backup copy of your application and database in case something goes wrong.
This guide will guide you through the upgrade process from version 2.0.10 to version 2.1.×.
endprologue.
WARNING. This guide assumes that you will be upgrading from version 2.0.10 of Refinery CMS. If your application is not up-to-date we strongly recommend that you upgrade it to version 2.0.10 before trying to upgrade to version 2.1.0.
WARNING. Before continuing make sure you have a backup copy of your application and database in case something goes wrong.
This guide will provide a list of bullet points of the stuff that has been added, changed and removed in version 2.1.0.
endprologue.
WARNING. Starting from 2.1.0 we dropped support for Ruby 1.8.x and now Ruby 1.9.3 is the lowest version of
Ruby that is accepted with Ruby 2.0.0 encouraged. We strongly recommend upgrading if you’re still on 1.8.×.
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Sat, 17 Nov 2012 22:21:52 GMT till Sun, 17 Nov 2013 22:21:52 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter((user) -> user.followers > 200)