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
From efc0891173d385bd4f62d7d531b3f9667a072c5e Mon Sep 17 00:00:00 2001 | |
From: Mario Visic <mario@mariovisic.com> | |
Date: Wed, 24 Mar 2010 18:11:19 +0800 | |
Subject: [PATCH] Alterd the styling of error messages displayed on admin forms | |
--- | |
public/stylesheets/admin/main.css | 10 ++++++---- | |
public/stylesheets/sass/admin/partials/_forms.sass | 15 ++++++++++----- | |
2 files changed, 16 insertions(+), 9 deletions(-) |
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
From 854c3f56eb23941bca3f56e6cab836709e5c4d0d Mon Sep 17 00:00:00 2001 | |
From: Mario Visic <mario.visic@squaretalent.com> | |
Date: Wed, 30 Jun 2010 23:21:50 +0200 | |
Subject: [PATCH] Removed a hard coded string and replaced with translation, fixes issue #103 | |
--- | |
app/views/admin/pages/edit.html.haml | 2 +- | |
config/locales/en.yml | 2 +- | |
2 files changed, 2 insertions(+), 2 deletions(-) |
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
<?php | |
# get the number of post elements | |
$count = count($_POST); | |
# get our array keys | |
$keys = array_keys($_POST); | |
# loop through them incrimenting by 2 | |
# normally you would write $i++ at the end, this is shorthand for $i = $i + 1 |
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
form.id # => BSON::ObjectId('4ce9df0d4cfad1c62400001b') | |
form.messages.first.id # => BSON::ObjectId('4ce9e3d74cfad1cabd000006') | |
Form.find('4ce9df0d4cfad1c62400001b').to_s # => "#<Form:0x105673c60>" | |
Form.find('4ce9df0d4cfad1c624000010').to_s # Mongoid::Errors::DocumentNotFound: Document not found for class Form with id(s) 4ce9df0d4cfad1c624000010. | |
form.messages.find('4ce9e3d74cfad1cabd000006').to_s # => "#<Message:0x10527c170>" | |
form.messages.find('4ce9e3d74cfad1cabd000000').to_s # => "" | |
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
# has access to loan_product instance variable. |
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
let(:phone_number) { PhoneNumber.make(:number_type => 'emergency', :number => '0118 999 881 999 119 725 3') } |
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
" Vim color file | |
" This file was generated by Palette | |
" http://rubygems.org/gems/palette | |
" | |
" Author: Drew Neil | |
" Notes: Based on the 'Blackboard' theme from TextMate. | |
let colors_name="board" | |
hi clear |
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
lol | |
this is a gist |
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
" Vim color file | |
" This file was generated by Palette | |
" http://rubygems.org/gems/palette | |
" | |
" Author: Drew Neil | |
" Notes: Based on the 'Blackboard' theme from TextMate. | |
let colors_name="board" | |
hi clear |
OlderNewer