Skip to content

Instantly share code, notes, and snippets.

@samdk
samdk / new_collabbit_instance.rb
Created October 22, 2010 05:13
Run these commands in script/console to create a new Collabbit instance.
# create the instance and set up the roles
i = Instance.create(:long_name => "Instance Long Name")
i.short_name = "short_name"
i.roles = Role.default_setup
i.save
# create a new user
u = i.users.create(:first_name => "John", :last_name => "Smith", :email => "johnsmith@example.com")
u.role = i.roles.find_by_name('Super Administrator') # assign a role
u.generate_salt!
@samdk
samdk / example.css
Created June 3, 2010 16:55
Collabbit HTML/CSS code style example
/* general styles go at the top */
a {
text-decoration: none;
color: black;
}
/* specific styles are hierarchically organized below */
body {
font-family: Helvetica, 'Helvetica Neue', Arial, sans-serif;
font-size: 16px;
background: white;
@samdk
samdk / database.yml
Created June 2, 2010 20:12
Default configuration files for Collabbit development.
development:
adapter: mysql
encoding: utf8
database: collabbit_dev
username:
password:
host: localhost
test:
adapter: mysql