# Rails

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

[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:** 1647

---

## [Attributes in Hash.from\_xml](https://www.ruby-forum.com/t/attributes-in-hash-from-xml/118717)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 12:16pm UTC](https://www.ruby-forum.com/t/attributes-in-hash-from-xml/118717 "2007-10-30T12:16:18Z")

</div>

When i use Hash.from\_xml() to convert xml into a hash, it seems like attributes (that don’t relate to the data type of the contents of the element) are discarded - is there any way to keep them, does anyone know? Obv…

---

## [Link\_to \> logged\_in\_user.username](https://www.ruby-forum.com/t/link-to-logged-in-user-username/118713)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/link-to-logged-in-user-username/118713 "2007-10-30T12:08:49Z")

</div>

Hi there… A newbie question… The link below links to the users-page…that works fine… \<%= link\_to 'MyLink', user\_path(logged\_in\_user) -%\> But i don’t want the link ‘Mylink’ but the username instead of. The username is…

---

## [Rails Project + PHP (Wordpress), same server?](https://www.ruby-forum.com/t/rails-project-php-wordpress-same-server/118715)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 12:07pm UTC](https://www.ruby-forum.com/t/rails-project-php-wordpress-same-server/118715 "2007-10-30T12:07:54Z")

</div>

Hi, i’ve an hosting which has the php and rails support. I was wondering if i can have wordpress in the root (eg www.domain.com ) and in a subfolder a rails project (eg www.domain.com/project ), is it possible? (obvio…

---

## [HABTM query](https://www.ruby-forum.com/t/habtm-query/118702)

<div class="topic-metadata">

**Author:** [@danywu](https://www.ruby-forum.com/u/danywu)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/habtm-query/118702 "2007-10-30T12:03:19Z")

</div>

Hi everyone, I am just playing with a Blog project at the moment. It has a simple data model of Post has\_and\_belongs\_to\_many :categories Category has\_and\_belongs\_to\_many :posts And the DB tables to serve the model…

---

## [SQL Server migration result differs depending on client](https://www.ruby-forum.com/t/sql-server-migration-result-differs-depending-on-client/118022)

<div class="topic-metadata">

**Author:** [@donv](https://www.ruby-forum.com/u/donv)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 11:57am UTC](https://www.ruby-forum.com/t/sql-server-migration-result-differs-depending-on-client/118022 "2007-10-30T11:57:35Z")

</div>

Hi all! I hope somebody can help me. I have very little hair left, and it is decreasing more rapidly the longer I have this problem :slight\_smile: I am connecting to a MS SQL Server 9.0.2047 from Fedora 7 linux, usin…

---

## [Pretty-printing (or otherwise) a hash in a view template](https://www.ruby-forum.com/t/pretty-printing-or-otherwise-a-hash-in-a-view-template/118638)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 11:46am UTC](https://www.ruby-forum.com/t/pretty-printing-or-otherwise-a-hash-in-a-view-template/118638 "2007-10-30T11:46:28Z")

</div>

I have some text boxes into which i want to output the contents of some hashes, in the nice readable way we all know and love. Can i use pretty-print for this? As far as i can tell, pp only works to standard output …

---

## [RESTful nested routes =\> generated method names?](https://www.ruby-forum.com/t/restful-nested-routes-generated-method-names/118712)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 11:21am UTC](https://www.ruby-forum.com/t/restful-nested-routes-generated-method-names/118712 "2007-10-30T11:21:09Z")

</div>

Dear list, Currently I am working on my first REST application and so far I really like te clairity it brings to the project but there is one thing I do not understand. My routes.rb looks something like this: map.res…

---

## [New Server - Looking for help on Apache / Mongrel install](https://www.ruby-forum.com/t/new-server-looking-for-help-on-apache-mongrel-install/118687)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 2\
**Last updated:** [October 30, 2007, 10:32am UTC](https://www.ruby-forum.com/t/new-server-looking-for-help-on-apache-mongrel-install/118687 "2007-10-30T10:32:00Z")

</div>

Building 1st Linux server. I am looking for help on how to set up Apache 2.2 with Mongrel on CentOS server. I read through the Apache Conf file. It is somewhat intimidating Any good how tos would be appreciated.

---

## [Connecting a row of an unknown table to another row of an un](https://www.ruby-forum.com/t/connecting-a-row-of-an-unknown-table-to-another-row-of-an-un/115285)

<div class="topic-metadata">

**Author:** [@mcmire](https://www.ruby-forum.com/u/mcmire)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 10:18am UTC](https://www.ruby-forum.com/t/connecting-a-row-of-an-unknown-table-to-another-row-of-an-un/115285 "2007-10-30T10:18:31Z")

</div>

Hello all, I’m currently designing a web app in Rails that lets me keep a directory of free/opensource computer games. Each game has attributes like name, website, review, etc., but each game can also be associated wi…

---

## [Total noob with a silly question (i'm sure)](https://www.ruby-forum.com/t/total-noob-with-a-silly-question-im-sure/118696)

<div class="topic-metadata">

**Author:** [@Gareth](https://www.ruby-forum.com/u/Gareth)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 7:47am UTC](https://www.ruby-forum.com/t/total-noob-with-a-silly-question-im-sure/118696 "2007-10-30T07:47:37Z")

</div>

Hi guys, I’ve been looking at ROR for a wee while. I waited for leopard to get started as I knew that it was built into leopard. I can get it up and running fine - in terms of creating a project, launching mongrel a…

---

## [Help rebuilding my database](https://www.ruby-forum.com/t/help-rebuilding-my-database/118684)

<div class="topic-metadata">

**Author:** [@rohit](https://www.ruby-forum.com/u/rohit)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 7:45am UTC](https://www.ruby-forum.com/t/help-rebuilding-my-database/118684 "2007-10-30T07:45:52Z")

</div>

Hey Everyone, I wanted to start with a fresh database, so I deleted my database, db\_name\_dev, and then recreated it. However, when I run rake db:migrate, instead of recreating my schema, I get this error: Mysql::Err…

---

## [Ruby and Rails on Leopard](https://www.ruby-forum.com/t/ruby-and-rails-on-leopard/118566)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 4\
**Last updated:** [October 30, 2007, 7:09am UTC](https://www.ruby-forum.com/t/ruby-and-rails-on-leopard/118566 "2007-10-30T07:09:31Z")

</div>

I asked on the Ruby list the best way to switch from my Hivelogic source installed versions of Ruby and Rails, to the Leopard native versions. The reply was to just change my PATH to move the /usr/local/bin to the end…

---

## [Has anybody integrated with Paymentech / Orbital?](https://www.ruby-forum.com/t/has-anybody-integrated-with-paymentech-orbital/118675)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 5:23am UTC](https://www.ruby-forum.com/t/has-anybody-integrated-with-paymentech-orbital/118675 "2007-10-30T05:23:54Z")

</div>

Hi, I pulled a project for a client together rather quickly. The client’s payment gateway is Orbital Paymentech. ActiveMerchant does not support these. Google has been rather dry for ruby solutions. Would someone…

---

## [Excel sheet generation](https://www.ruby-forum.com/t/excel-sheet-generation/82124)

<div class="topic-metadata">

**Author:** [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Replies:** 14\
**Last updated:** [October 30, 2007, 5:03am UTC](https://www.ruby-forum.com/t/excel-sheet-generation/82124 "2007-10-30T05:03:27Z")

</div>

Hi, Does anyone know of a package that will help with generation of spreadsheets? (xls files, not csv) Thanks, Fredrik

---

## [Needing some help with many to many query](https://www.ruby-forum.com/t/needing-some-help-with-many-to-many-query/118569)

<div class="topic-metadata">

**Author:** [@Chubbs](https://www.ruby-forum.com/u/Chubbs)\
**Replies:** 3\
**Last updated:** [October 30, 2007, 4:39am UTC](https://www.ruby-forum.com/t/needing-some-help-with-many-to-many-query/118569 "2007-10-30T04:39:30Z")

</div>

Hey i have a many to many relationship between Users & PrivmessageThreads. This is where users will have many threads of privmsgs, and vice versa. I trying to do a query on a PrivmsgThread to just find the other use…

---

## [Textbox to session](https://www.ruby-forum.com/t/textbox-to-session/118608)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 7\
**Last updated:** [October 30, 2007, 3:46am UTC](https://www.ruby-forum.com/t/textbox-to-session/118608 "2007-10-30T03:46:53Z")

</div>

Can anyone help me out with storing a user’s location to session to be used several times by a user during a login ? I need to create a textbox where the user enters there zip code and then I need to hold that zip co…

---

## [How to create a dynamic 404 page?](https://www.ruby-forum.com/t/how-to-create-a-dynamic-404-page/118678)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 3:28am UTC](https://www.ruby-forum.com/t/how-to-create-a-dynamic-404-page/118678 "2007-10-30T03:28:45Z")

</div>

Hi all When a user of my website reaches a page that doesn’t exist, the 404.html page is rendered and the header status 404 is sent. I’d like to have this 404 page dynamic, e.g. I’d like to display the user a mailto …

---

## [Authentication error](https://www.ruby-forum.com/t/authentication-error/118502)

<div class="topic-metadata">

**Author:** [@jimmygoogle](https://www.ruby-forum.com/u/jimmygoogle)\
**Replies:** 5\
**Last updated:** [October 30, 2007, 3:24am UTC](https://www.ruby-forum.com/t/authentication-error/118502 "2007-10-30T03:24:39Z")

</div>

I am not sure if I am in the right forum but here is to goes. I am a rails noob. I am trying to setup authentication in my current small cookbook app. I am following the basic tutorials. I am trying to use “Acts\_a…

---

## [Concurrency in mongrel](https://www.ruby-forum.com/t/concurrency-in-mongrel/118690)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 3:15am UTC](https://www.ruby-forum.com/t/concurrency-in-mongrel/118690 "2007-10-30T03:15:53Z")

</div>

Hi, I would like to know if it is possible to implement concurrency in mongrel. I have a simple controller in my application which writes data to a file. How can I synchronize the file access? I’ve read a few posts o…

---

## [Internet Explorer Drag n' Drop bug redux](https://www.ruby-forum.com/t/internet-explorer-drag-n-drop-bug-redux/118681)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 0\
**Last updated:** [October 30, 2007, 1:14am UTC](https://www.ruby-forum.com/t/internet-explorer-drag-n-drop-bug-redux/118681 "2007-10-30T01:14:44Z")

</div>

I know it is not a new story, but, I have a drag-n-drop problem that only shows up in IE. There are already myriad issues in in this forum IE bugs with IE, but yet in all the postings I’ve read, I’ve not found any cl…

---

## [UI drop down list pulled from database values in activescaffold](https://www.ruby-forum.com/t/ui-drop-down-list-pulled-from-database-values-in-activescaffold/118659)

<div class="topic-metadata">

**Author:** [@Selvan](https://www.ruby-forum.com/u/Selvan)\
**Replies:** 2\
**Last updated:** [October 30, 2007, 1:12am UTC](https://www.ruby-forum.com/t/ui-drop-down-list-pulled-from-database-values-in-activescaffold/118659 "2007-10-30T01:12:38Z")

</div>

as i’m finding it difficult to override the form Ui elements using activescaffold -= i’m looking for a help to build a drop down list in UI (values pulled from databse through SQL query) and so user can select these v…

---

## [High availability through ARes + caching](https://www.ruby-forum.com/t/high-availability-through-ares-caching/118673)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 2\
**Last updated:** [October 30, 2007, 12:26am UTC](https://www.ruby-forum.com/t/high-availability-through-ares-caching/118673 "2007-10-30T00:26:27Z")

</div>

We have an app with two distinct parts: a publish console and then a read-only view part. The views account for over 99% of our traffic, and the content doesn’t change very much. We want to build a HA system for our…

---

## [Nested routes with 2.0 example?](https://www.ruby-forum.com/t/nested-routes-with-2-0-example/118670)

<div class="topic-metadata">

**Author:** [@Isak\_H](https://www.ruby-forum.com/u/Isak_H)\
**Replies:** 1\
**Last updated:** [October 30, 2007, 12:14am UTC](https://www.ruby-forum.com/t/nested-routes-with-2-0-example/118670 "2007-10-30T00:14:46Z")

</div>

Anyone know of a relevant example out there, preferably a “full” application, for the 2.0 branch? - Just something simple, like Author has\_many :books, or similar. I’m finding a lot of snippets, but nothing complete. …

---

## [Weekly calendar](https://www.ruby-forum.com/t/weekly-calendar/118667)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [October 29, 2007, 11:57pm UTC](https://www.ruby-forum.com/t/weekly-calendar/118667 "2007-10-29T23:57:12Z")

</div>

Hi, we work on a reservation system for machines. customers should see in a weekly calendar for each machines, whether it is reserved or not. I have implemented the machines, users and reservations - does someone kn…

---

## [About views problem!](https://www.ruby-forum.com/t/about-views-problem/118325)

<div class="topic-metadata">

**Author:** [@OnRails](https://www.ruby-forum.com/u/OnRails)\
**Replies:** 5\
**Last updated:** [October 29, 2007, 11:39pm UTC](https://www.ruby-forum.com/t/about-views-problem/118325 "2007-10-29T23:39:04Z")

</div>

Hi, everyone! I have a question. when I created a controller and a action like this: class EverythingController \< ApplicationController def index end def findname content=“here is test” render :text =\> content, …

---

## [Joshua - scio page is not available](https://www.ruby-forum.com/t/joshua-scio-page-is-not-available/118671)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/joshua-scio-page-is-not-available/118671 "2007-10-29T23:10:26Z")

</div>

Joshua, your web page… See http://rolando.cl/media/ruby/scio\_excel.rb it doesn’t work Craig

---

## [How to overcome the DoubleRender problem?](https://www.ruby-forum.com/t/how-to-overcome-the-doublerender-problem/118563)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 12\
**Last updated:** [October 29, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/how-to-overcome-the-doublerender-problem/118563 "2007-10-29T22:55:43Z")

</div>

Hi all I ran into this problem more than once. Let’s say, a user logs into my site and clicks a link that only logged in members can see. Because he likes the content of this specific site, he places a link into his …

---

## [Routes for different languages](https://www.ruby-forum.com/t/routes-for-different-languages/118669)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/routes-for-different-languages/118669 "2007-10-29T22:46:16Z")

</div>

I have a before filter which localizes strings based on params\[:lang\]. If :lang is “de” I want my urls to look like this: mysite.com/de/home/show/1 If it’s empty, localization defaults to english and I want my url to …

---

## [Last week to submit a talk for acts\_as\_conference](https://www.ruby-forum.com/t/last-week-to-submit-a-talk-for-acts-as-conference/118666)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/last-week-to-submit-a-talk-for-acts-as-conference/118666 "2007-10-29T22:38:16Z")

</div>

This is the last week to submit your talk to acts\_as\_conference (http://www.actsasconference.com/), the two day Ruby on Rails conference being held in Orlando, Florida February 8th and 9th. If you haven’t done so, sen…

---

## [How to render xml](https://www.ruby-forum.com/t/how-to-render-xml/118665)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 0\
**Last updated:** [October 29, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/how-to-render-xml/118665 "2007-10-29T22:35:56Z")

</div>

hi I’ve got quite long strings containing xml, and I’d like to render these xml codes inside an rhtml view in a nice way. That means automatical linebreaks etc. The string itself is nearly unreadable… This cannot be …

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

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