This file contains hidden or 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 Festival < ActiveRecord::Base | |
attr_accessible :name, :client_id | |
belongs_to :client | |
has_many :covers | |
has_many :photos | |
def self.with_covers | |
where("covers_count > 0") # or some other SQL with a COUNT and group maybe that filters correctly |
This file contains hidden or 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
# Basic tagging system for mongoid documents. | |
# jpemberthy 2010 | |
# | |
# class User | |
# include Mongoid::Document | |
# include Mongoid::Document::Taggable | |
# end | |
# | |
# @user = User.new(:name => "Bobby") | |
# @user.tag_list = "awesome, slick, hefty" |
This file contains hidden or 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
de: | |
errors: | |
messages: | |
not_found: "nicht gefunden" | |
already_confirmed: "wurde bereits bestätigt" | |
not_locked: "ist nicht gesperrt" | |
devise: | |
failure: | |
unauthenticated: 'Sie müssen sich anmelden oder registrieren, bevor Sie fortfahren können.' |