My Recent Pastes (97 and counting)

Pastes by celeretaudax (97 and counting)

Pages:

Below are the 15 most recent pasties by celeretaudax.

March 12, 2009
5:03PM EDT
by celeretaudax

function listMarkers() {
  var request = GXmlHttp.create();
  //tell the request where to retrieve data from.
  request.open('GET', 'list', true);
  //tell the request what to do when the state changes.

March 12, 2009
4:44PM EDT
by celeretaudax

function listMarkers() {
  var request = GXmlHttp.create();
  //tell the request where to retrieve data from.
  request.open('GET', 'list', true);
  //tell the request what to do when the state changes.

March 09, 2009
12:42PM EDT
by celeretaudax

##error with trace

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment

November 17, 2008
11:46PM EDT
by celeretaudax

##helper_method in application_helper.rb

  def infowindow_for(object)
    p = "#{object.address}<br/>"
    p << "<input type='button' value='Edit' onclick='$("

November 16, 2008
12:09PM EDT
by celeretaudax

##helper

#I want this to return a count of how many attributes aren't blank, currently I get 1, I should be getting 5 
 def nil_blank_count(object, count = 0)
    object.attributes.each do |stuff|

November 16, 2008
3:23AM EDT
by celeretaudax

##helper

  def nil_blank_count (object)
    count = 0
    object.attributes.each do |stuff|

November 11, 2008
12:51AM EDT
by celeretaudax

validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i, :if => :email_required?

def email_required?
  !self.email.nil?
end

November 11, 2008
12:27AM EDT
by celeretaudax

rake RUBYARCHDIR=/usr/lib/ruby/gems/1.8/gems/nokogiri-1.0.4/lib RUBYLIBDIR=/usr/lib/ruby/gems/1.8/gems/nokogiri-1.0.4/lib
(in /usr/lib/ruby/gems/1.8/gems/nokogiri-1.0.4)
checking for xmlParseDoc() in -lxml2... no
checking for xsltParseStylesheetDoc() in -lxslt... no
checking for #include <libxml/xmlversion.h>

November 02, 2008
9:53PM EDT
by celeretaudax

class Personal < ActiveRecord::Base
        
  # Associations
  belongs_to :user

November 02, 2008
3:51AM EDT
by celeretaudax

<html><body><script type='text/javascript' charset='utf-8'>

        var loc = document.location;

        with(window.parent) { setTimeout(function() { window.eval('try {\n$(\"avatar_form\").toggle(

November 02, 2008
12:58AM EDT
by celeretaudax

<% if @user.personal.nil? %>
                <% remote_form_for :personal, 
                                :url => new_user_personal_path(@user), 
                                :html => { :method => :put } do |f| %>
        <% end %>

November 01, 2008
9:27PM EDT
by celeretaudax

## console

lovebucket@lovebucket-laptop:~/apps/stat$ script/console
Loading development environment (Rails 2.1.2)
>> u = User.find(1)

November 01, 2008
3:45PM EDT
by celeretaudax

##user.rb

#Everything works except the user's password doesn't get updated in the database, I think it might be conflicting validations or possibly that I am setting it wrong.

  def send_new_password

October 28, 2008
11:38PM EDT
by celeretaudax

<html><body><script type='text/javascript' charset='utf-8'>

        var loc = document.location;

        with(window.parent) { setTimeout(function() { window.eval('try {\n$(\"avatar_form\").toggle(

October 28, 2008
10:16PM EDT
by celeretaudax

## profiles_controller.rb

# PUT /profiles/1
  # PUT /profiles/1.xml
  def update

Next page

Previous page