Displaying 20 results from an estimated 100 matches similar to: "RAILS_ROOT Help Required!"
2006 Nov 16
2
Fwd: building-a-multi-site-supported-application
Was looking for creating subdomains dynamically, and found this one.
I dont know how to set this up in my linux PC(The eg. is in mac)
http://railstips.org/2006/11/13/building-a-multi-site-supported-application
Any help is appreciated
--
--
Amala Singh
http://www.tamil.net/
தமிழ் இணையம்
Telford, UK
http://www.mindcolonies.com
http://www.ryze.com/go/amalasingh
--
--
Nandri,
Amala Singh
2007 Dec 21
0
rake test:plugins gives uninitialized constant RAILS_ROOT
Hello,
Just upgraded to the the latest backgroundRb.I am getting an error
when i run the task "rake test:plugin". Any idea why I am getting this?
Here is the error message:
/usr/bin/ruby1.8 -Ilib:test
"/usr/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb"
"vendor/plugins/backgroundrb/test/master_worker_test.rb"
2006 Jun 29
0
RAILS_ROOT
Hello everybody:
I am new and i have a small problem with ruby. I want to execute an
external program and I need to pass as an argument to that program a
file of the system.
I''ve got that file in the public/files folder of my rails folder tree.
How can I know the path to where I have my rails project? I thought this
would be with RAILS_ROOT but this variable is
2006 Apr 13
1
Setting CWD to be RAILS_ROOT for fastcgi/Apache
All,
So I''ve discovered that when running on FastCGI with Apache and the
working directory for the process is actually the "public" directory
under RAILS_ROOT.
Is there a way to force the current working directory to be RAILS_ROOT
for the FastCGI procs so that file manipulation would then be done
relative to RAILS_ROOT?
Or should I just make sure that all of my paths are
2006 Apr 26
2
Routing to a static HTML file under RAILS_ROOT
I have a regular plain old static HTML file under my RAILS_ROOT that I
would like to serve as itself (without any dynamic anything).
How can I write a route to "pass the request through" succesfully.
I tried
map.connect ''path_to_file'', :controller => nil, :action => nil, :id =>
nil
but that didn''t work.
Also, note that I have this route
2006 Apr 30
1
storing sessions in RAILS_ROOT/tmp
I''ve read that the newest versions of rails stores sessions in
rails_root/tmp. I''ve been running off the trunk for about 3 months, but
I still have all of my sessions stored in /tmp of the file system. What
do I need to do to modify it so that my sessions are stored in my
rails_root/tmp folder?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 28
0
Why is RAILS_ROOT so roundabout?
Why is RAILS_ROOT ''script/../config/../'', rather than say ''script/..'' or
something even simpler?
Joe
--
Posted via http://www.ruby-forum.com/.
2009 Sep 09
0
Getting started with Rake - how do I copy a directory of assets to RAILS_ROOT + "/public"
I am just getting started with Rake. I am trying to create a rake task
from within a rails plugin to copy some asset files (inside /assets in
my plugin folder) to my rails application /public folder.
How can I achieve this?
I am not sure whether to use FileUtils or File. Where AM I in rake
terms. No matter what I do it keeps saying it can''t find the file. Do
I need to use File.join or is
2007 Jul 26
1
autotest loosing RAILS_ROOT Constant?
I am having a weird error that I have not had before... I''m bouncing
it off the list to see if anyone else has had it, or to give me some
pointers about how to find it.
Basically, AUTOTEST will run (RSpec mode), fine, then suddenly, will
complain that RAILS_ROOT is undefined.
Then I stop and restart it, with no code change... no problem.
It happens on different specs where I use
2006 Feb 17
3
How to get RAILS_ROOT when writing a ruby utility in /lib
Hi, Im writing a small ruby utility which at the moment is in /lib of my
rails app. However I don''t get access to var''s like RAILS_ROOT, do I
need to add an include to get this (and possibily other) rails
functionality?
Is /lib the right place for this kind of app, its a single ruby class
which I call from the command line. Would a rake file be better for this
kind of
2010 Dec 12
1
In Test/Unit Dir.glob is Rails root but to require a file must assume "Rails_root/test/"
I am wondering why this is: In Test/Unit I am iterating a directory so that
I can require each of the files in the directory.
When I call Dir.glob, the root is the Rails_root, however when I iterate the
files I get an error if I use Rails root and must begin the included file''s
path from within the test directory.
This:
integration/helpers/file.rb
And not
2006 Feb 20
3
RAILS_ROOT
I just replied to someone about using send_file and while I was testing my solution I
figured out that the controllers "current working dir" appears to be the root of the app.
Then I saw a reply that Ezra sent to someone where he used RAILS_ROOT and I thought "duh,
I''ve seen that before... shoulda used that".
But, when I had an action print out RAILS_ROOT
2007 Feb 11
4
Let's make RAILS_ROOT an absolute path on Windows
As this Caboose article [] suggests, I am not the only one who had
this problem. RAILS_ROOT is a relative path on Windows, and it can
bite you in unexpected ways. I had that problem while working on
CruiseControl.rb.
There is a trivial patch fixing it (by simply applying
File.expand_path to the path before assigning it into the RAILS_ROOT
constant): http://dev.rubyonrails.org/ticket/7259
Best
2006 Oct 09
1
error running 'ruby script/console' => "uninitialized constant RAILS_ROOT" ??
Hi,
Anyone suggest why when I try to run the console via ''ruby script/console'' I
get the following "uninitialized constant RAILS_ROOT" ??
Error:
================================
V:\Source\testapp>ruby script\console
Loading development environment.
./script/../config/../config/environment.rb:3:NameError: uninitialized
constant RAILS_ROOT
2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post.
I am trying to configure file_column plugin so that it stores the images
in a directory completely outside of RAILS_ROOT.
I have no problems in storing the files by setting :root_path option.
But I can''t get to display these images using ''url_for_file_column''.
What I get instead of the image is
2007 Oct 24
4
RAILS_ROOT
Hey,
I''m using the attachment_fu plugin to upload images on the file system.
To retrieve them I''m using:
image = "/home/rajeev/Desktop/logo/logo/public#{icon.public_filename}"
which is the same as:
"/home/rajeev/Desktop/logo/logo/public/icons/0000/0005/green_nature_on_white.jpg"
Have can i do this in a shorter way by using RAILS_ROOT? I have tried
this
2015 Nov 15
2
~/.ssh/config permissions
Hi,
Working with apache-sshd I found that it forces ~/.ssh/config to be
owned by user without group/others permissions. It failed for me
within my valid openssh environment.
Within sources (readconf.c::read_config_file), I found that openssh
only enforces ownership by user and not group/others write.
When I opened an issue, I was referred to this[1] wiki page (not sure
who maintain it) claiming
2007 Apr 17
7
problem restarting mongrel_cluster outside RAILS_ROOT - patch and other option
Hey folks. Sorry for the SUPER long email but if you''ve been
experiencing the same problems with restarting your mongrel cluster with
Capistrano, then I have two solutions that have worked for me and I''m
pretty sure will for you as well.
THE PROBLEM
I was having trouble restarting my clusters using Capistrano. I''ve seen
this come up before on the mailing list and
2010 Mar 03
1
Speex on EFM32
Thanks !
On this forum is also shown this information :
http://lists.xiph.org/pipermail/speex-dev/2009-January/007050.html
According to vk's results, it could be possible to run Speex at 4/6 & 8 kbps
on a Cortex M-3 at 36 MHz ... so not excluding the EFM32 ...
Nico
2010/3/3 Pietro Maggi <studiomaggi at gmail.com>
> On ST forums there is someone that states it has done an
2009 Aug 01
23
Hi doubt in unit testing
def test_check_for_validity
post=County.new(:name=>"myname",:description=>"mydesc")
assert post.save
end
above is the method and when i run unit test it is saying as
1) Failure:
test_check_for_validity(CountyTest) [/test/unit/county_test.rb:10]:
<false> is not true.
what does it say i cannot under stand
please help
--
Karthik.k
Mobile -