Skip to content

Instantly share code, notes, and snippets.

Hi David,
My name is Jeff Morse. I'm a Recruiter at a super-charged start-up called Mixbook www.mixbook.com I came across your profile on workingwithrails and have a full-time Sr. Ruby on Rails opening working onsite in our Palo Alto, California office that is a great match for your background/experience. Would you be ready to make the move to Silicon Valley, the most innovative place for web start ups which offers superior growth opportunities for talented ruby developers like yourself? Mixbook will pay for all relocation costs.
Would you be open to taking a phone/Sykpe call from our CTO, Aryk Grosz (see attached LinkedIn profile) to discuss the position further? If interested, email me your Skype ID and I’ll coordinate the call with Aryk.
Cheers,
Jeff Morse
Sr. Recruiter
class PostsController < ActionController::Base
def create
Post.create(post_params)
end
def update
Post.find(params[:id]).update_attributes!(post_params)
end
private
# app/views/posts/new.html.erb
<%= form_for(Post.new) do |form| %>
Title: <%= form.text_field :title %>
Body: <%= form.text_field :body %>
<% end %>
...would produce a signature field that can be used to automatically untaint:
<input type="hidden" name="signature" value="....">
Hi,
My name is Charles Bernoskie and I noticed that XYZ Corp is looking
for a LAMP developer. Many of the qualifications you are looking for in a
developer (e.g. PHP, Python, MySQL, Java) are identical to those of a
daily Stack Overflow user.
Stack Overflow is the largest programming community(Over 20mm visitors
per month) with the fastest growing career section for developers on the
internet. We offer a satisfaction guarantee. If you are not completely
class ActionDispatch::Routing::Mapper
def draw(routes_name)
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))
end
end
BCX::Application.routes.draw do
draw :api
draw :account
draw :session
@dhh
dhh / gist:2643144
Created May 9, 2012 08:57
Coding stats from the new Basecamp
bcx david$ rake stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 3704 | 2942 | 72 | 479 | 6 | 4 |
| Helpers | 1901 | 1529 | 13 | 261 | 20 | 3 |
| Models | 5310 | 4116 | 50 | 653 | 13 | 4 |
| Libraries | 2167 | 1593 | 51 | 200 | 3 | 5 |
| Integration tests | 297 | 217 | 6 | 1 | 0 | 215 |
| Functional tests | 3897 | 3065 | 61 | 11 | 0 | 276 |
arrogance:
inbox: feedback
conversation: arrogance
sender: hater (Contact)
subject: Less arrogance!
excerpt: You guys really shouldn't be so arrogant!
bug:
inbox: security
conversation: bug
@dhh
dhh / gist:7226428
Created October 30, 2013 02:40
Recruiter spam
Attention Talented Ruby on Rails Coders,
My new client is an exciting startup in the SF Bay area which has just closed on VC
funding and is actively seeking to hire several senior-level RoR coders with 3+ years of experience. They are a web and mobile platform solution allowing artists (singers, film-makers, etc.) to sell digital content directly to the consumer. They have already established multiple celebrities as members and are rapidly acquiring more. The position offers competitive salary, benefits, and pre-IPO stock options.
We are not looking for any contractors, telecommuters, or people who wish to work from remote locations. This situation may change after the company becomes more mature, but there is a strong consensus that on-site, full-time employees are required at this early stage.
We have actually already filled the CTO and CIO positions with the company in record time, largely because qualified candidates were immediately aware of the unique market-position of this company and the dynam
  1. First-use of the message template
<% renders messages/_message.html.erb %>
<%= render @messages %>
  1. Form submitting via Ajax
<%= form_for @project.messages.new, remote: true do |form| %>
 ...
David Heinemeier
Gihub:
• 14 repos related to Ruby
• multiple comments in rails/rails
RubyGem
• 23 Gems
• 227,964,383 downloads
Vimeo
• Uploaded RubyConf video
37Signals