similar to: rails mytest error

Displaying 20 results from an estimated 70000 matches similar to: "rails mytest error"

2007 Dec 26
3
ruby 1.9 / rails 2.0.2 problem...
just now i installed ruby 1.9 and rails 2.0.2 on it when i create new rails application username-hO7X3CQjxafZmfiEtUfXeA@public.gmane.org:~/project$ rails app can''t convert Enumerable::Enumerator into Array username-hO7X3CQjxafZmfiEtUfXeA@public.gmane.org:~/project$ how to solve it ? or did i make any mistake in installation process? -- Posted via http://www.ruby-forum.com/.
2008 Sep 23
1
Help with "No route matches "/MyTest/" with {:method=>:get}"
I just started working with Ruby. Anyways I can''t seem to figure out how to have this message disappear. I was reading a tutorial and based on it, when I type in http://localhost:3000/MyTest/ it should say whatever I have written down on my my_test_controller.rb file. I first ran: ruby script\generate controller MyTest then I edited the my_test_controller.rb file It currently says:
2013 Dec 13
2
how can i write the function into a file c:/mytest.R with cat function?
mytest<-function(x,f){ sum(x*f)/sum(f) } cat(mytest,file="c:/mytest.R") Error in cat(list(...), file, sep, fill, labels, append) : argument 1 (type 'closure') cannot be handled by 'cat' how can i write the mytest function into a file c:/mytest.R with cat function? [[alternative HTML version deleted]]
2008 Jun 18
4
How to use Chars in classes not derived from AR
Hi! I have a class that derives from nothing and is located in /models. I''m using " my string ".chars to manipulate strings that potentially contain special chars and replace them with an US-ASCII equivalent. It did work until yesterday. Now on a linux system "a".chars returns #<Enumerable::Enumerator:0xb74e3d6c> While it should return
2011 Jun 01
1
libvirtError: internal error Domain mytest didn't show up
Hi All, I am new using libvirt. I kept on getting the following error when I try to start my VM. Can anyone give me any suggestion on what could went wrong? Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/engine.py", line 498, in run_domain vm.startup() File "/usr/share/virt-manager/virtManager/domain.py", line 573, in startup
2008 Apr 18
1
rails for dummies
Hellos all, I''m new to this so I have one really stupid question. When I make my website is the whole thing going to be encoded in my_test_controller.rb if I do ''ruby script\generate controller MyTest'' as "ONLamp" says to do? http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2 Cheers, Paul --~--~---------~--~----~------------~-------~--~----~
2008 Jan 13
2
{worker} after :end-time worker freaks out
Hi all, i was using bdrb a while ago and it wasn''t stable enough in version 0.2.1 for doing the job - it loss jobs or did execute only the first one invoked and so on. Now i gave the new version a try and i found a bug at playing around. When i start a worker_method over the normal Unix scheduler bdrb will start as much as possible the worker_method after the :end-time is reached.
2008 Feb 25
4
Using group in with find in an ActiveRecord appropriately
I''m playing around with the Practical Rails Projects code, and was attempting to make a change for graphing data differently using groupings. Basically the code went from: total_weight = @exercise.activities.collect {|e| e.repetitions * e.resistance} workout_dates = @exercise.activities.collect {|e| e.workout.date.to_s} To: total_weight =
2008 Jun 15
7
Getting "no block given" on find method - rails 2.1
I am trying to do a simple find through the current_user but get an exception. Either someone spiked my Starbucks coffee and I am screwing up all over the place or there is something wrong. def index @league = current_user.leagues.find(13) end # Error LocalJumpError in Admin/schedule todosController#index no block given If I pass a block to it it works fine, but it is just messy: =====
2004 Nov 05
2
Creating .Rout.save files for package subdirectory "tests"
Hi, I added the "tests" subdirectory and a test file (say "myTest.R") to our "systemfit" package. Up to now I create the "myTest.Rout.save" file with > R CMD BATCH --vanilla myTest.R myTest.Rout.save However, "R CMD check" reports two differences between myTest.Rout.save and the output of myTest.R: a) myTest.Rout.save contains following
2007 Nov 01
5
system hangs while running gem install rails
Hi, My system hangs when I start "gem install rails --remote" command in cli. It is throwing message like "Bulk updating Gem source index for: http://gems.rubyforge.org" and then hangs. When I see FAQ 3.2 in 3rd chapter (http://docs.rubygems.org/read/ chapter/19), it is not answered. Even am facing the same issue. Could you help me to resolve this issue? Thanks
2009 Jun 22
3
puppetshow
Hi all How do I get the latest version of puppetshow? git clone git://reductivelabs.com/puppetshow is terribly slow if working at all ..... I tried http://github.com/shadoi/puppetshow/tree/master version but I can not make it work When I go to http://localhost:3000 I get: NoMethodError in Hosts#table Showing vendor/plugins/active_scaffold/frontends/default/views/ _list_header.rhtml where
2008 Mar 25
6
Prototype 1.6.0.2 + Firefox 3 Enumerable problems
I am using Prototype 1.6.0.2 on Firefox 3.0b4. The following does not work when I enter it in Firebug: $A([1,2,3,4]).each(function(n) {alert(n);}); The above is just an example. Any array, using $A and any enumerable method, returns the following: TypeError: iterator.bind is not a function Seems like some objects are not being extended correctly? Using Prototype 1.5.0 on Firefox 3.0b4, this
2006 Apr 19
1
gsummary function (nlme library) (PR#8782)
Full_Name: Ben Saville Version: 2.1 OS: Windows XP Submission from: (NULL) (152.2.94.145) I'm using the gsummary function to calculate a sum of V1 (column one) from my data 'mytest' by group (V2,or column 2). If V1 (the variable of interest) is all the same value (in this case all 2's), I do not get back the correct summation. If there is at least one difference in V1 (all
2009 Jan 16
3
rspec model testing - test on user defined validation- How do I test that the create failed.
I''m new to rspec and looking for way to test a validation I added to a model. The test checks to see that if field1 has a value then field2 must be nil and vice versa. ------------------------------- When I did the rspec_scaffold it generated one test which worked before :each do @valid_attributes = { :field1 = "value for field1" :field2 = "value for
2006 Sep 06
22
ROR host: dreamhost or godaddy?
hi all, i am looking for a host for my ROR web app. the target audience will be 70% from mainland china, and 30% from the rest of the world. i dont want a chinese hosst because: 1. it''s very slow for the rest of the world to access to it. 2. the speed is quite ok for china to access the us sites. both dreamhost and godaddy provide similar budget plans, and i saw them all from this
2008 Oct 30
2
Rails console
I tried to create an addition to Enumerable called choose_randomly that picks a random element from the Enumerable object. However when I define it and execute the code rand complains about the wrong number of arguments. Below is a capture of the ./script/console session. farrel@nicodemus ~/Work/GreenGreen/Code/green_green_client_application $ ./script/console Loading development environment
2007 Nov 08
1
Running tests from another test case
I''m in the position that would be really useful for me to run in a testcase a test belonging to another testcase. Assuming I do not want to use modules, how could I do that? My code would be something like this: class MyTestCase < Test::Rails:TestCase def myTest matc = MyAnotherTestCase.new end end The code above seems to work but when I run MyTestCase all the tests
2009 May 19
2
incremental directory searche in rsync 3.0.6
Hi, I was in under impression that rsync 3.0.5/3.0.6 creates all the missing directories in the path but I think I am wrong. Could any one tell me is it possible to create all missing dirs in path at destination side if not exists. Currently, I have been getting below errors. rsync -avz /tmp/mytest/rsync-test/dir-test/parent-dir/ desthost:/tmp/mytest/rsync-test/dir-test/parent-dir/ sending
2014 Jun 09
4
[LLVMdev] LTO and Optimized libraries don't mix
When using the ARM cross compiler we've run into an issue with LTO and optimized libraries. Consider you have an optimized library opt.a, which contains a version of memcpy. Compiling with LTO (something like), clang myTest.c opt.a -flto -o myTest causes myTest.c to get compiled to bitcode. Then the bitcode gets passed to the linker. The linker looks through the bitcode (via