# Rails

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

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

---

## [Need some Gruff graphing help - custom dimensions?](https://www.ruby-forum.com/t/need-some-gruff-graphing-help-custom-dimensions/97185)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 1\
**Last updated:** [February 4, 2009, 4:52pm UTC](https://www.ruby-forum.com/t/need-some-gruff-graphing-help-custom-dimensions/97185 "2009-02-04T16:52:12Z")

</div>

I’ve been working with Gruff to do all my apps graphing and such etc. I love it but I’m just having a hard time customizing the graphs, but this is perhaps due to my inability to comprehend the online RDocs. What I w…

---

## [In\_place\_rich\_editor method?](https://www.ruby-forum.com/t/in-place-rich-editor-method/159406)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 3\
**Last updated:** [February 4, 2009, 4:32pm UTC](https://www.ruby-forum.com/t/in-place-rich-editor-method/159406 "2009-02-04T16:32:19Z")

</div>

For someone i need to fix a bug into an CMS with in place form editing. Normally i used the in place form described in the rails recipes recipe 1. But in this project someone used antother method called in\_place\_rich…

---

## [Question about testing](https://www.ruby-forum.com/t/question-about-testing/159440)

<div class="topic-metadata">

**Author:** [@zero0x](https://www.ruby-forum.com/u/zero0x)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 4:30pm UTC](https://www.ruby-forum.com/t/question-about-testing/159440 "2009-02-04T16:30:25Z")

</div>

Hi, I have a question about testing … It’s controller test … First I do something like this: xhr :get, :status, :id =\> homeworks(:one).id, :status =\> “done” The :status action sets homework’s length\_done to length. …

---

## [What to do when the database server is in another place](https://www.ruby-forum.com/t/what-to-do-when-the-database-server-is-in-another-place/159441)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/what-to-do-when-the-database-server-is-in-another-place/159441 "2009-02-04T15:59:44Z")

</div>

Hello, I’m serving an application, that the database is in another place (far…). Once connected, everything is ok, but when you try to login, normally, the Rails isn’t connected, and I’m getting an Status: 500 Intern…

---

## [Legacy database tricks and techniques](https://www.ruby-forum.com/t/legacy-database-tricks-and-techniques/159434)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 2:59pm UTC](https://www.ruby-forum.com/t/legacy-database-tricks-and-techniques/159434 "2009-02-04T14:59:11Z")

</div>

I have been looking for a “definitive” guide to legacy database support for Rails and I am coming up relatively empty. There are a few tips and tricks out there but no specific step by step guide for integrating rails…

---

## [Avoind access to some views](https://www.ruby-forum.com/t/avoind-access-to-some-views/159424)

<div class="topic-metadata">

**Author:** [@adrianod](https://www.ruby-forum.com/u/adrianod)\
**Replies:** 1\
**Last updated:** [February 4, 2009, 2:46pm UTC](https://www.ruby-forum.com/t/avoind-access-to-some-views/159424 "2009-02-04T14:46:42Z")

</div>

Hi I want to do a simple create method and then it will open a view (show) to show all the data that was inputed (pretty simple). But I want the person to see the show ONLY when he/she first input his data (for exampl…

---

## [How do i select "OK" button on MS Internet Explorer Popup window](https://www.ruby-forum.com/t/how-do-i-select-ok-button-on-ms-internet-explorer-popup-window/159420)

<div class="topic-metadata">

**Author:** [@chandra\_sekhar](https://www.ruby-forum.com/u/chandra_sekhar)\
**Replies:** 1\
**Last updated:** [February 4, 2009, 2:41pm UTC](https://www.ruby-forum.com/t/how-do-i-select-ok-button-on-ms-internet-explorer-popup-window/159420 "2009-02-04T14:41:59Z")

</div>

Hi I am chandra sekhar, i am new to Ruby… i got stucked when i am executing one program…i have defined the Pop-Up function in one class, and i am calling this Pop-up function at main script. while executing the scri…

---

## [Datetime\_select field order and month list](https://www.ruby-forum.com/t/datetime-select-field-order-and-month-list/159427)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 1:41pm UTC](https://www.ruby-forum.com/t/datetime-select-field-order-and-month-list/159427 "2009-02-04T13:41:29Z")

</div>

Hi! I’ve searched throw Google and this forum and I found some answers and some tickets but I would like to know the actual situation. I’ve seen solutions for date\_select but not for datetime\_select. First: Is it pos…

---

## [Gem install mysql error with Xampp](https://www.ruby-forum.com/t/gem-install-mysql-error-with-xampp/159428)

<div class="topic-metadata">

**Author:** [@vpredoehl](https://www.ruby-forum.com/u/vpredoehl)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/gem-install-mysql-error-with-xampp/159428 "2009-02-04T13:32:03Z")

</div>

Hello, I’m trying to install mysql (to use it with Rails 2.2), without any success. After browsing the web, I found some tips (I need to target the xampp files), but it’s still not working finally. My command line i…

---

## [Turning fixtures off?](https://www.ruby-forum.com/t/turning-fixtures-off/159425)

<div class="topic-metadata">

**Author:** [@davidtl](https://www.ruby-forum.com/u/davidtl)\
**Replies:** 1\
**Last updated:** [February 4, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/turning-fixtures-off/159425 "2009-02-04T13:26:46Z")

</div>

I just finished migrating from fixtures to factory\_girl factories. It works really great and now I want to get rid of all the old fixtures. But there must be more to it than just deleting the “fixtures” directory… Th…

---

## [ActionWeb Service not working](https://www.ruby-forum.com/t/actionweb-service-not-working/159205)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/actionweb-service-not-working/159205 "2009-02-04T13:12:53Z")

</div>

Hi… I’m using Actionwebservice::Struct to pass complex elements to my webservice calls… I’ve installed the actionwebservice gem and made changes in environment.rb as told at http://fiatdev.com/2007/05/31/making-acti…

---

## [Activate a gem](https://www.ruby-forum.com/t/activate-a-gem/159401)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 1:11pm UTC](https://www.ruby-forum.com/t/activate-a-gem/159401 "2009-02-04T13:11:21Z")

</div>

hi… I have gems actionmailer 2.0.2 and actionmailer 2.1.0 both installed an my m/c… But I want the gem actionmailer 2.0.2 to be used by my rails application… How do I do this??? Thank you…

---

## [Fetching values from Table - Need help](https://www.ruby-forum.com/t/fetching-values-from-table-need-help/159419)

<div class="topic-metadata">

**Author:** [@lookshankar](https://www.ruby-forum.com/u/lookshankar)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 12:14pm UTC](https://www.ruby-forum.com/t/fetching-values-from-table-need-help/159419 "2009-02-04T12:14:46Z")

</div>

Hi , I have table like this --------------------------------------------------------------- |id | what | when | color | to | description | ------------------------------------------------------------…

---

## [How to access a xml thourgh Ruby on rails](https://www.ruby-forum.com/t/how-to-access-a-xml-thourgh-ruby-on-rails/158919)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/how-to-access-a-xml-thourgh-ruby-on-rails/158919 "2009-02-04T12:13:06Z")

</div>

Hi to everyone, I am getting xml in the below format 123 FirstSecondThird FirstSecondThird FirstSecondThird I have to store this xml in my table sample …

---

## [Updation not working on production environment](https://www.ruby-forum.com/t/updation-not-working-on-production-environment/158714)

<div class="topic-metadata">

**Author:** [@hema\_mca](https://www.ruby-forum.com/u/hema_mca)\
**Replies:** 1\
**Last updated:** [February 4, 2009, 11:13am UTC](https://www.ruby-forum.com/t/updation-not-working-on-production-environment/158714 "2009-02-04T11:13:06Z")

</div>

Hi, I am new to ruby on rails,we are developing a integrated application which can be accessed by many companies… We developed application on development environment,recently we switched to production environment as…

---

## [Every controller action is being process twice, help!](https://www.ruby-forum.com/t/every-controller-action-is-being-process-twice-help/159410)

<div class="topic-metadata">

**Author:** [@ghettoiam](https://www.ruby-forum.com/u/ghettoiam)\
**Replies:** 1\
**Last updated:** [February 4, 2009, 10:51am UTC](https://www.ruby-forum.com/t/every-controller-action-is-being-process-twice-help/159410 "2009-02-04T10:51:50Z")

</div>

Regardless of what action in what controller I hit, the server is executing the whole controller twice, sequentially. It’s goes through it once, then it goes through it again, then it shows page. Here is an example o…

---

## [Having prob in partial render](https://www.ruby-forum.com/t/having-prob-in-partial-render/159409)

<div class="topic-metadata">

**Author:** [@msk](https://www.ruby-forum.com/u/msk)\
**Replies:** 1\
**Last updated:** [February 4, 2009, 10:48am UTC](https://www.ruby-forum.com/t/having-prob-in-partial-render/159409 "2009-02-04T10:48:54Z")

</div>

hi, i am actually new to ruby rails so i am trying to add \_sidebar.html.erb into my home.html.erb by using the following code directly into the home.html.erb e.g \<% render :partial =\> "/shared/\_side\_bar" %\> but now …

---

## [Belongs\_to :type, :class\_name =\> "ItemType"](https://www.ruby-forum.com/t/belongs-to-type-class-name-itemtype/158950)

<div class="topic-metadata">

**Author:** [@rasmus](https://www.ruby-forum.com/u/rasmus)\
**Replies:** 11\
**Last updated:** [February 4, 2009, 10:22am UTC](https://www.ruby-forum.com/t/belongs-to-type-class-name-itemtype/158950 "2009-02-04T10:22:45Z")

</div>

Hi there, I have a Item-model that belongs to the ItemType-model. This works fine: class Item \< ActiveRecord::Base belongs\_to :item\_type end However, if I rewrite this to: class Item \< ActiveRecord::Base belongs\_t…

---

## [How to make a call to an applet in RoR?](https://www.ruby-forum.com/t/how-to-make-a-call-to-an-applet-in-ror/159395)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 5\
**Last updated:** [February 4, 2009, 8:47am UTC](https://www.ruby-forum.com/t/how-to-make-a-call-to-an-applet-in-ror/159395 "2009-02-04T08:47:52Z")

</div>

Hi… I need to call a java applet from my rails application… Can anyone please help and tell me…how do I do it??? Thank you so much…

---

## [Query some part on each record](https://www.ruby-forum.com/t/query-some-part-on-each-record/159292)

<div class="topic-metadata">

**Author:** [@ukarick](https://www.ruby-forum.com/u/ukarick)\
**Replies:** 6\
**Last updated:** [February 4, 2009, 8:37am UTC](https://www.ruby-forum.com/t/query-some-part-on-each-record/159292 "2009-02-04T08:37:05Z")

</div>

I would like to ask you this question suppose that I’ve 1 record which contains very long contents like Big\_Row\_Table Row1|Big\_Row| Row1|very long contents I would like to query only some part of Big row (such as get …

---

## [openSSL installation for ruby](https://www.ruby-forum.com/t/openssl-installation-for-ruby/159402)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 8:20am UTC](https://www.ruby-forum.com/t/openssl-installation-for-ruby/159402 "2009-02-04T08:20:53Z")

</div>

hi friends, I knew that this not the right form for asking my question. but i hope the this group having lot of people who have great knowledge, please help me one of who. i downloaded the openSSL for windows from …

---

## [Need your advice - after Locomotive and MAMP](https://www.ruby-forum.com/t/need-your-advice-after-locomotive-and-mamp/159363)

<div class="topic-metadata">

**Author:** [@rudy](https://www.ruby-forum.com/u/rudy)\
**Replies:** 4\
**Last updated:** [February 4, 2009, 4:01am UTC](https://www.ruby-forum.com/t/need-your-advice-after-locomotive-and-mamp/159363 "2009-02-04T04:01:43Z")

</div>

Hi guys, could you give me some advice here? I’ve been programming in RoR for some time. I made 4 programs that are used by some people, and I used Locomotive, MAMP and Textmate to develop them on a Mac. Worked like a…

---

## [Sobre internacionalizaciÃ³n](https://www.ruby-forum.com/t/sobre-internacionalizacia-n/159334)

<div class="topic-metadata">

**Author:** [@josedes](https://www.ruby-forum.com/u/josedes)\
**Replies:** 2\
**Last updated:** [February 4, 2009, 2:09am UTC](https://www.ruby-forum.com/t/sobre-internacionalizacia-n/159334 "2009-02-04T02:09:51Z")

</div>

Hola a todos. Una pregunta quizas algo tonta, cuando hago validaciones en el modelo con mensajes para la vista en espaÃ±ol efectivamente me los muestra en espaÃ±ol, pero como puedo hacer para que estos mensajes que so…

---

## [Troubles with Mephisto](https://www.ruby-forum.com/t/troubles-with-mephisto/159381)

<div class="topic-metadata">

**Author:** [@DrDexter](https://www.ruby-forum.com/u/DrDexter)\
**Replies:** 0\
**Last updated:** [February 4, 2009, 12:57am UTC](https://www.ruby-forum.com/t/troubles-with-mephisto/159381 "2009-02-04T00:57:16Z")

</div>

Hi, I am having trouble creating a new article on Mephisto on my Dreamhost server. I am using Rails 2.0.2 and Mephisto 0.8. When I login to the admin area and then attempt to create a new article I see this error in …

---

## [Using request.env to persist data?](https://www.ruby-forum.com/t/using-request-env-to-persist-data/159353)

<div class="topic-metadata">

**Author:** [@tatyree](https://www.ruby-forum.com/u/tatyree)\
**Replies:** 3\
**Last updated:** [February 4, 2009, 12:46am UTC](https://www.ruby-forum.com/t/using-request-env-to-persist-data/159353 "2009-02-04T00:46:45Z")

</div>

Is it ever sensible to attempt to persist data across a session using request.env? Say something like: request.env\[‘user\_name’\] = ‘bob’ I’m discussing this with the maintainer of a commercial gem (where it doesn’t s…

---

## [Belongs\_to / has\_many does not save](https://www.ruby-forum.com/t/belongs-to-has-many-does-not-save/159237)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [February 4, 2009, 12:43am UTC](https://www.ruby-forum.com/t/belongs-to-has-many-does-not-save/159237 "2009-02-04T00:43:49Z")

</div>

Hi I’m following pretty closely the following the Depot Application from the ‘Agile Web D. with Rails’ (3rd edition), but I run into deep trouble. I have: class Product \< ActiveRecord::Base has\_many :charge\_items e…

---

## [.htaccess protection of public folder](https://www.ruby-forum.com/t/htaccess-protection-of-public-folder/159352)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 11:30pm UTC](https://www.ruby-forum.com/t/htaccess-protection-of-public-folder/159352 "2009-02-03T23:30:34Z")

</div>

during staging devs, I want to protect the access to the site I wrote the folwoing into an .htaccess file in my public directory Access control policy AuthType Basic AuthName “AelmatRepository” AuthUserFile /etc/apac…

---

## [Initializer](https://www.ruby-forum.com/t/initializer/159367)

<div class="topic-metadata">

**Author:** [@spokra](https://www.ruby-forum.com/u/spokra)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 10:42pm UTC](https://www.ruby-forum.com/t/initializer/159367 "2009-02-03T22:42:25Z")

</div>

Have an app that works fine in development but not production behind pound that uses Geokit. I’ve figured out the API key is wrong. is there a way to configure each mongrel with a different API key? if there a vari…

---

## [Improve(?) has\_many :dependent =\> :destroy before destroy callback](https://www.ruby-forum.com/t/improve-has-many-dependent-destroy-before-destroy-callback/159371)

<div class="topic-metadata">

**Author:** [@seaquest](https://www.ruby-forum.com/u/seaquest)\
**Replies:** 0\
**Last updated:** [February 3, 2009, 10:40pm UTC](https://www.ruby-forum.com/t/improve-has-many-dependent-destroy-before-destroy-callback/159371 "2009-02-03T22:40:38Z")

</div>

Hi, I tried to submit this via lighthouse, but after third POST failure (mail also failed) I thought maybe someone here will be interested and forward this further. In my application I have dependent models and I wan…

---

## [Rake processing path](https://www.ruby-forum.com/t/rake-processing-path/159369)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 0\
**Last updated:** [February 3, 2009, 10:37pm UTC](https://www.ruby-forum.com/t/rake-processing-path/159369 "2009-02-03T22:37:19Z")

</div>

X-Posted from RSpec mailing list I am having a good deal of trouble grappling with how rake tasks are processed. In my rcov.rake file I have this: desc “Rcov code coverage reports” require ‘rcov/rcovtask’ require ‘s…

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

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