Displaying 20 results from an estimated 1000 matches similar to: "Windows, Segmentation Faults, config.load_paths and config.cache_classes"
2005 Nov 15
11
Collecting thread: Too many open files (Rails+SCGI crash)
I have a problem with running Rails 0.13.1 with scgi_rails 0.4.3 and
Apache. After running for some time (more than a day), the SCGI
process stops with the following error (from scgi.log):
--
[ERR][24189] Collecting thread: Too many open files
[ERR][24189] /usr/local/lib/ruby/gems/1.8/gems/scgi_rails-0.4.3/lib/scgi.rb:188:in
`accept''
2006 Dec 24
1
How to get database.yml configuration to use it in a rake taks
Hello,
I want to get the production environment configuration from the
database.yml in the /shared folder of a deployed rails application. I
could use scp to get the file, write it to temporary file, read it and
open it with YAML, but is there a better way to do this?
Best regards,
--
AnĂbal Rojas
http://www.rubycorner.com
http://www.hasmanydevelopers.com
2005 Oct 21
21
PHPonRails ?
I''ve have a very tight schedule project that MUST (not my option), be
developed in PHP. Is there a Rails based framework for this platform?
I like the Rails way of things, but in this case, I cannot choose the
programming language, so please don''t offend me :-)
Thanks in advance,
Alessandro
_______________________________________________
Rails mailing list
2006 Jan 04
3
Intermittent problem with link_to_remote()
Hi folks,
My page displays links for ''categories'' using the link_to_remote()
function. Clicking on one of these links goes to the controller and
returns any child categories. I''m finding that the page works ok but
after a number of clicks (average 5 or so), it crashes with an error:
==============================================
Processing Base#index (for
2006 Aug 10
2
Software caused connection abort
Hi Zed or anyone that is also looking at Mongrel,
Just want to report something that, although doesn''t crash mongrel, is
rather annoying.
I am running the latest Mongrel 0.3.13.3 - ruby version on cygwin
(yeah, poor me). When I start mongrel_rails with
ActiveRecord::Base.allow_concurrency = true in environment.rb, I see a
lot of
"Error sending file
2006 Feb 07
3
Dinamic controller
Is it possible to make a Rails app respond to a "dinamic" controller?
As I understand method_missing can be used inside a controller to
respond to nonexisting methods, is it possible to provide a similar
behavior at a controller level? I am not sure at whic level would this
code be inserted...
--
An?bal Rojas
http://www.lacaraoscura.com/
anibalrojas@gmail.com
2011 May 21
4
request.format = :mobile causes error "undefined method `ref' for nil:NilClass"
I have a strange problem with setting request.format = :mobile
I can reproduce this problem on a completely fresh Rails 3.0.7 app
with no special gems. This seemed to work well in Rails 2 but for some
reason is hiccuping here, not sure what''s different in Rails 3 that
makes this hiccup. If you look at the stack track, it doesn''t even
pass through my app stack once -- weird --
2006 Aug 09
0
load_paths on godaddy hosted account
I am trying to get typo to load on my godaddy account. I''ve loaded
other home grown apps and they work. I get issues when trying to load
libraries from my vendor directory.
In my enviroment.rb I have
config.load_paths += %W(
vendor/rubypants
vendor/akismet
vendor/redcloth/lib
vendor/bluecloth/lib
vendor/flickr
vendor/syntax/lib
vendor/sparklines/lib
2006 Mar 28
0
MySQL problems and undefined class User
Hello
I''m having some issues with MySQL losing it''s connection, or undefined
class User on Windows XP. I use Login and UserEngine. Rails 1.0/1.1,
MySQL 4.
MySQL problem (one of them):
Mysql::Error: Lost connection to MySQL server during query: UPDATE
sessions SET `data` =
2006 Feb 14
1
ArgumentError in <controller not set>#<action not set> ??
Has anyone ever seen this before? It doesn''t happen n a predictable
manner, and can occur via different controllers. Someone else posted
about this back in December but no one replied. I''m completely stumped!
Here is the text, thanks.
ArgumentError in <controller not set>#<action not set>
undefined class/module CustomerDomain
RAILS_ROOT: script/../config/..
2005 Jul 05
0
Strange behavior on windows
Folks,
Excuse me if this is obvious. I have done a google but haven''t found
anything.
I''m just going through the Ruby on Rails book and installed the software
from the SVN server as it mentioned that a lot of things in the book won''t
work with the current stable release.
I started with the Depot example and ran:
>ruby scriptgenerate scaffold Product Admin
2005 Jul 07
1
Rails 0.13 failing on Win XP
Hi all,
Since 0.13 just got out, I decided to live a little on the edge and
upgraded my working 0.12.1 Rails apps to 0.13. Which made them crash
with a bang!
After a little investigation it looks like even a fresh app will crash
with a message: "allocator undefined for proc"... I''m on Win XP,
everything was fine under Rails 0.12.1
Any help would be highly appreciated.
--
2005 Oct 19
35
Why you MUST use SCGI for Rails development
Hello happy Railers,
I used to develop with a local out-of-the-box Apache and load times were
pretty slow (like a few seconds each page). "Well, it''s the price to
pay for no compile / cache / etc..." I thought. Nonsense. Yesterday I
installed SCGI, and now I''ve got the best of both worlds: rails
development env uses my very latest modifications, while SCGI ensures I
2012 Jun 27
0
config.cache_classes true or false in test environment?
Hello, since two days I have problem with a scenario that started to fails
with the error that there is a missing link. I narrowed the problem to
config/environments/test.rb and config.cache_classes and I change the
value now the scenario is passing with config.cache_classes = true. Here is
my full test.rb:
RbpCm::Application.configure do
config.action_mailer.default_url_options = { :host
2005 Dec 01
0
Anyone see similarly inconsistent code generation errors?
I''m curious to see if anyone else has been experiencing errors such
as the following at unpredictable times (usually after changing
something on a page and then re-loading it in development mode):
ArgumentError (negative argument):
/vendor/rails/actionpack/lib/action_controller/
code_generation.rb:13:in `*''
NoMethodError (undefined method `shift'' for
2007 Oct 04
0
Weird active record problem - goes away with cache_classes change
I have three active record objects, User, Question and Answer
- Questions belong to a user and has_many answers
- Answer belongs to a user
Now, when I start with an array of answers, I can do this
successfully:
for a in answers
a.user.user_id
end
If I do this:
for q in questions
answers = q.answers
for a in answers
a.user.user_id
end
end
It works the first time, but it fails the
2012 Mar 20
0
Setting cache_classes to false results in blank pages
Have anyone else stumbled upon this weird behavior? Setting the
config.cache_classes = false for development env causes rails to
return responses with totally empty content, headers seem to work ok.
It does not matter what the controller returns, even a simple :text =>
"OK" will result in empty page.
I''m using rails 3.2.2 and ruby 1.9.3.
It probably has something to do with
2007 Mar 03
0
config.cache_classes value ignored in development mode under Apache 2
I''m running latest version of RoR under Apache 2 (using a virtual
host), if I change the environment config within the virtual host
(SetEnv RAILS_ENV development) then it changes environment as
expected.
However when I''m working with views and not the model I would like
have RoR cache the model files, I have tried changing the value of
config.cache_classes to true in the
2005 Dec 21
8
Incomplete headers
Hi,
I wanna use Rails on a SuSE server with apache. Everything should be
installed correctly, but when running the application I get this in my
apache log:
FastCGI: comm with server
"/srv/www/htdocs/web4/html/rails/public/dispatch.fcgi" aborted: idle
timeout (60 sec)
FastCGI: incomplete headers (0 bytes) received from server
2009 Jul 02
1
config.load_paths
Hi
As a part of rearranging the code I put my reports in the folder
app/models/reports and loaded that using config.load_paths Is there any
performance issue in doing this? Is this the right approach? or I have
to put all the files in reports to app/models so to avoid
config.load_paths #{folder} I expect your valuable comments
Thanks
--
Posted via http://www.ruby-forum.com/.