Public Gists by drnic

Gravatar
Mon Nov 02 18:58:13 -0800 2009
1
2
3
Today I had my first look at rails 3.0.pre and below are the sequence of steps I had to take to create a rails 3.0.pre application, and get it's generators to work.
 
Why was I looking at the top-secret, yet open-source Rails 3.0? Their generators are being migrated over to Thor and I wanted to see t
Gravatar
Sun Nov 01 17:10:34 -0800 2009
1
2
3
* **What did you do to get good at Rails?**
* **Who taught you what you know?**
* **Do you have any fond (or not so fond) memories of your learning experiences?**
gist: 211438 A quick app built from scra...
Gravatar
Thu Oct 15 17:40:28 -0700 2009
1
2
3
class HomeController < ApplicationController
  def index
    if (@target_url = params["url"]) && !@target_url.blank?
Gravatar
Sun Oct 11 15:31:51 -0700 2009
1
2
3
# Temporary middleware for your APIs to immediately support a /v1/some/path.json prefix to
# all route calls.
#
Gravatar
Thu Sep 24 16:47:55 -0700 2009
1
2
3
      task :release => ["git:tag", "git:auto_push"]
      
      task :auto_push do
Gravatar
Thu Sep 24 16:35:40 -0700 2009
1
2
3
$ rake test
X....F.
.X...F.
Gravatar
Thu Sep 24 16:34:46 -0700 2009
1
2
3
task :test do
  puts <<-EOS.gsub(/^ /, '')
  X....F.
Gravatar
Wed Sep 23 22:01:45 -0700 2009
1
2
3
rake check_manifest # debug # Verify the manifest.
rake clean # # Clean up all the extras.
rake config_hoe # debug # Create a fresh ~/.hoerc file.
Gravatar
Wed Sep 23 20:55:17 -0700 2009
1
2
3
(in /Users/drnic/newproj)
rake announce # publish # Announce your release.
rake audit # test # Run ZenTest against the package.
gist: 187034 added a sample callback_url...
Gravatar
Mon Sep 14 17:46:05 -0700 2009
1
2
3
#!/usr/bin/env ruby -rubygems
 
require 'restclient'
gist: 180237 Setting webrat modes based ...
Gravatar
Thu Sep 03 03:41:10 -0700 2009
1
2
3
# Enable Webrat's Selenium mode if one or more scenarios is tagged @selenium
Webrat.configure do |config|
  config.mode = :rails
Gravatar
Tue Sep 01 13:03:04 -0700 2009
1
2
3
/Sites/pharmmd[master]$ script/generate
Usage: script/generate generator [options] [args]
 
gist: 177907 Error when installing driver
Gravatar
Sun Aug 30 01:54:10 -0700 2009

      
Gravatar
Wed Aug 26 22:48:33 -0700 2009
1
2
3
        <form action="/admin/document_templates/2" class="formtastic document_template" id="edit_document_template_2" method="post"><div style="margin:0;padding:0;display:inline"><input name="_method" type="hidden" value="put" /><input name="authenticity_token" type="hidden" value="WtzaApkH5wvC/V4ey9g0BTwN80fkgVyh4F5aGj6qC64=" /></div>
          
          <li class="string required" id="document_template_name_input"><label for="document_template_name">Name<abbr title="required">*</abbr></label><input id="document_template_name" maxlength="255" name="document_template[name]" size="50" type="text" value="Follow Up Letter" /></li>
Gravatar
Tue Aug 11 08:11:37 -0700 2009
1
2
3
$ time cucumber features/ --format=progress
....................................................................................
 
Gravatar
Mon Jul 20 21:21:30 -0700 2009
1
2
3
Little bush babies
------------------
 
Gravatar
Fri Jul 17 12:34:32 -0700 2009
1
2
3
require("spec_helper.js");
require("../../public/javascripts/add_data.js");
 
Gravatar
Tue Jul 07 06:20:06 -0700 2009

      
Gravatar
Tue Jul 07 06:14:38 -0700 2009
1
2
3
<string>DC4D5C6F-80DA-4FDF-815F-EEF68C1FC3E9</string>
<string>67262491-0033-4FF6-9AB7-46187500012D</string>
<string>------------------------------------</string>
Gravatar
Tue Jul 07 04:54:48 -0700 2009
1
2
3
class Food
  def to_s
    "Food is great"