Displaying 20 results from an estimated 10000 matches similar to: "What is the working directory for fastcgi procs w/Apache 2?"
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 13
4
Apache/fastcgi setup can''t find custom config/*.yml file!
All,
Apache 2/FastCGI on Linux
My fastcgi config. file is set up to run the "test" RAILS_ENV.
When I go to access a view associated with a particular controller, I
keep getting a ENOENT (file not found) error on a custom config. file
that I am attempting to load.
What I can''t figure out is why it can''t find the file.
Here''s the code that loads it in my
2006 Mar 20
5
Wrap error_messages_for() call when no instance var present
I am trying to put some smarts around a call to
<%= error_messages_for %>
so that when I first come into this page i.e. when my instance variable
@target_list has not been defined yet, the page doesn''t break.
I''m doing this:
<% if @target_list? %>
<%= error_messages_for ''target_list'' %>
<% end %>
I get a syntax error on line 1.
2006 Mar 18
9
Using <%= text_field %> within partials is problematic
All,
Thanks for any help in advance.
I have what I think is a very straightforward partial template and I
can''t figure out why a text_field call within it doesn''t work.
Here is my calling template: lists.rhtml
<div id="target_lists">
<%= render(:partial => "target_lists", :collection => @target_lists)
%>
</div>
In the partial
2006 Jul 13
5
Generic page element display initializer in a layout?
All,
I''ve run into a snag. I need to handle the display of elements on my
page and I want to use my Javascript event handlers on page load.
However, my BODY tag is trapped in my generic layout.
I''m thinking that I can put an onLoad on the BODY tag that will just
call a Javascript method called initializePage() and then provide this
initializePage() call in my specific page
2006 Jul 05
7
HABTM join table has an "ID" column - is this an issue?
All,
I''m building model objects for existing tables that I cannot modify.
In AWDWR, Dave says "Note that our join table has no id column...The
second reason for not including an id column in the join table is that
AR automatically includes all columns from the join tables when
accessing rows using it. If the join table included a column called id,
its id would overwrite the id
2006 Jul 10
8
Setup new data in the test database _after_ unit test runs
All,
I want to run automated unit tests as part of my build. I am building
to my test environment. Upon successful completion of all of my unit
tests, I would then like to load some data (using a fixture, I imagine)
into my test database that will act as fresh "system test" data for my
users to play with.
What is the best way to "load the standard system test/user acceptance
2006 Apr 03
1
Setting up FastCGI for RoR under Apache 1.3.34
All,
I have all of the components that I need to install RoR under FCGI for
Apache 1.3.34. I have:
mod_fcgi 2.4.2
fcgi 2.4.0 (developer''s kit)
ruby-fcgi-0.8.6
I am comfortable up to the point of installing mod_fcgi, however, I
don''t understand how fcgi and ruby-fcgi will be used by mod_fcgi.
How does mod_fcgi connect to fcgi and ruby-fcgi. I assume that there
are
2006 Aug 09
10
Is there QA on Rails gem releases?
The ActionMailer/ActionPack gem release is still screwed up.
Does someone test the gem releases to ensure that they work?
Just an idea.
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Jun 27
25
1.1.3 available.
Hello,
DHH has just announced the release of Rails 1.1.3
http://weblog.rubyonrails.org/2006/6/27/rails-1-1-3-security-fix-and-minor-fixes
rails-1.1.3
activerecord-1.14.3
actionpack-1.12.2
actionmailer-1.2.2
actionwebservice-1.1.3
The announce without the repetition :)
"Rails 1.1.3: Security fix and minor fixes
Posted by David June 27, 2006 @ 08:07PM
We''ve found and fixed a
2006 Jul 13
4
Does text_field go directly to attributes hash in AR object?
All,
I''m having a hell of a time figuring out what is going on here.
I''m trying to override one of my getters so that I can format it a
certain way in my form. But I can''t seem to get text_field to call the
appropriate method on my object.
So here''s my getter:
public
def FAX
fax = read_attribute(:FAX)
puts fax
2006 Mar 20
4
Ajax.Request w/standard redirect doesn''t render
I am doing an Ajax call in my page to a controller method like so:
new Ajax.Request(''<%= url_for(:action => "target_list_add" )%>'', {
asynchronous:true });"
In my controller method "target_list_add", I do something and then I
say:
redirect_to( :action => ''target_list_upload'', :layout => false )
I know for certain
2006 Jul 14
7
Form validation - keepin correct fields displayed on refresh
All,
I''m finally doing my first real form in Rails - the model object that
I''m entering information for has 8 validations so far.
If I type in good values for all the fields but one, I get the pretty
validation, and the nice field highlighting, but all of the fields are
cleared, forcing me to retype all of that info. That is a big drag.
Is there a standard way to get the
2006 Mar 08
2
Upload progress update bar question
I''m trying to follow these instructions to include the Javascript
progress bar on a page. However, I''m confused.
In my controller, when I try to access
update_upload_progress_bar_js
which is defined in
actionpack/lib/action_view/helpers/upload_progress_helper.rb
I get a "no such method" error.
Can I use helpers in my controller class and, if so, how do I
2007 Mar 16
5
Bad ActiveSupport gem in gem repository?
All,
I''m attempting to update my gems to 1.2 and I get the following:
Install required dependency activesupport? [Yn] Y
ERROR: While executing gem ... (Gem::InstallError)
invalid gem format for
c:/ruby/lib/ruby/gems/1.8/cache/activesupport-1.4.2.g
em
Anyone else seeing this? Anyone willing to try it to see what''s up?
Thanks,
Wes
--
Posted via
2006 May 25
5
Setting a global before_filter action in application.rb
Can you set a global before_filter action in application.rb?
So, for example, you could control authentication for all of the
controllers in an app.?
Obviously, you would need a way to reference actions by controller
within this "global before-filter".
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Apr 10
15
Apache/FastCGI still in development mode?
I''m running rails on RedHat ES3 managed by Plesk with Apache/FastCGI.
I''ve followed the directions here:
http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnPlesk
And got everything working, but my application refuses to run in
Production mode. It runs in development mode despite the fact that I''ve
set:
FastCgiServer
2006 Apr 04
10
Ruby server infrastructure evolution -> app. servers?
All,
Just musing about this whole FastCGI thing (that I hadn''t even thought
of since 1999 when looking at OpenMarket for a customer and even then it
was "old"), and wondering when we might see projects/products that
attempt to provide Ruby application services in a J2EE-like container.
I see the Cerise project - any interesting information on that?
I''m assuming
2007 Mar 02
12
Prototype: Ajax.Request w/asynchronous: false
All,
I have the following Ajax call:
new Ajax.Request(action, {asynchronous: false,
method: ''post'',
parameters: params_to_pass,
evalScripts: true});
The action that I''m calling is using render :update to send back
Javascript. When asynchronous is set to true above, then the Javascript
is executed (because of evalScripts:
2006 Jul 03
4
text_field doesn''t call overridden ActiveRecord getters
All,
In a template, I have
<%= text_field :target_list, :DateReceived,
{ :title => ''uploaded_at'',
:class =>
''target_list_info'',
:disabled => ''true'' } %>
Here is the DateReceived method on my