TODO: make gem for this
This was tested using Rails 3.2 and Rails 4.0 on Ruby 2.0.0.
-
Set the install directory for Bower components:
// .bowerrc
$("#selectBox").append('<option value="option6">option6</option>'); |
## | |
Lets say we have YoloFont.otf | |
1. We add it to vendor/assets/fonts/ folder | |
2. Me personaly creates a file named fonts.css.scss in app/assets/stylesheets | |
In it I have | |
@font-face{ | |
font-family: 'YoloFont'; |
class @GoogleAnalytics | |
@load: -> | |
# Load the analytics code | |
window['GoogleAnalyticsObject'] = 'ga' | |
window['ga'] = window['ga'] || -> | |
(window['ga'].q = window['ga'].q || []).push arguments | |
window['ga'].l = 1 * new Date() | |
# Add the script |
<select class="ddlList"> | |
<option value="3">Three</option> | |
<option value="1">One</option> | |
<option value="1">one</option> | |
<option value="1">a</option> | |
<option value="1">b</option> | |
<option value="1">A</option> | |
<option value="1">B</option> | |
<option value="0">Zero</option> | |
<option value="2">Two</option> |
Most of this I got from the DigitalOcean file.
ssh root@ip.address.of.server
. Enter your password if needed.passwd
into the console to change the password of root to something you can remember.adduser [username]
in the console. Feel free to fill out the Fu=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
Originally published in June 2008
When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.
To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.
Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.