This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
adapter: mysql | |
encoding: utf8 | |
reconnect: false | |
database: crossroads_dev | |
pool: 5 | |
username: user | |
password: password | |
socket: /tmp/mysql.sock | |
host: http://mysql.myurl.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^C/Library/Ruby/Site/1.8/rubygems/source_index.rb:334:in `search': Interrupt | |
from /Library/Ruby/Site/1.8/rubygems/source_index.rb:280:in `find_name' | |
from /Library/Ruby/Site/1.8/rubygems.rb:260:in `activate' | |
from /Library/Ruby/Site/1.8/rubygems.rb:68:in `gem' | |
from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel/gems.rb:12:in `require' | |
from /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:17 | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require' | |
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require' | |
from /Users/maxwell/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in `require' | |
from /Users/maxwell/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in `new_constants_in' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StatusMessage Load (1.6ms) SELECT DISTINCT `posts`.* FROM `posts` INNER JOIN `post_visibilities` ON `posts`.`id` = `post_visibilities`.`post_id` INNER JOIN `aspects` ON `aspects`.`id` = `post_visibilities`.`aspect_id` WHERE (`posts`.`type` = 'StatusMessage') AND (`posts`.`pending` = 0) AND (`aspects`.`id` IN (3, 4)) ORDER BY created_at DESC LIMIT 15 OFFSET 0 | |
SQL (0.4ms) SELECT COUNT(DISTINCT `contacts`.`id`) FROM `contacts` LEFT OUTER JOIN `people` ON `people`.`id` = `contacts`.`person_id` WHERE (`contacts`.user_id = 2) AND (`contacts`.`pending` = 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RailsAdmin.config do |config| | |
config.excluded_models << Services::Facebook | |
config.excluded_models << Services::Twitter ##these are STI and namespaced.... | |
end | |
#i may need to more of this, but it was incorrectly pluralizing this and looking for a controller for this..(should be services_controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#this can just be: | |
def get_javascript_strings_for(language) | |
yml_path = File.join(Rails.root, "config/locales/diaspora/", "#{language}.yml") | |
yaml = YAML::load IO.read(yml_path) | |
yaml[language]["javascripts"] | |
end | |
# | |
def get_javascript_strings_for(language) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module HasPersonProxy | |
module ClassMethods | |
def always_has_one_person | |
self.instance_eval do | |
has_one :person | |
include InstanceMethods | |
alias_method_chain :person, :proxy | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blacklight joined the chat room. | |
[10:30am] blacklight: i have an ask regarding a diaspora issue with firefox...both on joindiaspora.com and a local installation of diaspora i get "failed to post message" popup error when i try to post a new update | |
[10:30am] blacklight: but it works fine when i comment on someone's else message | |
[10:31am] blacklight: i don't get this issue on any other browser, i'm using firefox 4.0b11 | |
[10:31am] MrZYX: hm so it's probably JS related | |
[10:33am] blacklight: what could it be related to? i've also tried with a brand new firefox profile | |
[10:33am] kapcom01 left the chat room. (Ping timeout: 240 seconds) | |
[10:33am] blacklight: so i'm sure it should not depend on an extension | |
[10:38am] blacklight: (just tested, it works fine with firefox 3.6...where could the problem be?) | |
[10:38am] MrZYX: hm I guess you're not experienced with js debugging? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".new_status_message").bind('ajax:failure', function(data, html, xhr) { | |
json = $.parseJSON(html.response); | |
if(json.errors.length != 0){ | |
Diaspora.widgets.alert.alert(json.errors); | |
}else{ | |
Diaspora.widgets.alert.alert('Failed to post message!'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#when i do this | |
def require_all_model_classes | |
# Rails only loads classes when they are used | |
# To populate our registry we require each file in app/models | |
models = Dir.entries(Rails.root.to_s + '/app/models/').select{|f| f =~ /^\w/} | |
puts models.inspect | |
models.each do |f| | |
f.sub('.rb', '').classify.constantize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maxwell~/Sites/diaspora (master *)$ rake | |
(in /Users/maxwell/Sites/diaspora) | |
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. | |
Gem::Specification#default_executable= called from /Users/maxwell/Sites/diaspora/vendor/gems/jasmine/jasmine.gemspec:13 | |
. | |
/Users/maxwell/.rvm/rubies/ree-1.8.7-2010.02/bin/ruby -S bundle exec rspec ./spec/config/config_spec.rb ./spec/controllers/admins_controller_spec.rb ./spec/controllers/apis_controller_spec.rb ./spec/controllers/application_controller_spec.rb ./spec/controllers/aspect_memberships_controller_spec.rb ./spec/controllers/aspects_controller_spec.rb ./spec/controllers/comments_controller_spec.rb ./spec/controllers/contacts_controller_spec.rb ./spec/controllers/conversation_visibilities_controller_spec.rb ./spec/controllers/conversations_controller_spec.rb ./spec/controllers/home_controller_spec.rb ./spec/controllers/invitations_controller_spec.rb ./spec/controllers/likes_controller_spec.rb ./spec/cont |
OlderNewer