Skip to content

Instantly share code, notes, and snippets.

View mrcasals's full-sized avatar
👨‍🚀
🚀

Marc Riera mrcasals

👨‍🚀
🚀
View GitHub Profile
@mrcasals
mrcasals / devise.ca.yml
Created December 3, 2011 17:57 — forked from oriolgual/devise.ca.yml
Catalan translation for Devise
ca:
errors:
messages:
expired: "ha caducat, demana'n un de nou"
not_found: "no s'ha trobat"
already_confirmed: "ja està confirmat"
not_locked: "no està bloquejat"
not_saved:
one: "1 error ha evitat que %{resource} es pugui desar:"
other: "%{count} errors han evitat que %{resource} es pugui desar:"
@mrcasals
mrcasals / books_controller.rb
Created October 6, 2011 18:17
Rails Controllers with DataMapper
# This class is responsible for the Books REST interface.
#
class BooksController < ApplicationController
# Get a book by the id
before_filter :get_book, only: [:edit, :update, :show, :destroy]
# Renders the form to create a new Book.
#
def new
@mrcasals
mrcasals / ca.yml
Created September 1, 2011 12:56
LocaleApp doesn't keep the default Rails translations format
# This is the default format for Rails Translations.
# You can see the full file here:
# https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/ca.yml
ca:
date:
day_names:
- Diumenge
- Dilluns
- Dimarts
- Dimecres