search for: rb

Displaying 20 results from an estimated 12330 matches for "rb".

Did you mean: rmb
2008 Jan 16
0
[CruiseControl] RubyOnRails build 8649 failed
...failed. CHANGES ------- Revision 8649 committed by gbuesing on 2008-01-16 20:07:10 Introducing DateTime #utc, #utc? and #utc_offset, for duck-typing compatibility with Time. Closes #10002 M /trunk/activesupport/CHANGELOG M /trunk/activesupport/lib/active_support/core_ext/date_time/calculations.rb M /trunk/activesupport/test/core_ext/date_time_ext_test.rb TEST FAILURES AND ERRORS ----------------------- Name: test_belongs_to_polymorphic_with_counter_cache(AssociationsJoinModelTest) Type: Failure Message: <0> expected but was <nil>. ./test/associations/join_model_test.rb:299...
2008 Jan 19
0
[CruiseControl] RubyOnRails build 8671 failed
The build failed. CHANGES ------- Revision 8671 committed by bitsweat on 2008-01-19 03:45:24 Support aggregations in finder conditions. Closes #10572. M /trunk/activerecord/test/cases/finder_test.rb M /trunk/activerecord/CHANGELOG M /trunk/activerecord/lib/active_record/aggregations.rb M /trunk/activerecord/lib/active_record/base.rb TEST FAILURES AND ERRORS ----------------------- Name: test_custom_template(ActionMailerTest) Type: Failure Message: Exception raised: Class: <ActionVi...
2007 Jul 30
8
regular expressions : extracting numbers
Hello all, I have a vector of character strings, in which I have letters, numbers, and symbols. What I wish to do is obtain a vector of the same length with just the numbers. A quick example - extract of the original vector : "lema, rb 2%" "rb 2%" "rb 3%" "rb 4%" "rb 3%" "rb 2%,mineuse" "rb" "rb" "rb 12" "rb" "rj 30%" "rb" "rb" "rb 25%" "rb" "rb" "rb" "rj, rb&quo...
2010 Sep 01
4
NoMethodError: undefined method `force_encoding' for "Conten
...it gives me this error: mac159180:mechanize renatosis$ rake (in /private/tmp/mechanize) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -w -Ilib:bin:test:. -e ''require "rubygems"; require "test/unit"; require "test/chain/test_argument_validator.rb"; require "test/chain/test_auth_headers.rb"; require "test/chain/test_custom_headers.rb"; require "test/chain/test_header_resolver.rb"; require "test/chain/test_parameter_resolver.rb"; require "test/chain/test_request_resolver.rb"; require &quo...
2010 Jun 11
5
Issues creating tables in mysql tests
...eciated; I''m still trying to find my way around Rails code. For a bug I''ve found I need to create a table called "values" so I added this: create_table :values do |t| t.integer :value end among the other table creations in activerecord/test/cases/migration_test.rb. Is that ok? But then, when I run the tests for a second time, I get an error about values already existing. Where are the drop table calls? I couldn''t find them. My more immediate problem so far is that I''m getting this error: /Users/pupeno/Projects/rails/rails/activerecord/lib...
2005 Nov 26
4
activerecord rake test_mysql
...ing all priveleges to both databases) ran $RAILS_HOME/activerecord\test\fixtures\db_definitions\mysql.sql on activerecord_unittest ran $RAILS_HOME/activerecord\test\fixtures\db_definitions\mysql2.sql on activerecord_unittest2 modified $RAILS_HOME/activerecord\test\connections\native_mysql/connect.rb accordingly I removed all my local changes, so I''m running with a pristine copy of the current trunk. cd $RAILS_HOME/activerecord rake test_mysql below I posted the output I received. Is this correct or should all tests pass? Thanks, Ben (in C:/ruby/projects/rails/projects/myWardrobe/...
2008 Nov 24
14
Problem with RubyGems installation
Hello, I am trying to install RubyGems on Ubuntu and i''m having trouble. I''ve downloaded rubygems 1.3.1 and when i run the sudo ruby setup.rb command I get the problem mentioned below. I''d really appreciate if someone can help me out. Thanks mkdir -p /usr/local/lib/site_ruby/1.8 mkdir -p /usr/bin install -c -m 0644 rbconfig/datadir.rb /usr/local/lib/site_ruby/1.8/rbconfig/datadir.rb install -c -m 0644 rubygems.rb /usr/local/l...
2007 Dec 13
3
Realise a web service with ruby on rails.
...a web service with rails, but it''s the response it''s very slow. I want only saw all element present in my base. I did a base Customers (with element like id, name, phone,...). I added two elements. I did a model customer, a web_service customer. In the file /app/apis/customer_api.rb class CustomerApi < ActionWebService::API::Base api_method :listid, :expects => [:int], :returns => [Customer] api_method :listall, :returns => [[:int]] In the file /app/controller/customer_controller.rb class CustomerController < ApplicationController wsdl_service_name '...
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...:Base belongs_to :controller_action belongs_to :role attr_accessor :enable # nice little thingy here # It is now recommended to use strong params instead of ''attr_accessible :enable, :controller_action_id, :role_id'' end controller_actions_controller.rb ... private # Use callbacks to share common setup or constraints between actions. def set_controller_action @controller_action = ControllerAction.find(params[:id]) end # Never trust parameters from the scary internet, only allow the white list...
2010 Dec 10
0
Encoding issues when uploading files
...desc] + params[:file].original_filename end end The problem occurs, when I use national-specific characters in both "desc" field and the name of the file I''m uploading Error: incompatible character encodings: UTF-8 and ASCII-8BIT Full trace: app/controllers/index_controller.rb:6:in `upload'' actionpack (3.0.0) lib/action_controller/metal/implicit_render.rb:4:in `send_action'' actionpack (3.0.0) lib/abstract_controller/base.rb:150:in `process_action'' actionpack (3.0.0) lib/action_controller/metal/rendering.rb:11:in `process_action'' action...
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
...appening with mail sending mail . I am using AUTHSMTP to send mails . Unable to send mail and the app breaks . Any help will be appreciated . Same code worked with ruby 1.8 and rails 2.3.x . *Configuration* Rails 3.2 Ruby 1.9 Engineyard , Linux Instance *Backtrace :* /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `initialize'' /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `open'' /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `tcp_socket'' /usr/lib/ruby/1.9.1/net/smtp.rb:549:in `block in do_start'' /usr/lib/ruby/1.9.1/timeout.rb:68:in `timeout'' /usr/lib/ruby/1.9.1/timeo...
2012 Apr 24
1
Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
...appening with mail sending mail . I am using AUTHSMTP to send mails . Unable to send mail and the app breaks . Any help will be appreciated . Same code worked with ruby 1.8 and rails 2.3.x . *Configuration* Rails 3.2 Ruby 1.9 Engineyard , Linux Instance *Backtrace :* /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `initialize'' /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `open'' /usr/lib/ruby/1.9.1/net/smtp.rb:540:in `tcp_socket'' /usr/lib/ruby/1.9.1/net/smtp.rb:549:in `block in do_start'' /usr/lib/ruby/1.9.1/timeout.rb:68:in `timeout'' /usr/lib/ruby/1.9.1/timeo...
2012 Sep 14
2
assistance needed - err: Could not retrieve catalog from remote server: execution expired
...: execution expired I disabled passenger and ran through the builtin webrick, and confirmed that only one node is talking to the master. No change. No helpful information in the master log. I''m running the master with: /usr/sbin/puppetmasterd --no-daemonize --debug --logdest console --verbose --trace and some relevant puppet.conf portions on the master: storeconfigs = true thin_storeconfigs = true reports = log,puppet_dashboard reportfrom = root syslogfacility = user # Remote Inventory Service facts_terminus = rest inventory_server = tv-puppetma1.techtarget.com # fqdn of master in...
2010 Jul 27
13
3.0.0rc ActionController::RoutingError No route matches
...n 3.0.0beta4 and just updated to 3.0.0.rc. When I try to link_to() a User object that previously had worked, I get the following: ActionView::Template::Error (No route matches {:action=>"destroy", :controller=>"games", :id=>#<User ..... > Yet I have in my routes.rb file has resources :users and my "rake routes" shows: GET / users/:id(.:format) {:controller=>"users", :action=>"show"} PUT / users/:id(.:format) {:controller=>"users", :action=>&...
2006 Jan 18
1
Another uninitialized constant question
...trying to generate a scaffold to admin a table called hangars. I''d like the controller to fall with an "admin" sub-module. I used the command: script/generate scaffold Hangar Admin::Hangar This seemed to work, and placed the controller in controllers/admin/hangar_controller.rb, where I expected to find it. It also created the hangar.rb model in app/models/hangar.rb. However, now I get (when trying to connect to admin/hangar): NameError in Admin/hangar#index uninitialized constant Hangar RAILS_ROOT: script/../config/.. Application Trace | Framework Trace | Full Tra...
2010 Aug 18
6
undefined method `eq' for nil:NilClass
...walking through an example in the "Head First Rails" book, but, instead doing the examples using Rails3.0.0.rc. But, I''m getting this error when browsing for example: http://localhost:3000/advs/1 undefined method `eq'' for nil:NilClass Provided that my advs_controller.rb is as follows: http://pastie.org/private/cd9zntg2ite57ept288kfa Any ideas why I''m getting that and a workaround for that? Thanks. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gro...
2006 May 11
6
problem with solaris install
I was trying to install ferret 0.9.2 on solaris (SunOS 5.8) which does not have a sys/dir.h nix_io.c:5:21: sys/dir.h: No such file or directory make: *** [nix_io.o] Error 1 I couldn''t find an obvious way around this... any suggestions? Thanks, Rich Marisa Cornell Information Technologies Cornell University
2009 Jun 13
5
undefined method `valid_password?'
...NoMethodError in Usuari sessionsController#create undefined method `valid_password?'' for #<Usuari:0xb69b9a54> RAILS_ROOT: /home/cocozz/dev/enruscats Application Trace | Framework Trace | Full Trace /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/attribute_methods.rb:255:in `method_missing'' /home/cocozz/dev/enruscats/vendor/plugins/authlogic/lib/authlogic/session/password.rb:177:in `send'' /home/cocozz/dev/enruscats/vendor/plugins/authlogic/lib/authlogic/session/password.rb:177:in `validate_by_password'' /usr/lib/ruby/gems/1.8/gems/acti...
2009 Jul 08
2
RuntimeError (JPEG marker not found!):
Hi, while generating the PDF file , i am getting following error.. please help for me. RuntimeError (JPEG marker not found!): C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:176:in ` measure_JPEG'' C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:174:in ` loop'' C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:174:in ` measure_JPEG'' C:/Ruby/lib/ruby/gems/1.8/gems/pd...
2006 Jul 22
1
How to debug this
...for any help!Jim======================================================================================uninitialized constant SubjectRAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing'' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/inflector.rb:161:in `module_eval'' c:/ruby/lib/ruby/gems/1.8/gems/activ...