search for: cdcarter

Displaying 18 results from an estimated 18 matches for "cdcarter".

Did you mean: ccarter
2006 Jul 01
5
how can i set the default protocol of WEBrick to https?
On my server, stunnel is running to accept HTTPS (port 443) connection from clients and redirect them to localhost:80. And on port 80 of my server, WEBrick is running to accept HTTP connection. In such situation, WEBrick generates URLs beginning with ''http://'', not with ''https://''. So one can access to ''https://myserver/'', but when he click on
2006 Jul 02
2
Cannot Find Gem error
I''ve updated rails to 1.1.4, and have also done a ''gem cleanup'' so older versions are gone. I went to a little app I had created back when I had 1.1.2. I tried to do a script/generate migration xxxx and got an error: Cannot find gem for Rails =1.1.2: Install the missing gem with ''gem install -v=1.1.2 rails'', or change environment.rb to define
2006 Jul 03
2
docs for map.resource
Hi, I''d like to know where in the Rails docs I can learn more about map.resource. I''d like to learn more about the stuff in DHH''s "world or resources" slide show THanks, PEter
2006 Jun 14
1
One table, two models.
so i have a people table, and a person has a persontype. the person types are customer, and employee. I would like to make them into two models, where i can call Employee.new(:name => ''chris'') and it would make a person with the name chris and the persontype of employee, and be able to do the same thing for Customer. is this possible while still using only the one
2006 Jun 30
4
Strange behaviour from assert_redirected_to
I have this assertion in my tests: assert_redirected_to :controller => ''user'', :action => ''change_password'' It fails with: response is not a redirection to all of the options supplied (redirection is <"http://test.host/user/change_password">), difference: <{:controller=>"user"}> The redirection was: redirect_to
2006 Apr 03
2
Formatting a list from the DB
I am working on a project where there is a table called mixes. You create a new Mix and in the contents box, you type in the name of the songs used. Because the number of tracks could be unlimited, I decided to use a text box. Is there anyway I can have my views make the list look right, instead of as a jumble of text. Or, would there be some way, using arrays and maybe ajax, so the user
2005 Aug 06
0
Re: Error when going to Fastcgi.
...each'' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ fcgi_handler.rb:55:in `process!'' /usr/local/lib/ruby/gems/1.8/gems/rails-0.13.1/lib/ fcgi_handler.rb:21:in `process!'' /home/cdcarter/railsapp/public/dispatch.fcgi:24 It doesnt work on localhost with WEBrick anymore either...
2006 Jul 02
6
How do you move an application to a newer version of Rails?
Hello, I''ve got an app written in rails 1.1.2 and I need to move it to 1.1.4 Installing the older version of rails is not an option (it''s not my system) unfortunately. Thanks, -Jon -- Posted via http://www.ruby-forum.com/.
2006 Jul 08
4
Application generation
I love rails but I want more. :-) I''d like a generator that generates a complete application. It would read an information model, and from it generate the MVC''s with a validation-constrained model, errors and exceptions, page navigation and rich view layout... The information model would be represented by ruby "meta" classes, and could be generated as an
2006 Jul 03
5
How do I code this conditional statement in Ruby
Hi, I am a COBOL programmer and I am busy teaching myself Rails and Ruby. In COBOL I can code this conditional If x = 1 next sentence else .......................... The "next sentence" statement enables me to get out of the conditional. How would I code the same thing in Ruby? In C you could use break but I understand that Ruby has no break statement. Regards, Paul
2006 Jul 03
4
Display find(:include => [:children]) results in a view
I am trying to determine how to display a list returned from a Rails find(:include => [:children]). I am using the following (which works in the console): @patients = Account.find(session[:account_id]).patients.find(:all, :include => [:patient_details]) How can I address the patient_details to display them in the view? The console even shows a @patient_details instance variable
2007 Aug 19
16
Possible memory leak problem...
I''m trying to figure out a possible memory leak problem I have in my application. I''ve tested both with mongrel and webrick and the problem remains. So I think it''s not a mongrel problem, but I''m posting here to see if anybody can help me. The RAILS application is quite simple, no special plugins ( no RMagick that has the memory problem ),
2006 Jul 17
1
Updating multiple children from one page
Hello, I have a model called invoice and one called lineitem. An invoice has_many lineitems, and an lineitem belongs to an invoice. I have a model method that calculates the price of a lineitem, and one that calculates all lineitems in an invoice. I want to have an edit page that lists all the invoices lineitems and their calculated prices, with a text field for a person to change the
2006 May 19
0
HABTM and Belongs to find
SO I have a Hcal model. A hcal belongs_to :show, and has_and_belongs_to_many :datetypes. I want to be able to find all the hcals in a particular show, with a particular datetype. Is this possible? -- Posted via http://www.ruby-forum.com/.
2006 Apr 06
0
Sending mail to a group of users
I am using acts_as_authenticated and I need to be able to send an email to all the users in the users model with "t" in the "receive" column. I worte the mailer and templates, and sending controller code, but I do not know how to get the emails into the recipients area. I setup the mailer to recieve recipients when the email is created. I am able to get all the users to
2006 Apr 16
1
has_many :through and belongs_to
I have a relationship where a Show has_many Techs through People. From what I understand that requires me to put belongs_to Show in the People model. My problem is that a Tech can belong to many Shows. Is there any way of solving this besides putting a has_many Shows relationship in People -- Posted via http://www.ruby-forum.com/.
2006 Apr 17
1
HABTM relationship with two join tables
Ok, I have a People table, a Shows table, a Techs table, and a Castmembers table. The people table has contact info about each person, the techs and castmembers tables have information about the persons specific role in that sshow. i want to call @show.techs (or somethign equivelent, I don''t want to start that code yet) and get all the techs associated with the show, and the
2006 Oct 22
0
Daemonize Problems
Hi all, I wrote a mongrel handler/script that I would like to be daemonizable. At first I tried adding the daemonize line to my configurator, but i was always getting 404''s and the log was nto being written to. So I added a call to Daemonize.daemonize(''mongrel.log'') at the top, and cut the daemonizer line. It still 404s and the log file is still not being written to.