Skip to content

Instantly share code, notes, and snippets.

👨‍🚀
🚀

Marc Riera mrcasals

👨‍🚀
🚀
Block or report user

Report or block mrcasals

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mrcasals
mrcasals / books_controller.rb
Created Oct 6, 2011
Rails Controllers with DataMapper
View books_controller.rb
# 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 Sep 1, 2011
LocaleApp doesn't keep the default Rails translations format
View ca.yml
# 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
You can’t perform that action at this time.