Displaying 20 results from an estimated 20 matches for "qcsw".
Did you mean:
csw
2007 Aug 21
4
[AWDwR] Confused about has_one and has_many
Heya everyone!
I am quite new to Rails and I am reading AWDwR. I am at Task E "Check
Out!". I understand it quite well, but I have a problem with the last
playground exercise: Add a Table which contains the payment types.
All goes well, but I am not sure whether I should use has_many or
has_one(as in the Playground wiki at
http://wiki.pragprog.com/cgi-bin/wiki.cgi/PT-E-3).
I use the
2007 Dec 13
10
Version naming to use in a RoR proyect
Hi everyone,
I would need to know if RoR follow any policy for version naming; I
mean, something like linux´s kernel does or similar.
For instance, kernel uses numbers separated in groups by dots (i.e.
pre 2.6 - AA.BB.CC). These groups mean differents fixtures, bugs
fixed...
I will start a big proyect from scratch with rails and I want to
choose now a standart to use and avoid future problems
2007 Feb 12
6
Cannot send_file then delete it
My application accepts a form to create multiple large(100''s of MB)
temporary files and then zip''s them up to send off to a user.
I have the files constructed, and the zipping working. The problem is
that if I use send_file to send the zip off to the user, I cannot
delete the file afterwards as it seems send_file forks off another
process and deletes the file before the
2007 May 11
3
is_active?
Hey all, i''m rather new to rails and was curious if ActiveRecord
implemented anything like is_active where the delete functions would
just mark records as inactive, vs deleting rows. (similar to created_at,
etc). I need a history of transactions, and this is how I would code in
other languages. Any advice? Is there are smarter way to implement this?
Thanks in advance!
--
Posted via
2006 Oct 07
2
Proxying Apache to Mongrel, not sure if Apache is serving up static files
Let''s try this one...
I have Apache 2.0.55 set up and also have Mongrel set up. I have
Radiant set up running under Mongrel, and have Apache proxying to the
Mongrel instance. That all seems to be working fine.
I thought I''d modify the settings a bit to let Apache serve up the
static files - images, stylesheets, etc. I have it set up, and am not
getting any errors.
However.
2007 Jul 23
4
RoR Postion. Full time, Utah
We have 2 positions open for experienced ROR programmers. If you feel
like you are a experienced ROR programmer and are looking for a full
time position, please send over you resume. You must be willing to re-
locate. No contract jobs. We have an in house team and have only 2
positions left.
Starting Salary DOE. $30,000-$60,000 with housing, full benefits,
401k, paid vacation, ext. Don''t
2007 Jan 12
2
Forking a process in Rails is messing up mongrel
I''m trying to run an external Ruby script from my Rails app.
To do this i''m using this function
def fork_with_new_connection(config, my_class = ActiveRecord::Base)
pid = fork do
begin
my_class.establish_connection(config)
yield
ensure
my_class.remove_connection
end
end
Process.detach(pid)
end
Then, within my controller I do this:
2007 Jan 13
6
nice date function
Hi:
you know the way the google and this forum presents dates? How it''s
measure from the current date/time and presents nicely as "39 minutes
ago", 2 days ago, etc.? Has anyone done a gem or other library object
that I can get to do those types of dates?
Thanks so much in advance!
Mike
--
Posted via http://www.ruby-forum.com/.
2007 Jan 22
2
caches_action :index for site root gets propagated to lower levels (how to stop?)
Hello all,
I am running a blog system which has its "/" (home page) cached like
this:
class ApplicationController < ActionController::Base
before_filter :index_cache_expirer, :only => [:index]
caches_action :index
so the site''s top page is caches for 60 seconds in my case
(index_cache_expirer is a home-made function to expire)
on the site, there is also a
2007 Feb 16
4
Ideas for rails
Here are a few suggestions, wondering what others thought:
When you generate a model for a DB table, it would be nice if the
model.rb contained the DB schema (kind of like # commented out schema)
right in the model file. This would make reference WAY easier and put
all of the DB stuff in one easy file. Thanks.
also nice, of course, woudl be for rails to try and ''guess'' the
2006 Dec 11
4
creating a cache in rails
I need to create a small hash of values that persists across requests in
Rails. I cannot store this information in the database or filesystem
and only want to do it in memory. I was looking for a simple solution
to implement this and read somewhere that memcache is pretty much
overkill. This app is only running on one server so putting in memory
should be just fine. I''m very new to
2007 Nov 05
3
link_to & others really necessary?
One of the areas where I think Rails goes too far is in many of the
helpers that (AFAICT) do nothing more than change the syntax used to
write simple HTML tags. link_to and many of the form tags come to mind.
For me, these helpers aren''t that helpful. I find the HTML much
clearer to write and read, I don''t see any added value in the
overhead costs of using code to
2006 Oct 17
8
Is it possible to make an online poker clock with ruby ?
I''m just starting to learn ruby and i wanted to set some projects for
myself the 1st of which is a poker clock running online,
but before i start trying to do it i would like to know if it''s
possible. I dont want to waste my time if it''s not possible at all.
Thanks.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You
2006 Nov 28
11
New Rails Site: Wordie
My latest stupid web trick, built, with love, in Rails:
http://wordie.org
Make lists of words. See who else likes the same words. Basically, it''s
a dating site. Built on thanksgiving while half-watching football and
launched yesterday. In other words, half-baked, but I thought some of
you might find it mildly amusing.
John
____________________________
John McGrath
Squirl: a site for
2007 Oct 04
10
Design and modeling tools?
What do you guys use for design and modeling (and don''t answer pen and
paper, because I use those to, they just don''t look so good in a
project report ;) )
I have tried stuff like UMLet (free), Altova UMLsomething (pay), dia
(no comprende ;) ), NetBeans UML (slow). But none worked just the way
I wanted them to.
Any suggestions?
Christian...
2007 Jul 24
13
Problem with validates_length_of an integer
Hello guys, I''m trying to validate the input of an integer from a form,
here is a bit of code:
This is the definition of the offending column in the migration:
t.column :position, :integer, :default => 0, :limit => 3, :null => false
And here is how I try to validate it inside de model:
validates_length_of :position, :within => 1..3
And this is the exception I get when I
2007 Jun 04
15
RoR for a Large Scale App?
I''ve seen discussion on this topic in the past, and was wondering what
people''s feelings were in regards to the more recent releases?
Mainly, could it be possible to build a web application on the scale
of, say, Amazon, or deal with similar bandwidth and load requirements
as an iTunes would? It may be unfair to expect that much, seeing as
these are some of the largest around,
2006 Sep 26
0
Why does stylesheet_link_tag default to :media => 'screen' !?!?!
Hi all -
Can anyone tell me why stylesheet_link_tag defaults to :media => ''screen''
instead of ''all'' (or just leaving it out alltogether).
Seems odd since I would think by default I''d want my page printed out the
same way it looked on the screen...
Anyone know why that default was chosen?
-philip
2006 Nov 01
0
Is it possible to serialize capistrano tasks?
Hi all -
I was wondering if it''s possible to serialize capistrano tasks (ie. one
after the other on each server instead of simultaneously)?
The reason I''m asking is that we deploy to about 20 servers and when
running ''cap deploy'' it hammers are SVN server while it''s doing it.
So, if it could serialize the ''svn co'' portion and then
2007 Sep 21
0
Plugin that will expire_page across multiple servers?
Hi all -
I was wondering if there''s a plugin out there that will make expire_page
work across multiple servers? That is, I''ve got two servers A and B
behind a load balancer. If I cache a page eventually it will be cached on
both servers.
I''d like a way to expire that page and have it happen on both servers.
Perhaps some integration with backgrounddrb that could