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
var custom_wymeditor_boot_options = { | |
containersItems: [ | |
{'name': 'h1', 'title':'Heading_1', 'css':'wym_containers_h1'} | |
, {'name': 'h2', 'title':'Heading_2', 'css':'wym_containers_h2'} | |
, {'name': 'h3', 'title':'Heading_3', 'css':'wym_containers_h3'} | |
, {'name': 'h4', 'title':'Heading_4', 'css':'wym_containers_h4'} | |
, {'name': 'h5', 'title':'Heading_5', 'css':'wym_containers_h5'} | |
, {'name': 'h6', 'title':'Heading_6', 'css':'wym_containers_h6'} | |
, {'name': 'p', 'title':'Paragraph', 'css':'wym_containers_p'} | |
, {'name': 'BLOCKQUOTE', 'title': 'Blockquote', 'css': 'wym_containers_blockquote'} |
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
ActionView::Template::Error (incompatible character encodings: UTF-8 and ASCII-8BIT): | |
56: <ul id='other_locales' style='display: none'> | |
57: <% ::Refinery::I18n.locales.reject{|key, value| key.to_sym == ::I18n.locale}.sort_by{|key, value| value}.each do |locale_key, locale_title| %> | |
58: <li> | |
59: <%= link_to locale_title.html_safe, | |
60: params.dup.tap { |p| p[:set_locale] = locale_key }, | |
61: :style => "background-image: url('/images/refinery/icons/flags/#{locale_key}.png');" %> | |
62: </li> | |
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
scope :path => 'forums' do | |
root :to => 'discussions#index' | |
resources :discussion_topics, :path => 'topics', :as => 'topics' do | |
resources :discussions do | |
resources :discussion_replies, :path => 'replies', :as => 'replies', :only => [:create, :update, :destroy] | |
end | |
end | |
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
<!-- UPDATE THE :image => @example.image PART TO REFLECT YOUR MODEL AND ATTRIBUTE --> | |
<div class='field'> | |
<%= f.label :image -%> | |
<%= render :partial => "/shared/admin/image_picker", :locals => { | |
:f => f, | |
:field => :image_id, | |
:image => @example.image, | |
:toggle_image_display => false | |
} %> | |
</div> |
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 Admin::Blog::PostsController < Admin::BaseController | |
crudify :blog_post, | |
:title_attribute => :title, | |
:order => 'published_at DESC' | |
before_filter :find_all_categories, | |
:only => [:new, :edit, :create, :update] | |
def new |
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
source 'http://rubygems.org' | |
gem 'bundler', '~> 1.0.3' | |
gem 'rails', '~> 3.0.3' | |
# Deploy with Capistrano | |
gem 'capistrano' | |
gem 'heroku' | |
gem 'mysql' | |
gem 'aws-s3', :require => 'aws/s3' |
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
$ rake refinery:update | |
(in /Users/joe/Projects/tdac) | |
rake db:migrate | |
git st | |
rake aborted! | |
undefined method `default_locale=' for #<FriendlyId::ActiveRecordAdapter::Configuration:0x0000010327e9e0> | |
(See full trace by running task with --trace) | |
Coltrane:tdac joe$ rake db:migrate | |
(in /Users/joe/Projects/tdac) |
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
respond_to :html, :rss | |
def index | |
@news_items = NewsItem.published.paginate(:page => params[:page], :per_page => NewsItem.per_page) | |
respond_with @news_items do |format| | |
format.html | |
format.rss { render :layout => false } | |
end | |
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
<!DOCTYPE html> | |
<html> | |
<%= render :partial => "/shared/head", :locals => {:theme => true} %> | |
<body> | |
<%= render :partial => "/shared/site_bar" %> | |
<div id='container'> | |
<%= render :partial => "/shared/ie6check" if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%> | |
<header id='header'> | |
<%= render :partial => "/shared/header" %> | |
</header> |
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
<div class="some-float-clearing-class"> | |
<label><input type="checkbox" /> Some Label</label> | |
</div> |