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 Comment < ActiveRecord::Base | |
belongs_to :general | |
belongs_to :author, :class_name => "User" | |
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
// Inspirated by http://davidwalsh.name/mootools-form-field-default-plugin | |
// TODO: add custom class instead of gray color | |
// TODO: maybe implements Events + custom hooks for Fx effects etc | |
var FormDefaults = new Class({ | |
//implements | |
Implements: [Options, Events], | |
// options | |
options: { | |
collection: $$('input[type="text"]') |
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
# coding=utf-8 | |
from django.conf.urls.defaults import * | |
from django.conf import settings | |
# Uncomment the next two lines to enable the admin: | |
from django.contrib import admin | |
admin.autodiscover() | |
urlpatterns = patterns('', |
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
<h2>Spřízněná videa:</h2> | |
<div class="inner"> | |
{% for related_interview in interview.related_interviews %} | |
<div class="video_item"> | |
<a href="/rozhovory/{{ related_interview.slug }}" title="{{ related_interview.title }}"><img src="public/images/small_video.jpg" alt="Zajímavý nadpis videa" /></a> | |
<strong><a href="#" title="Zajímavý nadpis videa">Zajímavý nadpis videa</a></strong> | |
<br /><br /> | |
<em>17.12.2008 v 15:39</em> | |
</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
module MerbShopSlice | |
# Setup routes inside the host application | |
# | |
# @param scope<Merb::Router::Behaviour> | |
# Routes will be added within this scope (namespace). In fact, any | |
# router behaviour is a valid namespace, so you can attach | |
# routes at any level of your router setup. | |
# | |
# @note prefix your named routes with :merb_shop_slice_ | |
# to avoid potential conflicts with global named routes. |
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
!!! 1.0 Strict | |
%html{html_attrs("cs")} | |
%head | |
%title= block("title", Shop.company.name) | |
%meta{"http-equiv" => "content-type", content: "text/html; charset=utf-8"} | |
%meta{"http-equiv" => "content-language", content: "cs"} | |
%meta{name: "description", content: block("description", Shop.company.description)} | |
%meta{name: "keywords", content: block("keywords", Shop.company.keywords)} | |
%meta{name: "author", content: Shop.company.name} | |
= pupu :blueprint, plugins: ["fancy-type"] |
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
Encoding.default_internal | |
# => #<Encoding:UTF-8> | |
Encoding.default_external | |
# => #<Encoding:UTF-8> | |
Order.select.keys.first.encoding | |
# => #<Encoding:ASCII-8BIT> | |
Order.select.values.first.encoding |
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
# coding: utf-8 | |
require "rango" | |
Rango.boot | |
# warden authentication | |
# wiki.github.com/hassox/warden/setup | |
require "warden" |
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::TalentPoolClassificationsController < Admin::AdminController | |
def list | |
@classification = TalentPoolClassification.new | |
@talent_pool = TalentPool.find(params[:talent_pool_id], :include => :classifications) | |
end | |
end |
OlderNewer