search for: zackham

Displaying 6 results from an estimated 6 matches for "zackham".

Did you mean: packham
2006 May 30
7
Stripping HTML tags from a string
Hello, Is there a common way of stripping html tags from a string? Right now I''m just calling gsub!(/<.*?>/, ''''), but with a background in PHP and always having used its strip_tags() method, I wonder if the Rails community has standardized this fairly common task with something a bit less simpleminded than my quick fix. Thanks! Zack -------------- next part
2006 May 19
12
How to build a server
Hi, I''ve been learning about building Rails apps for about 8 months but I don''t really know how servers work or how to build a server. I have an old 450 GHz Pentium computer I can play with. Since I use OS X, I was thinking about installing a BSD system and trying to make a MySQL/Rails server. That is about all I know about servers. How does a server in my house get connected
2006 May 20
10
HOW TO create a new record and its associated objects within the SAME PAGE
hi, can''t find any good tutorial or advice to deal with the creation of a new record and it''s associated objects within the same page. do i have to use ajax just to add custom form fields that will be handled by the controller for associated objects creation.? do i have to use ajax to add associated objects to the unsaved but allready in session parent object? what''s
2006 Jun 18
0
Thread safety in activerecord(?), connection lost to mysql server - simple code sample provided
Hello all, I know that this issue has come up before, but I read all the previous posts regarding thread safety and haven''t come up with a solution. I''m spawning lots of threads in a backgroundrb worker that each do things with activerecord models. I get the connection lost to mysql server exception about 90% of the time, with my process working by sheer luck the other 10%.
2006 May 30
0
data fixtures for non-activerecord models
I have a model that as an instance maintains a session on a website, and has methods to return some scraped data. Instead of hitting a URL over and over during testing, I would like to just save the source to a file and use that like a fixture. A mock object doesn''t seem appropriate, because there is a lot of data here. What I''m doing now is storing each separate
2006 May 31
0
belongs_to without referencing an id as a foreign key?
Hello everyone, Here''s my problem for the day: I have three tables that look a little like the following table_a id table_b id position table_a_id name table_c id table_a_id table_b_position There will be many rows in table_c that have the same table_a_id, and the same table_b_position. These will all be referencing the same name value in table_b. The row in table_b may