My Recent Pastes (7 and counting)

Pastes by brianjlandau (7 and counting)

Below are the 7 most recent pasties by brianjlandau.

March 05, 2009
3:39PM EDT
by brianjlandau

render :update do |page|
  page.call 'create_or_insert_flash', 'notice', 'Your client has been added to the selected client group.'
end

March 05, 2009
3:33PM EDT
by brianjlandau

$('.model-listing form.edit-comments').attach(Remote.Form, {
    dataType: 'json',
    success: function(json, status){
      if (json.comment){
        var parent_model = $(this.element[0]).parents('.model-listing');

July 02, 2008
10:50AM EDT
by brianjlandau

require File.dirname(__FILE__) + '/generator_test_init'

class HelperGeneratorTest < GeneratorTestCase
  def setup
    super

July 02, 2008
10:38AM EDT
by brianjlandau

# generator_test_init.rb

# This is so the initializer is properly found
$:.unshift Gem.searcher.find('rails_generator').full_gem_path + '/lib'
ENV["RAILS_ENV"] = "test"

July 02, 2008
10:37AM EDT
by brianjlandau

# generator_test_init.rb

# This is so the initializer is properly found
$:.unshift Gem.searcher.find('rails_generator').full_gem_path + '/lib'
ENV["RAILS_ENV"] = "test"

June 05, 2008
6:56PM EDT
by brianjlandau

## test_helper.rb

ENV["RAILS_ENV"] = "test"
PLUGIN_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))

June 04, 2008
1:16PM EDT
by brianjlandau

## test_helper.rb

ENV["RAILS_ENV"] = "test"
PLUGIN_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))