Displaying 20 results from an estimated 135 matches for "__send__".
Did you mean:
__end__
2007 Dec 06
6
mock libraries, Object#send, and Object#__send__
What is the appropriate way to stub out (and put an expectation on
Object#__send__), without getting warnings from the Rspec mock library?
Scott
2008 Jan 19
0
[CruiseControl] RubyOnRails build 8671 failed
...action_mailer/base.rb:351:in `method_missing''
./test/mail_service_test.rb:369:in `test_custom_template''
./test/mail_service_test.rb:369:in `test_custom_template''
./test/../lib/../../actionpack/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `__send__''
./test/../lib/../../actionpack/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `run''
---------------
./test/mail_service_test.rb:369:in `test_custom_template''
./test/../lib/../../actionpack/lib/../../activesupport/lib/active_support/t...
2010 Jul 21
0
cgi_process.rb:22:in `__send__': undefined method `env_table
...dispatch.fcgi [QSA,L]
if I run....
./dispatch.rb
./../config/environment.rb:35: warning: already initialized constant
MONTHNAMES
./../config/environment.rb:36: warning: already initialized constant
DAYNAMES
/home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/cgi_process.rb:22:in
`__send__'': undefined method `env_table'' for nil:NilClass
(NoMethodError)
from
/home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/cgi_process.rb:22:in
`dispatch_cgi''
from
/home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/dispatcher...
2009 Jul 16
9
Please help me understand how arrays are translated in rails
...I can assign variables to
arrays..
Take for example:
def calculate_tsos(model, datavar, teamvar, valvar)
var = model.compiled_this_week.find(:all)
var.each_with_index do |rows, i|
puts "#{model} [ Row #{i} | Team ID = #{rows.team_id} | Team =
#{rows.team.name} | #{datavar} = #{rows.__send__(datavar)}"
end
end
This will give me:
TotalOffense [ Row 0 | Team ID = 5 | Team = Tulsa | ydspgm = 569.86
TotalOffense [ Row 1 | Team ID = 47 | Team = Houston | ydspgm = 562.77
TotalOffense [ Row 2 | Team ID = 20 | Team = Oklahoma | ydspgm = 547.86
etc. etc.
So far, so good. I can at lea...
2008 Jan 22
0
[CruiseControl] RubyOnRails build 8688 failed
...rdering(FirstSecondHelperTest)
Type: Failure
Message: <"first mail"> expected but was
<"">.
./test/mail_render_test.rb:114:in `test_ordering''
./test/../lib/../../actionpack/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `__send__''
./test/../lib/../../actionpack/lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `run''
Name: test_use_helper(MailerHelperTest)
Type: Failure
Message: <"From: tester@example.com\r\nTo: test@localhost\r\nSubject: using helpers\r\nMime-Ver...
2010 Mar 17
4
passenger errors
...r/spawn_manager.rb:157:in
`spawn_application''
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:287:in
`handle_spawn_application''
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in
`__send__''
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in
`main_loop''
from
/usr/lib/ruby/gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously''
from
/usr/lib/ruby/...
2010 Jun 13
4
internal server error(500) when attempting to sendmail
...r.rb:
343:in `handle_spawn_application''
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork''
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:
341:in `handle_spawn_application''
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
`__send__''
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
`main_loop''
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in
`start_synchronously''
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in
`start''
/usr/lib/ruby/1.8/phusion_...
2010 Jan 05
1
Errno::ENETUNREACH (Network is unreachable - connect(2)):
.../usr/ruby-enterprise/lib/ruby/1.8/soap/rpc/proxy.rb:141:in `call''
/usr/ruby-enterprise/lib/ruby/1.8/soap/rpc/driver.rb:178:in `call''
/usr/ruby-enterprise/lib/ruby/1.8/soap/rpc/driver.rb:232:in
`getEmail''
/usr/ruby-enterprise/lib/ruby/1.8/soap/wsdlDriver.rb:117:in
`__send__''
/usr/ruby-enterprise/lib/ruby/1.8/soap/wsdlDriver.rb:117:in
`GetEmail''
app/controllers/application_controller.rb:16:in `user_session''
/data1/src/ruby/passenger-2.2.7/lib/phusion_passenger/rack/
request_handler.rb:95:in `process_request''
/data1/src/ruby/p...
2005 Mar 05
3
login generator problem
...the login generator, but I keep
getting the following error when I run "generate login
Account":
/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/base.rb:84:in
`manifest'': No manifest for ''login'' generator.
(NotImplementedError)
from (eval):3:in `__send__''
from (eval):3:in `manifest''
from
/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/commands.rb:41:in
`invoke!''
from
/usr/lib/ruby/gems/1.8/gems/rails-0.10.0/lib/rails_generator/scripts/../scripts.rb:31:in
`run''
from ./generate:5
I am using rails .10...
2009 Jan 20
5
Problem running rake test
...view/renderable.rb:21:in `_unmemoized_compiled_source''
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/memoizable.rb:57:in `compiled_source''
from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/
active_support/memoizable.rb:25:in `__send__''
... 24 levels...
from C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/
rake_test_loader.rb:5:in `load''
from C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/
rake_test_loader.rb:5
from C:/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/
rake_...
2011 Aug 21
1
dashboard 1.1.1 with filebucket doesn't show contents of the new file
..._spawn_application''
passenger (3.0.8) lib/phusion_passenger/utils.rb:479:in `safe_fork''
passenger (3.0.8) lib/phusion_passenger/classic_rails/
application_spawner.rb:270:in `handle_spawn_application''
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in
`__send__''
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop''
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously''
passenger (3.0.8) lib/phusion_passenger/abstract_server.rb:180:in
`start''
passeng...
2009 Mar 26
1
Error Send Message
...1.8/net/smtp.rb:525:in `start''
/usr/lib/ruby/1.8/net/smtp.rb:463:in `start''
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/base.rb:627:in
`perform_delivery_smtp''
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/base.rb:508:in
`__send__''
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/base.rb:508:in
`deliver!''
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/base.rb:383:in
`method_missing''
/app/controllers/home_controller.rb:38:in `sendmail''
/usr/...
2005 Dec 22
4
Switchtower problem - `sysread'': bignum too big to convert into `long'' (RangeError)
.../1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/packet-stream.rb:147:in
`synchronize''
from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/packet-stream.rb:147:in
`get''
from /usr/lib/ruby/gems/1.8/gems/needle-1.2.1/lib/needle/lifecycle/proxy.rb:60:in
`__send__''
from /usr/lib/ruby/gems/1.8/gems/needle-1.2.1/lib/needle/lifecycle/proxy.rb:60:in
`method_missing''
from /usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/session.rb:245:in
`wait_for_message''
from /usr/lib/ruby/gems/1.8/gems/net-ssh-1...
2009 Oct 14
14
spec-ing private methods?
...ble to write specs for them, how do you do that? I mean I cannot do:
>
> object.some_private_method
>
> You have a few options:
> 1. Make the method public in the object you are testing
> 2. Make the method public in the test case
> 3. Don''t test the method
> 4. Use __send__ or (send) to call it.
> 5. Refactor private methods to a new object, and make the methods public in
> that object.
> Most of those options suck (esp. 1, 2, 3, & 4) - usually it represents a
> design flaw (you are doing too much in your class).
> Scott
3 is ok.
A "private&q...
2009 May 20
8
ctionView::TemplateError (undefined method `start_form_tag'
...b/phusion_passenger/utils.rb:181:in
`safe_fork''
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/railz/application_spawner.rb:296:in
`handle_spawn_application''
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in
`__send__''
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:337:in
`main_loop''
/usr/lib64/ruby/gems/1.8/gems/passenger-2.2.2/lib/phusion_passenger/abstract_server.rb:187:in
`start_synchronously''
/usr/lib64/ruby/gems/1.8/gems/passeng...
2009 Jul 13
3
undefined method error from atom builder
...er_url'' for #<ActionView::Base:
0x25e3560>
Code snippet that''s failing (line 7) -
4:
5: for order in @orders
6:
7: feed.entry(order) do |entry|
8:
Stack trace of failure -
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
polymorphic_routes.rb:109:in `__send__''
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_controller/
polymorphic_routes.rb:109:in `polymorphic_url''
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.2/lib/action_view/helpers/
atom_feed_helper.rb:189:in `entry''
/Library/Ruby/Gems/1.8/gems/builder-2.1.2/lib/build...
2013 Mar 07
2
Puppet Dashboard changed reports view error
...tion''
passenger (3.0.19) lib/phusion_passenger/utils.rb:470:in `safe_fork''
passenger (3.0.19)
lib/phusion_passenger/classic_rails/application_spawner.rb:270:in
`handle_spawn_application''
passenger (3.0.19) lib/phusion_passenger/abstract_server.rb:357:in
`__send__''
passenger (3.0.19) lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop''
passenger (3.0.19) lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously''
passenger (3.0.19) lib/phusion_passenger/abstract_server.rb:180:in
`start'...
2007 Dec 13
0
Errors building RMagick on Linux
...r 1
make[1]: Leaving directory `/usr/local/src/RMagick-1.15.11/ext/
RMagick''
setup.rb:655:in `command'': system("make") failed (RuntimeError)
from setup.rb:664:in `make''
from setup.rb:1258:in `setup_dir_ext''
from setup.rb:1532:in `__send__''
from setup.rb:1532:in `traverse''
from setup.rb:1549:in `dive_into''
from setup.rb:1530:in `traverse''
from setup.rb:1534:in `traverse''
from setup.rb:1533:in `each''
... 8 levels...
from setu...
2009 Mar 21
0
Action Mailer problem
...Sat Mar 21 13:40:53 -0700 2009
Status: 500 Internal Server Error
535 5.7.0 Error: authentication failed: authentication failure
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:585:in
`auth_login''
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:570:in
`__send__''
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:570:in
`authenticate''
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:410:in
`do_start''
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/1.8/net/smtp.rb:377:in
`start''
/opt/rub...
2009 Apr 18
0
A bug in sweeper.rb? [was: A frustrating and strange error when config.action_controller.perform_caching = true]
...= nil
end
A little later......
def callback(timing)
controller_callback_method_name =
"#{timing}_#{controller.controller_name.underscore}"
action_callback_method_name =
"#{controller_callback_method_name}_#{controller.action_name}"
__send__(controller_callback_method_name) if
respond_to?(controller_callback_method_name, true)
__send__(action_callback_method_name) if
respond_to?(action_callback_method_name, true)
end
The problem is that after the first controller has been cleared controller
is nil when it gets to th...