Displaying 20 results from an estimated 3000 matches similar to: "rails for dummies"
2006 Mar 28
6
blank page output
Hello, I''m new to Ruby and RubyOnRails. I''m running Fedora 4 which comes
with Ruby 1.84-1. I installed rubyonrails, and I''m doing the a sample
program found on
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2
I ran ruby script/generate controller MyTest. I edited the file
my_test_controller.rb. Here''s the code I entered
class MyTestController
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:
2006 Aug 08
1
recognation failed - ?!
Hi there,
When I was making examples form "Rolling with Ruby on Rails" (
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html ) , after
generating controller MyTest, the WEBrick server ( localhost:3000 )
reported an error:
recognation failed /MyTest
The WEBrick server was started form correct directory, what else can
crush in that way ?
Cheers.
--
Posted via
2005 Jun 23
6
Problems with Hello World
Hello, I''m installed RubyOnRails in my Fedora Core 4 system.
I''ve created an empty web application with:
rails cookbook
then a controller
ruby script/generate controller MyTest
And a file named my_test_controller.rb was created at
cookbook/app/controller directory.
I ''ve written a new method for MyTestController class like:
def index
render_text "Hello
2006 Nov 09
0
Apache configuration
i TRY TO CONFIGURE APACHE FOR RUBY ON RAILS ON UNIX.
BY THE FOLLOWING WAYl:
Install FastCGI
1. wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
2. gunzip fcgi-2.4.0.tar.gz
3. tar -xvf fcgi-2.4.0.tar
4. cd fcgi-2.4.0
5. ./configure
6. make
7. make install
8. cd ../
Install mod_fcgid
1. cd ~
2. wget http://fastcgi.coremail.cn/mod_fcgid.1.09.tar.gz
3. gunzip
2006 Aug 04
0
Proxy from Apache to local Lighttpd instance
Hello,
I''m having a serious problem proxying from Apache (2.2) to local Lighttpd
servers. I need this to run Rails instances on www.mysite.com/rails next to
the regular part from www.mysite.com.
Currently I get a working www.mysite.com/rails for only the first page,
controllers do not work. I am quite desperate in getting this to work as it
is the only way I can run Rails at our
2006 Jun 14
2
How to do routing ?
Hi folks,
I am working in Fedora Core 2 Linux, and using Apache 2.0 and mod_fastcgi,
as per mentioned in the following link, to support Rails.
http://wiki.rubyonrails.org/rails/pages/RailsOnFedora
I had created virtual host and specified the path to my application''s
/var/www/html/myapp/public/ directory as a value for DocumentRoot
directives.
Now what is happening is that,
my
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.
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
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]]
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 Jan 13
6
rails bug ? metadata lost between page invocation ?
Ok, so I posted this on the ''ruby on rails'' newsgroup
(http://groups.google.com/group/rubyonrails/browse_frm/thread/cfce770d3fbfbd1f/a51aad47e46e2adf#a51aad47e46e2adf)
but didn''t get very far.
Hopefully this community will be able to help or let me know whether
this is a genuine rails bug. This is a lengthy post, but please bear
with me.
So, I am trying to cache
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
2010 Jul 02
4
zfs - filesystem versus directory
Folks,
While going through a quick tutorial on zfs, I came across a way to create zfs filesystem within a filesystem. For example:
# zfs create mytest/peter
where mytest is a zpool filesystem.
When does this way, the new filesystem has the mount point as /mytest/peter.
When does it make sense to create such a filesystem versus just creating a directory?
# mkdir mytest/peter
Thank you in
2010 Dec 03
2
How to get 'R' to talk BACK to other languages / scripts??
Hey everyone,
I know that I can call 'R' from other scripts, and that I can make
command calls from 'R' (e.g., using system() ). But how can I get 'R' to
RETURN values to the script that called it. E.g., I would like to be able
to do something like the following (as a simpler example) from a bash
script:
#!/bin/bash
myTest=echo /usr/local/bin/R --no-restore
2005 Mar 04
2
Part 2 of ONLamp.com Rails article is online
ONLamp.com has finally published part 2 of my Rails article! You can find it
here:
http://www.onlamp.com/pub/a/onlamp/2005/03/03/rails.html
It would be really nice if we could get this slash dotted again before the
weekend.
>From what I understand, you''re more likely to get accepted when multiple
people submit something. So, to anyone who has the inclination: if you would
submit
2010 Jan 01
1
Questions bout SVM
Hi everyone,
Can someone please help me in these questions?:
1)if I use crossvalidation with svm, do I have to use this equation to calculate RMSE?:
mymodel <- svm(myformula,data=mydata,cross=10)
sqrt(mean(mymodel$MSE))
But if I don’t use crossvalidation, I have to use the following to calculate RMSE:
mymodel <- svm(myformula,data=mydata)
mytest
2006 Aug 08
2
Should I uninstall everything to install InstantRails?
Please help me I am brand new to this.
I have been following this tutorial from OnLamp
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
which tells you how to install ruby, rails and mySQL and get going.
Doing this tutorial convinced me RoR was the way to go for me.
So I got hold of this e-book:
Agile Web Development with Rails - The Pragmatic Programmers
The book tells me to install