-
Picture/File Archive on the admin site
-
Ability to upload files + file archive
-
Opportunity for bold, italic and underlined on news titles - An inline editor like tinyMCE (daniel)
-
Same system on program pages as the news page - image, text and read more when you reach over 120 + characters merge with text 2, where we could write a minimum of 3 lines. + Link under each performance: Info on ticket sales
-
More events at. day on the calendar - possibly.
-
Link by each event in the calendar - in admin module where you can choose for a page on the site, which should be linked on to
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 :current, where(:current=>true} | |
validate :only_one_current | |
protected | |
def only_one_current | |
errors.add_to_base("Only one event can be current") if Event.current.reject{|c| c.eql?(self)}.size>0 | |
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
# Setup ruby for rails development. Installs [:rvm, :homebrew, :wget] | |
echo -e '\n\n###########################################\nThanks! Now grab a beverage...\nThis may take awhile\n###########################################\n\n' | |
ruby -e "$(curl -fsSLk https://gist.github.com/raw/323731/install_homebrew.rb)" | |
brew install wget | |
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
echo -e "\n[[ -s '$HOME/.rvm/scripts/rvm' ]] && . '$HOME/.rvm/scripts/rvm' # This loads RVM into a shell session." >> ~/.bash_profile | |
source ~/.bash_profile | |
echo -e '\n\n###########################################\nDone!\n###########################################\n\n' |
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
cd /tmp | |
refinerycms bar | |
cd bar | |
git init . | |
git add . | |
git commit -a -m "Hide these files" | |
rake refinery:override view=**/* | |
rake refinery:override controller=**/* | |
rake refinery:override model=**/* | |
git add -N . |
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
# I deleted this... | |
commit 94915c43fbe47e3a0f7dbb81affdd0106ba4a72c | |
Author: Daniel <znowm4n@gmail.com> | |
Date: Tue Jul 5 20:56:23 2011 +0200 | |
update | |
diff --git a/app/views/layouts/_menu.haml b/app/views/layouts/_menu.haml | |
index 0a4d03f..8ea6eff 100644 |
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
av = ActionView::Base.new(Rails::Configuration.new.view_path) | |
av.render( | |
{:text => this_goes_to_yield, :layout => "layouts/blah.html.erb"}, # the options hash | |
{:title => 'blah', :body => 'hello'} # the locals hash | |
) |
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
validate :is_valid_time | |
def valid_time? | |
self.time > 24.hours.from_now | |
end | |
def is_valid_time | |
errors.add("Your object", "is not valid. Other explainations.") unless valid_time? | |
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
# Run me with: | |
# | |
# $ watchr .watchr | |
# -------------------------------------------------- | |
# Convenience Methods | |
# -------------------------------------------------- | |
def growl(result) | |
result_lines = result.split("\n") |
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
# Add this to the end of your development.rb and add | |
# | |
# gem 'pry' | |
# | |
# to your Gemfile and run bundle to install. | |
silence_warnings do | |
begin | |
require 'pry' | |
IRB = Pry |
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
module ActionDispatch::Routing | |
class Mapper | |
def engine_routing | |
#define your routes here. You can use all the normal route DSL stuff | |
resources :dashboard | |
end | |
end | |
end | |
module OilChange |
OlderNewer