sudo -u postgres pg_dump -Fc »db_name« > *dump_name*.dump

jens | show | 13.06.2016 20:33

We're awfully sorry

but cinephilia.at ran out of service.
it is now reachable here: http://cinephilia-at.herokuapp.com
and https://ist-ur.org is still under construction and it is growing. Join us now!

jens | show | 03.01.2016 16:55
jens | show | 15.03.2015 16:53

friendly_id

If you're using the friendly_id gem in your rails project you've recognized the hyphen in the slug.
E.g. you registered a new user:
foo bar
the slug will be foo-bar by default.
That is not comfortable for some reasons, an underscore will be the better solution.
Type in your model:


class User < ActiveRecord::Base

extend FriendlyId
friendly_id :name, use: :slugged, :sequence_seperator => '_'

def normalize_friendly_id(text)
super.gsub('-', '_')
end

end

jens | show | 13.03.2015 10:15


© service - b.org 2012