Displaying 20 results from an estimated 10000 matches similar to: "Default Values"
2005 Mar 04
24
Rails speed?
Hi --
(First time posting to the list...)
I''m trying out Rails on my Mac (OS X Panther, 1.6 G5). It seems...
kinda slow? I''ve even run it with FastCGI and the response time is
still painfully slow.
Is this just me? Is mod_ruby any better than FastCGI? Or is it rails?
Thanks in advance!
-- joshua
2005 Dec 15
13
Fast Bulk Inserts?
I need to insert ~100k rows into the database, but using "Table.new(...).save"
is painfully slow (I notice in the logs that it''s wrapping each insert in a
transaction -- that can''t be fast).
Any suggestions on how I can improve the speed of bulk inserts like this?
Thanks ...
-- Steve
2006 Nov 27
3
Consistency in REST-routes naming
Hello everyone!
In working with the Rails-REST-features I have always wondered about
the URL for the new-action
/objects/new
In REST the URL should represent a Resource. As the semicolon is for
adding non-standard actions (verbs) to a resource, IMHO it should be:
/objects;new
and not
/objects/new
In fact, this is just like an additional action, which I would specify
with the
2006 Mar 15
5
Apache (both 1.3 & 2) not calling dispatch.fcgi on Debian
We''re trying to run Ruby on Rails on Debian with Apache and FastCGI, but
can''t get it to work. As far as we can tell, it seems to go wrong in the
final stages; Apache appears not to be doing anything with
dispatch.fcgi, even though FastCGI looks to be set up correctly. We''ve
followed several "how to"s, but we don''t get any other results.
What
2005 Dec 14
3
Plugin w/ Migrations and/or Fixtures?
I''m working on a plugin which needs to add both schema and data to the app
database, and I''m trying to figure out the best way to do it. I''d like to use a
db migration to modify the schema and load the data from a YAML fixture, but
Rails doesn''t seem to support migrations for plugins. To do so, the schema_info
table would need to change to include a
2006 Feb 10
3
robots.txt best practices
I''d been ignoring this error message in my log for a while:
ActionController::RoutingError (Recognition failed for "/robots.txt"):
I had never touched robots.txt. So I decided to make it a proper robots.txtfile
I found this great article...
http://www.ilovejackdaniels.com/seo/robots-txt-file/
...where Dave explains the ins and outs of the file.
Before I changed mine, I
2006 Feb 22
1
Urgent help needed
Hi,
I''m on Apache 2.0.54, Linux Fedora Core 2 with Plesk.
I installed a Rails application previously on the box using SCGI and
it works fine; even now.
I''m trying to get a second app online and it fails. Same config,
except for the SCGI runner ports of course.
It looks like the error comes from the fact that the mod_rewrite
loops. WHY ???
BTW : I have to put this app
2005 Mar 06
3
permission error in rake''s clone_structure_to_test
Hello,
When I try to run "rake clone_structure_to_test" on my project, I get
the following errors:
$ rake clone_structure_to_test
(in /home/www/cedscreening)
psql:db/development_structure.sql:8: ERROR: permission denied to set
session authorization
psql:db/development_structure.sql:16: ERROR: permission denied for
schema public
psql:db/development_structure.sql:34: NOTICE: CREATE
2005 Mar 09
1
Newbies perceptions and questions
Hi,
I found rails on internet when I looking for some ''better'' way how to
create web applications. I read tutorial 4 days on rails and I have 3
questions
1. How speed is it? (very slow on my testing machine, but that is P100
with 64Mb RAM, what''s enough for php or rhtml :))
2. How does it work... I create table categories, I create model and
controller category, but
2005 Mar 10
6
Expiring Cache Fragments and fcgi
First let me say that Rails caching is very very cool. The traffic
(and responsiveness) I''ve saved by added 10 lines of ruby code would
be enourmous, if I actually had traffic... ;)
Sweepers as observers are great, btw. Since every page of my side is
dynamic, once I did some DB optimization I''m caching the content of
the index page which was taking the bulk of the time to load
2005 Mar 10
10
Some Basic Questions
Sorry I can''t access IRC from work so I hope you don''t mind me asking my newbie
questions here:
1) I have the following code:
@post = Post.find(@params[''id''])
@comments = Comment.find_all "post_id = #@params[''id'']", "created_on ASC"
And I am have problems with the second line. I want to pass the id from my post
to the
2006 Nov 04
2
[ Rails ] Multiple rails apps on 1 host
Team,
I''m trying to figure out how to run 2 rails apps on one host.
I ran an experiment:
cd /tmp/
rails app1
rails app2
cd app1
script/server
rails put a copy of lighttpd.conf in
/tmp/app1/config/
and then started lighttpd
http://localhost:3000
gave me the splash page.
I shutdown the server
I added something to
/tmp/app1/config/lighttpd.conf
server.modules = (
2005 Mar 06
3
question about testing
Ok, so now I''m learning about testing. After a few initial hiccups,
I''ve got my tests written nicely and all the assertions are passing.
But I just have one question about doing tests in a loop.
In my setup, I''m using the login generator to protect ''sensitive''
actions, while some actions are public. So I''ve got this line in my
setup method:
2019 Oct 04
1
imapsieve administrator scripts are not executed in the order they are defined
Dear dovecot developers,
I have an issue with the Pigeonhole IMAPSieve Plugin and the order in which
administrator scripts are executed. Although I cannot find anything about the
order in which the scripts are executed, I would expect they are executed in
the order they are defined: the one defined by imapsieve_mailbox1_* before the
one defined by imapsieve_mailbox2_* in case both match.
I
2006 Jun 12
1
nmblookup receives response, but doesn't show it
Hi folks,
I find that nmblookup seems to be receiving
responses to name queries, but ignoring them. Here's what's
happening:
# nmblookup somehost
querying somehost on x.y.255.255
name_query failed to find name somehost
But watching the transaction with ethereal on the local
host, I see that:
1. nmblookup on local udp port nnnn (some random number above 1024)
sends an nbns
2005 Jul 29
0
Fwd: Products and mod_rewrite
It appears this message bounced somehow, so I''m resending. Apologies
if it is a dup.
Begin forwarded message:
> From: Duane Johnson <duane.johnson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Date: July 29, 2005 8:59:30 AM MDT
> To: Steve Sloan <steve-2FdKsI0tZ45AfugRpC6u6w@public.gmane.org>, rails-1W37MKcQCpIf0INCOvqR/pqQE7yCjDx5@public.gmane.org
> Subject: Re:
2006 Feb 06
4
fcgi to run cgi scripts
Dear experts,
I have rail site that is running lighttpd and fcgi. I want the default
domain to serve the rails application, and I also want to have a
virtualhost (bugs.mysite) to resolve to a bugzilla instance.
Bugzilla is basically Perl application called through CGI.
I tried to find pointers on how to set fcgi to run both rails dispatcher
and other cgi scripts in a different virtualhost, and
2005 Dec 28
3
problems with lighty on linux
I''m trying to get our app running on Lighty... I followed Ezra''s
instructions: http://brainspl.at/pages/rails_stack... Currently the app
runs fine with webrick, but with lighty I get 404 errors on everything.
I found if I don''t edit the lighttpd.conf file to use absolute paths, it
works fine. But this is not good for production because I need to run it
with the -d
2006 Oct 03
4
Apache Re-Write and Directories
Howdy,
I am using the ''default'' Apache 2.2 mod_rewrite rules suggested from the Web
site and they are working.
One thing related to static (non cluster directed) resources:
If I have a directory in public called ''static'', if I request it as follows:
http://www.domain.com/static/ - then it works
If I request it as:
http://www.domain.com/static - then it
2006 Jun 07
7
Tunneling in capistrano twice
Hi there,
The default recipe expects you to be able to access your web server
directly from your local machine.
On our web server, for security purposes, it is only possible to ssh
to it through one particular ip (which is also a remote machine.)
The capistrano source is so compact and tidy it looks very hackable.
But rather than messing around I thought I''d ask first if anyone else