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
rake aborted! | |
undefined method `[]' for #<Enumerable::Enumerator:0x9849d5c> | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/core_ext/string/access.rb:43:in `first' | |
/var/www/mephisto/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu.rb:66:in `has_attachment' | |
./db/migrate//033_user_hostile_template_migration.rb:8 | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/dependencies.rb:489:in `load' | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/dependencies.rb:489:in `load' | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/dependencies.rb:342:in `new_constants_in' | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/dependencies.rb:489:in `load' | |
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.5/lib/active_record/migration.rb:360:in `migration_classes' |
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
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.5/lib/active_record/connection_adapters/mysql_adapter.rb:472:in `real_connect': Unknown database 'mephisto_development' (Mysql::Error) | |
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.5/lib/active_record/connection_adapters/mysql_adapter.rb:472:in `connect' | |
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.5/lib/active_record/connection_adapters/mysql_adapter.rb:165:in `initialize' | |
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.5/lib/active_record/connection_adapters/mysql_adapter.rb:88:in `new' | |
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.5/lib/active_record/connection_adapters/mysql_adapter.rb:88:in `mysql_connection' | |
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.5/lib/active_record/connection_adapters/abstract/connection_specification.rb:291:in `send' | |
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.5/lib/active_record/connection_adapters/abstract/connec |
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
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/dependencies.rb:263:in `load_missing_constant': uninitialized constant Rails::Info (NameError) | |
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/dependencies.rb:453:in `const_missing' | |
from /opt/local/lib/ruby/gems/1.8/gems/rails-2.0.5/lib/commands/about.rb:2 | |
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' | |
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from script/about:3 | |
[root@dev /var/www/mephisto]# |
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
Processing ArticlesController#new (for 71.131.187.156 at 2008-12-06 18:56:22) [GET] | |
Session ID: BAh7CDoOcmV0dXJuX3RvMDoJdXNlcmkGIgpmbGFzaElDOidBY3Rpb25Db250%0Acm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--e968445f47c716749fc560dbe109721a3770924d | |
Parameters: {"action"=>"new", "controller"=>"admin/articles"} | |
LoadError (Expected /var/www/jasonwong/app/models/asset.rb to define Asset): | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/dependencies.rb:249:in `load_missing_constant' | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/dependencies.rb:453:in `const_missing' | |
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.5/lib/active_support/dependencies.rb:465:in `const_missing' | |
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.0.5/lib/active_record/base.rb:1762:in `compute_type' |
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
NoMethodError in Admin/overview#index | |
Showing admin/overview/_comment_event.rhtml where line #8 raised: | |
undefined method `-' for {:length=>100}:Hash | |
Extracted source (around line #8): | |
5: | |
6: <span class="event-time"><%= event_time_for event, later %></span> |
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
[root@dev /var/www/jasonwong]# script/console RAILS_ENV=production | |
Loading RAILS_ENV=production environment (Rails 2.2.2) | |
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:340:in `read':Errno::ENOENT: No such file or directory - /var/www/jasonwong/config/environments/RAILS_ENV=production.rb | |
/var/www/jasonwong/app/controllers/application.rb:9:NoMethodError: undefined method `auto_include!' for ApplicationController:Class | |
>> Asset | |
ActiveRecord::ConnectionNotEstablished: ActiveRecord::ConnectionNotEstablished | |
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in `retrieve_connection' | |
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in `retrieve_connection' | |
from /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:113:in `connectio |
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
# Helper methods defined here can be accessed in any controller or view in the application | |
Emparse.helpers do | |
def logindata(login, password, spreadkey) | |
session = GoogleSpreadsheet.login(login, password) | |
ws = session.spreadsheet_by_key(spreadkey).worksheets[0] | |
fname = [] | |
lname = [] | |
address = [] | |
for row in 2..ws.num_rows |
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
require "rubygems" | |
require "google_spreadsheet" | |
# Logs in. | |
# You can also use OAuth. See document of GoogleSpreadsheet.login_with_oauth for details. | |
session = GoogleSpreadsheet.login(login, password) | |
# First worksheet of http://spreadsheets.google.com/ccc?key=pz7XtlQC-PYx-jrVMJErTcg&hl=en | |
ws = session.spreadsheet_by_key(dockey).worksheets[0] | |
#puts ws.rows[1] |
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
require "rubygems" | |
require "google_spreadsheet" | |
# Logs in. | |
# You can also use OAuth. See document of GoogleSpreadsheet.login_with_oauth for details. | |
session = GoogleSpreadsheet.login(login, password) | |
# First worksheet of http://spreadsheets.google.com/ccc?key=pz7XtlQC-PYx-jrVMJErTcg&hl=en | |
ws = session.spreadsheet_by_key(dockey).worksheets[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
➜ sample_app git:(sign-up) ✗ rails c | |
Loading development environment (Rails 3.2.6) | |
irb(main):001:0> require "capybara/rails" | |
=> true | |
irb(main):002:0> include Capybara::DSL | |
=> Object | |
irb(main):003:0> include Rails.application.routes.url_helpers | |
=> Object | |
irb(main):005:0> visit signup_path | |
=> nil |
OlderNewer