- go to the command line and your home directory
cd ~/
- Type the following to install RVM
$nav_elements: home, bio, shows, music, video, photos, store; | |
$nav_element_positions: 86px, 55px, 62px, 82px, 88px, 103px, 94px; | |
@each $element,$position in $nav_elements,$nav_element_positions { | |
ul li.nav_#{$element} a { | |
width: $position; } | |
} |
/* =Menu | |
-------------------------------------------------------------- */ | |
div.menu { width: 570px; height: 72px; float: left; margin: 0 auto; padding: 22px 0 0 0; } | |
div.menu ul { width: 570px; height: 33px; margin: 0; padding: 0; float: left; background: url("images/mainnav.gif") no-repeat top left; } | |
div.menu ul li { list-style-type: none; float: left; margin: 0; padding: 0; display: inline; height: 33px; } | |
div.menu ul li a { display: block; height: 33px; text-indent: -9999px; outline: none; margin: 0; } | |
div.menu ul li.nav_home a { width: 86px; } | |
div.menu ul li.nav_bio a { width: 55px; } | |
div.menu ul li.nav_shows a { width: 62px; } |
= render :partial => 'shared/feed_item', :collection => @feed_items | |
.pagination | |
= link_to_next_page @feed_items, "More", :remote => true |
@mixin base-style{ | |
@include border-radius(3px); | |
@include background-image(linear-gradient(top, #eee, #dddddd)); | |
border: 1px solid #ccc; | |
@include prepend-top(20px); | |
@include clearfix; | |
hr{ | |
@include colruler(#fff); | |
margin:0px; |
# a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes | |
# NOTE: requires the faker or ffaker gem | |
# sudo gem install faker - http://faker.rubyforge.org | |
# OR | |
# sudo gem install ffaker - http://github.com/EmmanuelOga/ffaker | |
require 'faker' | |
class Fakeout |
// This is my handler in the javascript | |
var uploadCompleteHandler = function(upload_options,event){ | |
$.ajax({ | |
url: '<%= notify_rails_of_successful_upload_path(:format => :js)%>', | |
global: false, | |
type: 'POST', | |
data: ({ | |
'authenticity_token' : '<%= form_authenticity_token %>', | |
'upload' : { | |
'file_file_name' : upload_options.FileName, |
<script type="text/javascript"> | |
var queueBytesLoaded = 0; | |
var queueBytesTotal = 0; | |
var myQueue = null; | |
var queueChangeHandler = function(queue){ | |
// alert('Uploading Started'); | |
myQueue = queue; | |
// console.log("COLLECTION CHANGE!"); | |
var list = document.getElementById('file_todo_list'); |
Factory.define :application do |factory| | |
factory.attachment :sample, "public/samples/sample.doc", "application/msword" | |
end |