Skip to content

Instantly share code, notes, and snippets.

View tubbo's full-sized avatar
:shipit:
i don't make rails apps you use, i make the rails apps you use faster..

Tom Scott tubbo

:shipit:
i don't make rails apps you use, i make the rails apps you use faster..
View GitHub Profile
# Shows all Follows for the current User, but only send who this User follows in an XML request.
def index
@following = Follow.find(:all, :conditions => {:follower_id => current_user.id})
@followers = Follow.find(:all, :conditions => {:followee_id => current_user.id})
@updates = nil
@following.each do |follow|
@updates += follow.user.timeline
end
# Be sure to restart your server when you modify this file
# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
Processing UsersController#create (for 69.142.78.178 at 2010-08-04 11:37:35) [POST]
Parameters: {"commit"=>"Signup", "user"=>{"password_confirmation"=>"HEYNOW", "last_name"=>"Scott", "password"=>"HEYNOW", "login"=>"tubbo", "email"=>"HEYNOW", "first_name"=>"Tom"}}
Sent mail to [email protected]
ArgumentError (wrong number of arguments (3 for 2)):
/usr/ruby1.8.7/lib/ruby/1.8/net/smtp.rb:525:in `start'
app/models/user_observer.rb:22:in `after_create'
/usr/ruby1.8.7/lib/ruby/1.8/observer.rb:185:in `notify_observers'
/usr/ruby1.8.7/lib/ruby/1.8/observer.rb:184:in `each'
/usr/ruby1.8.7/lib/ruby/1.8/observer.rb:184:in `notify_observers'
/Users/necromancer/Sites/illup/vendor/plugins/gmail_smtp/lib/smtp_tls.rb:8:in `check_auth_args'
/Users/necromancer/Sites/illup/vendor/plugins/gmail_smtp/lib/smtp_tls.rb:8:in `do_start'
/opt/local/lib/ruby/1.8/net/smtp.rb:525:in `start'
/Users/necromancer/.gem/ruby/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:682:in `perform_delivery_smtp'
/Users/necromancer/.gem/ruby/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:523:in `__send__'
/Users/necromancer/.gem/ruby/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:523:in `deliver!'
/Users/necromancer/.gem/ruby/1.8/gems/actionmailer-2.3.8/lib/action_mailer/base.rb:395:in `method_missing'
/Users/necromancer/Sites/illup/app/models/user_observer.rb:22:in `after_create'
/Users/necromancer/Sites/illup/app/controllers/users_controller.rb:247:in `create'
<div id="login-window" title="Sign in with your username and password">
<p>
<%- form_tag session_path do -%>
Login: <%= text_field_tag 'login' %><br />
Password: <%= password_field_tag 'password' %>
<%- end -%>
</p>
</div>
<script type="text/javascript">
$(document).ready(function() {
<form id="login-window" action="/session" method="post" title="Sign in with your username and password">
Login: <input id="login" name="login" type="text" /><br />
Password: <input id="password" name="password" type="password" />
</form>
<script type="text/javascript">
$(document).ready(function() {
$('#login-window').dialog({
autoOpen: false,
resizable: true,
draggable: false,
<form id="login-window" action="/session" method="post" title="Sign in with your username and password">
Login: <input id="login" name="login" type="text" /><br />
Password: <input id="password" name="password" type="password" />
</form>
<script type="text/javascript">
$(document).ready(function() {
$('#login-window').dialog({
autoOpen: false,
resizable: true,
draggable: false,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>IllUp</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link href="/stylesheets/style.css?1282184906" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/ui-lightness/jquery-ui-1.8.2.custom.css?1280946234" media="screen" rel="stylesheet" type="text/css" />
<script src="/javascripts/jquery-1.4.2.min.js?1279142840" type="text/javascript"></script>
function render_genres_menu() {
$("#genres").hover(function() {
$("#genres-menu").show("blind");
}, function() {
$('#genres-menu').hide("blind");
});
$("#genres-menu").hover(function() {
$("#genres-menu").show();
}, function() {
function renderForm() {
$("#form-accordion").accordion({ // the entire form is stored in an ajax accordion
fillSpace: true,
animation: 'slide',
navigation: true,
change: function(ev, ui) {
var content_div = ui.newContent.attr("id");
// replaces new <div> content with the content from inc/[[id]].html
$.get('inc/'+content_div+'.html', function(data) {
ui.newContent.replaceWith(data);