Skip to content

Instantly share code, notes, and snippets.

View anny-goerl's full-sized avatar

Anna Görlitz anny-goerl

View GitHub Profile
@anny-goerl
anny-goerl / rake db:test:prepare
Created January 10, 2012 09:00
rake db:test:prepare
rake db:test:prepare
@anny-goerl
anny-goerl / params inspect
Created January 10, 2012 09:40
Show the params passed to the create action
def create
render :text => params.inspect
end
@anny-goerl
anny-goerl / dashboard.rb
Created January 20, 2012 12:22
Rails Validations without ActiveRecord
class Dashboard
include ActiveModel::Validations
attr_accessor :start, :finish, :status
validates :start, :presence => true
validates :finish, :presence => true
end
@anny-goerl
anny-goerl / command line
Created December 7, 2013 14:40
JUG Gist
rails genarate scaffold user company name address:text picture
rails g gmaps4rails:copy_coffee
rails generate migration AddLatitudeAndLongitudeToUser latitude:float longitude:float
@anny-goerl
anny-goerl / de.yml
Last active April 10, 2022 13:45
German: Informal Du for Devise 4.6.2
de:
activerecord:
attributes:
user:
confirmation_sent_at: Bestätigung gesendet am
confirmation_token: Bestätigungs-Token
confirmed_at: Bestätigt am
created_at: Erstellt am
current_password: Bisheriges Passwort
current_sign_in_at: Aktuelle Anmeldung vom