This is the website for Dinosaur Cowboys, we are a World of Warcraft raiding guild on Sargeras Alliance.
This application is build under the assumption the following dependencies are installed. Postgres 9.3.2, Ruby 2.1, Rails 4.0.
To run locally:
git clone https://github.com/nixpulvis/website.git
cd website
bundle install
rake db:create && rake db:migrate && rake db:seed
foreman start
Adding heroku:
git remote add production git@heroku.com:dinosaurcowboys.git
git config heroku.remote production # Allows for `heroku` command to default to production.
Getting the latest database backup locally is as easy as running the following command.
rake db:pull
To tell heroku to capture a backup of the current production database run the following.
rake db:capture
It's important to hold to conventions, and implement things in a consistent way. This allows for sanity around bug fixes, and changing things in general.
TODO: Write this.
TODO: Write this.
Following the conventions of Rails, there will be a folder for pages for every controller. Files in these directories either correspond to an action name from the controller, or are a partial, starting with a _.
- Never user ids for styling. Ids are for scripting only.
- Classes MUST be styled for any page. Never give a class styles just for a specific page.
- Style the layout of a page by the page's html elements.
<div class="page">
<section class="content">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</section>
<aside>
<p>This is just some latin...</p>
</aside>
</div>.<controller-name>.<action-name>,
.<controller-name>.<other-action-name> {
section {
@include span-columns(8);
}
aside {
@include span-columns(4);
@include omega();
}
}