Skip to content

Instantly share code, notes, and snippets.

View afarnham's full-sized avatar

Aaron Farnham afarnham

View GitHub Profile
uninitialized constant Merb::Rack::StreamWrapper
/data/merb/dp-site/current/bin/../gems/gems/merb-core-0.9.10/lib/merb-core/controller/merb_controller.rb:348:in `rack_response'
/data/merb/dp-site/current/bin/../gems/gems/merb-core-0.9.10/lib/merb-core/dispatch/dispatcher.rb:79:in `handle'
/data/merb/dp-site/current/bin/../gems/gems/merb-core-0.9.10/lib/merb-core/dispatch/dispatcher.rb:35:in `handle'
/data/merb/dp-site/current/bin/../gems/gems/merb-core-0.9.10/lib/merb-core/rack/application.rb:17:in `call'
/data/merb/dp-site/current/bin/../gems/gems/merb-core-0.9.10/lib/merb-core/rack/middleware/static.rb:26:in `call'
/data/merb/dp-site/current/bin/../gems/gems/merb-core-0.9.10/lib/merb-core/rack/handler/mongrel.rb:75:in `process'
/data/merb/dp-site/current/gems/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
/data/merb/dp-site/current/gems/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
/data/merb/dp-site/current/gems/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
class Group
include DataMapper::Resource
property :id, Integer, :serial => true
property :name, String, :length => 256
has n, :states, :through => Resource
end
class State
~/work/dp-admanager $ merb
~ Loaded DEVELOPMENT Environment...
~ Connecting to database...
~ loading gem 'merb_datamapper' ...
~ Compiling routes...
/usr/lib/ruby/1.8/pathname.rb:205:in `dup': can't dup Symbol (TypeError)
from /usr/lib/ruby/1.8/pathname.rb:205:in `initialize'
from /usr/lib/ruby/1.8/pathname.rb:582:in `new'
from /usr/lib/ruby/1.8/pathname.rb:582:in `+'
from /usr/lib/ruby/gems/1.8/gems/extlib-0.9.4/lib/extlib/pathname.rb:3:in `/'
class RatingWidget(forms.MultiWidget):
def __init__(self):
widgets = (QuestionWidget, forms.RadioSelect(attrs={'class': 'yourclass'}, choices=RATINGS), forms.Textarea)
super(RatingWidget, self).__init__(widgets)
// This version works
$('#account_info_form').submit(function() {
$.facebox(function() {
$("#account_info_form").ajaxSubmit(function(respText, statusText) {
if (statusText == "success")
$.facebox("Account Information successfully update");
else
$.facebox("Failed to update Account Information.");
})
});