# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1998

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 1999

---

## [Grouping of related records](https://www.ruby-forum.com/t/grouping-of-related-records/87203)

<div class="topic-metadata">

**Author:** [@Marco\_Kotrotsos](https://www.ruby-forum.com/u/Marco_Kotrotsos)\
**Replies:** 3\
**Last updated:** [March 1, 2007, 10:04am UTC](https://www.ruby-forum.com/t/grouping-of-related-records/87203 "2007-03-01T10:04:20Z")

</div>

Hey, goodevening to all. I have something that I wonder if I can do better. I have a list or records, employee records Marco from Amsterdam Silvia from Amsterdam Enola from Rotterdam Elisa From Utrecht These are n…

---

## [Safari and firefox return different objects from a form](https://www.ruby-forum.com/t/safari-and-firefox-return-different-objects-from-a-form/87259)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 9:38am UTC](https://www.ruby-forum.com/t/safari-and-firefox-return-different-objects-from-a-form/87259 "2007-03-01T09:38:15Z")

</div>

Hi, been having problems with my image uploads with Safari and firefox, i get it working with one, and it brakes in the other, and vice versa. This problem manifests itself during an edit, if no image is selected on t…

---

## [How to install globalize 1.2 in ROR](https://www.ruby-forum.com/t/how-to-install-globalize-1-2-in-ror/86294)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 9:33am UTC](https://www.ruby-forum.com/t/how-to-install-globalize-1-2-in-ror/86294 "2007-03-01T09:33:38Z")

</div>

hi, can any one tell how to install globalize 1.2 in raby on rails step by step as soon as possible

---

## [Multiple sessions?](https://www.ruby-forum.com/t/multiple-sessions/87254)

<div class="topic-metadata">

**Author:** [@pond](https://www.ruby-forum.com/u/pond)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 9:14am UTC](https://www.ruby-forum.com/t/multiple-sessions/87254 "2007-03-01T09:14:35Z")

</div>

So here’s the situation: I’m working on a Rails site that needs to have two separate authenticated areas (the cms and a shopping cart). I haven’t begun working on the shopping cart yet, but I need to figure out the b…

---

## [Date\_select, problem with setting the class](https://www.ruby-forum.com/t/date-select-problem-with-setting-the-class/86990)

<div class="topic-metadata">

**Author:** [@pantouffe](https://www.ruby-forum.com/u/pantouffe)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 9:01am UTC](https://www.ruby-forum.com/t/date-select-problem-with-setting-the-class/86990 "2007-03-01T09:01:42Z")

</div>

my code looks like this \<%= date\_select(“lob”, “date”, :class =\> ‘selectdate’) %\> -when i look in to the source of html page, only the first and second select that are built automatically contains class=“selectdate”, …

---

## [\[RoR\],\[C.L.R\]Generating HTML to help visualize large YAML fi](https://www.ruby-forum.com/t/ror-c-l-r-generating-html-to-help-visualize-large-yaml-fi/87255)

<div class="topic-metadata">

**Author:** [@splattael](https://www.ruby-forum.com/u/splattael)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 8:49am UTC](https://www.ruby-forum.com/t/ror-c-l-r-generating-html-to-help-visualize-large-yaml-fi/87255 "2007-03-01T08:49:32Z")

</div>

Rails and Ruby People, I have some data which I want to present to my end-users. The data is structured as a simple tree-like thing. I could easily render it as a well structured YAML file. I’m looking for a class or…

---

## [Advocating a patch](https://www.ruby-forum.com/t/advocating-a-patch/87251)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 1\
**Last updated:** [March 1, 2007, 6:54am UTC](https://www.ruby-forum.com/t/advocating-a-patch/87251 "2007-03-01T06:54:18Z")

</div>

What’s the best way to advocate for a Rails patch to be accepted? This seems like a general enough question when considered on the whole, but here is a specific example. Consider this ticket: http://dev.rubyonrails.or…

---

## [Ho do i write t](https://www.ruby-forum.com/t/ho-do-i-write-t/87195)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 2\
**Last updated:** [March 1, 2007, 6:31am UTC](https://www.ruby-forum.com/t/ho-do-i-write-t/87195 "2007-03-01T06:31:16Z")

</div>

Hi, I am writing a generator, i follow a a tutorial \[1\], but i want to look into the code of the build-in rails generators. And i cant find they. Where can i find the sources of the generators? I had read this thread…

---

## [Deployment options for RoR class](https://www.ruby-forum.com/t/deployment-options-for-ror-class/86910)

<div class="topic-metadata">

**Author:** [@suer\_rick](https://www.ruby-forum.com/u/suer_rick)\
**Replies:** 5\
**Last updated:** [March 1, 2007, 6:13am UTC](https://www.ruby-forum.com/t/deployment-options-for-ror-class/86910 "2007-03-01T06:13:15Z")

</div>

I’m setting up a linux server to host RoR apps written by students for their project. The students will (obviously) not have root access to the server. The students all have windows systems for development. There ar…

---

## [How to use same lay out for two controllers?](https://www.ruby-forum.com/t/how-to-use-same-lay-out-for-two-controllers/87189)

<div class="topic-metadata">

**Author:** [@rubysharma](https://www.ruby-forum.com/u/rubysharma)\
**Replies:** 3\
**Last updated:** [March 1, 2007, 5:45am UTC](https://www.ruby-forum.com/t/how-to-use-same-lay-out-for-two-controllers/87189 "2007-03-01T05:45:17Z")

</div>

Hi, I have two controllers called user and languages. languages is generated by scaffold. where user is created using rails generators. But user controller is not using languages layout. how do I make user\_controller …

---

## [Console broken - not showing prompt](https://www.ruby-forum.com/t/console-broken-not-showing-prompt/87248)

<div class="topic-metadata">

**Author:** [@dang](https://www.ruby-forum.com/u/dang)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 5:42am UTC](https://www.ruby-forum.com/t/console-broken-not-showing-prompt/87248 "2007-03-01T05:42:17Z")

</div>

Hi all, I’m having some fun with my console which is starting to get a little frustrating. When I start the console I get the usual “Loading development environment” message, but the prompt never appears. After a cou…

---

## [Featured Items Listing](https://www.ruby-forum.com/t/featured-items-listing/87214)

<div class="topic-metadata">

**Author:** [@jstepper](https://www.ruby-forum.com/u/jstepper)\
**Replies:** 2\
**Last updated:** [March 1, 2007, 5:26am UTC](https://www.ruby-forum.com/t/featured-items-listing/87214 "2007-03-01T05:26:13Z")

</div>

Hey All, Say I have a website with articles and events and I want to create an index of featured items which will have a mixture of articles and events. I presume I’d create a FeaturedItem model/table with the follo…

---

## [Comparing Ruby time with SQL time](https://www.ruby-forum.com/t/comparing-ruby-time-with-sql-time/87247)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 2\
**Last updated:** [March 1, 2007, 4:24am UTC](https://www.ruby-forum.com/t/comparing-ruby-time-with-sql-time/87247 "2007-03-01T04:24:09Z")

</div>

Hi everyone, Quick question: I want to grab all rows in a database posted less than 24 hours ago. Here’s what I have in my controller: def stats now = Time.now recipe\_yesterday = now.yesterday @recipes = Recipe.fin…

---

## [Social networking site open source code?](https://www.ruby-forum.com/t/social-networking-site-open-source-code/87219)

<div class="topic-metadata">

**Author:** [@scot](https://www.ruby-forum.com/u/scot)\
**Replies:** 3\
**Last updated:** [March 1, 2007, 4:13am UTC](https://www.ruby-forum.com/t/social-networking-site-open-source-code/87219 "2007-03-01T04:13:09Z")

</div>

Is anyone aware of any open-source code that has the base already built for a social networking site? i.e. with messaging, friends lists etc…

---

## [Getting content-disposition in the HTTP response headers](https://www.ruby-forum.com/t/getting-content-disposition-in-the-http-response-headers/87150)

<div class="topic-metadata">

**Author:** [@hartog](https://www.ruby-forum.com/u/hartog)\
**Replies:** 5\
**Last updated:** [March 1, 2007, 3:54am UTC](https://www.ruby-forum.com/t/getting-content-disposition-in-the-http-response-headers/87150 "2007-03-01T03:54:03Z")

</div>

Hi, I am quite new to Ruby and Rails, although I have cracked most of my puzzles by googling and trying I just can’t get this one to get going for me. Here is my problem: I am trying to cough up a nice text/csv file…

---

## [Blog code?](https://www.ruby-forum.com/t/blog-code/86620)

<div class="topic-metadata">

**Author:** [@scot](https://www.ruby-forum.com/u/scot)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 1:36am UTC](https://www.ruby-forum.com/t/blog-code/86620 "2007-03-01T01:36:52Z")

</div>

Hi, I have an existing rails application and would like to add a blog to this, does anyone know of any code that has already been written for this purpose? Thanks Scot

---

## [ActiveRecord requires sequence numbers in Oracle join table](https://www.ruby-forum.com/t/activerecord-requires-sequence-numbers-in-oracle-join-table/83060)

<div class="topic-metadata">

**Author:** [@henrik](https://www.ruby-forum.com/u/henrik)\
**Replies:** 7\
**Last updated:** [March 1, 2007, 1:11am UTC](https://www.ruby-forum.com/t/activerecord-requires-sequence-numbers-in-oracle-join-table/83060 "2007-03-01T01:11:11Z")

</div>

I am mapping ActiveRecord classes to an existing Oracle database. This means I cannot change the database schema to fit ActiveRecord conventions. Predictably, I have gotten into trouble: I have several join tables th…

---

## [Something wrong with RaPT. . .?](https://www.ruby-forum.com/t/something-wrong-with-rapt/87234)

<div class="topic-metadata">

**Author:** [@gberz3](https://www.ruby-forum.com/u/gberz3)\
**Replies:** 0\
**Last updated:** [March 1, 2007, 12:43am UTC](https://www.ruby-forum.com/t/something-wrong-with-rapt/87234 "2007-03-01T00:43:46Z")

</div>

Is there something going on with rapt? I’ve been using it the past few days on a system of mine and all has been well. Suddenly it just doens’t want to search or update or anything. Is it possible that a configurat…

---

## [Deriving controller/action from a RESTful URL](https://www.ruby-forum.com/t/deriving-controller-action-from-a-restful-url/87221)

<div class="topic-metadata">

**Author:** [@crabasa](https://www.ruby-forum.com/u/crabasa)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 11:32pm UTC](https://www.ruby-forum.com/t/deriving-controller-action-from-a-restful-url/87221 "2007-02-28T23:32:25Z")

</div>

If I have a URL/PATH generated via Rails routing: edit\_foo\_path(foo)) =\> “/foo/1;edit” …is there some way that I can take that string and get its component parts (controller, action, id, etc)?? I’m specifically looki…

---

## [Need a Rails Developer in the Bay Area ASAP](https://www.ruby-forum.com/t/need-a-rails-developer-in-the-bay-area-asap/87213)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 10:24pm UTC](https://www.ruby-forum.com/t/need-a-rails-developer-in-the-bay-area-asap/87213 "2007-02-28T22:24:25Z")

</div>

Please email me at removed\_email\_address@domain.invalid if your interested. Thanks in advance!

---

## [Setting GEM\_PATH in environment.rb](https://www.ruby-forum.com/t/setting-gem-path-in-environment-rb/87212)

<div class="topic-metadata">

**Author:** [@hatless](https://www.ruby-forum.com/u/hatless)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/setting-gem-path-in-environment-rb/87212 "2007-02-28T22:22:32Z")

</div>

This isn’t a hosting-related question. I’m not looking for a way to set the GEM\_PATH in a shell script. Instead, I’m trying to load gems from both the systemwide gem path and from a directory of app-specific gems I’ve…

---

## [Routes Optional Values](https://www.ruby-forum.com/t/routes-optional-values/87191)

<div class="topic-metadata">

**Author:** [@divotdave](https://www.ruby-forum.com/u/divotdave)\
**Replies:** 1\
**Last updated:** [February 28, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/routes-optional-values/87191 "2007-02-28T22:00:18Z")

</div>

I’m trying to my a url that has optional (and not optional values) for example http://myserver/store/cats/a/b/c A and C are optional where the following are valid http://myserver/store/cats/a/b/c http://myserver/st…

---

## [eRuby.cgi](https://www.ruby-forum.com/t/eruby-cgi/87205)

<div class="topic-metadata">

**Author:** [@jonathan](https://www.ruby-forum.com/u/jonathan)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/eruby-cgi/87205 "2007-02-28T21:31:08Z")

</div>

I’m not using rails, I think if I tried I’d be way in over my head, but I do want to use ruby in my websites, so I’m thinking eruby is the way to go. The problem is, I need to install it. From what I gather, I just n…

---

## [Soap Client Issue passing Param](https://www.ruby-forum.com/t/soap-client-issue-passing-param/87204)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 9:18pm UTC](https://www.ruby-forum.com/t/soap-client-issue-passing-param/87204 "2007-02-28T21:18:12Z")

</div>

I had a quick question about setting up a soap client I am attempting to setup a SOAP client with a shipping company to get realtime tracking information. Here is the function I have written for it: def self.get\_yell…

---

## [Unusual rendering behavior with render\_to\_string()](https://www.ruby-forum.com/t/unusual-rendering-behavior-with-render-to-string/75460)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [February 28, 2007, 9:08pm UTC](https://www.ruby-forum.com/t/unusual-rendering-behavior-with-render-to-string/75460 "2007-02-28T21:08:35Z")

</div>

I have an app. where I am generating PDF files. I use a .rxml template to generate content that I then write to a file using render\_to\_string(). That works fine, however, if I make a call to render(:text =\> ‘blah’) …

---

## [Can i use actionmailer on my localhost?](https://www.ruby-forum.com/t/can-i-use-actionmailer-on-my-localhost/87167)

<div class="topic-metadata">

**Author:** [@koloa](https://www.ruby-forum.com/u/koloa)\
**Replies:** 1\
**Last updated:** [February 28, 2007, 8:49pm UTC](https://www.ruby-forum.com/t/can-i-use-actionmailer-on-my-localhost/87167 "2007-02-28T20:49:55Z")

</div>

or do I need to be on a server to practice the tutorials? thanks

---

## [Format a string in params](https://www.ruby-forum.com/t/format-a-string-in-params/87004)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [February 28, 2007, 8:36pm UTC](https://www.ruby-forum.com/t/format-a-string-in-params/87004 "2007-02-28T20:36:54Z")

</div>

Hi, i’ve got a problem with slashes “/” : i do a redirect : redirect\_to :action =\> action, :id =\> params\[:my\_param\] but when parameter string params\[:my\_param\] is with slash, for example “16/9”, i’ve got the followi…

---

## [RoR&Apache - htaccess rewrite directories fail?](https://www.ruby-forum.com/t/ror-apache-htaccess-rewrite-directories-fail/87199)

<div class="topic-metadata">

**Author:** [@onionknight](https://www.ruby-forum.com/u/onionknight)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 8:34pm UTC](https://www.ruby-forum.com/t/ror-apache-htaccess-rewrite-directories-fail/87199 "2007-02-28T20:34:36Z")

</div>

On my server I have a directory at the root, /rails/ which contains other directories with rails projects. In my httpd.conf I have RewriteEngine On RewriteLog “logs/rewrite.log” RewriteLogLevel 9 RewriteCond %{REQUE…

---

## [Assert\_select tag in Rails 1.2.2](https://www.ruby-forum.com/t/assert-select-tag-in-rails-1-2-2/87169)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 28, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/assert-select-tag-in-rails-1-2-2/87169 "2007-02-28T20:25:52Z")

</div>

Rails 1.2.2 names the form elements like contact\[subject\], contact\[body\] and so on. The following code does not work in latest version. def test\_login\_form\_has\_all\_fields get :login assert\_select “form\[action=http:/…

---

## [Using activerecord to copy records from one database to anot](https://www.ruby-forum.com/t/using-activerecord-to-copy-records-from-one-database-to-anot/87192)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 0\
**Last updated:** [February 28, 2007, 8:07pm UTC](https://www.ruby-forum.com/t/using-activerecord-to-copy-records-from-one-database-to-anot/87192 "2007-02-28T20:07:47Z")

</div>

Hello, Our DBA accidentally restored a database resulting in a loss of all data from the weekend. The problem is that it was discovered after a day’s worth of data entry, resulting in the same record keys identifyin…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1997)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1999)
