# Rails

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

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

---

## [Possible to run rails 1.2.x and 2.0.x on the same host?](https://www.ruby-forum.com/t/possible-to-run-rails-1-2-x-and-2-0-x-on-the-same-host/145784)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [November 7, 2008, 3:31am UTC](https://www.ruby-forum.com/t/possible-to-run-rails-1-2-x-and-2-0-x-on-the-same-host/145784 "2008-11-07T03:31:01Z")

</div>

Hello, Does anyone have experience running multiple versions of rails on a single host? Is this even a reasonable suggestion? Thanks.

---

## [Handling multiple domain accounts for accessing a single web app](https://www.ruby-forum.com/t/handling-multiple-domain-accounts-for-accessing-a-single-web-app/142085)

<div class="topic-metadata">

**Author:** [@jacob\_v\_thomas](https://www.ruby-forum.com/u/jacob_v_thomas)\
**Replies:** 4\
**Last updated:** [November 7, 2008, 2:39am UTC](https://www.ruby-forum.com/t/handling-multiple-domain-accounts-for-accessing-a-single-web-app/142085 "2008-11-07T02:39:34Z")

</div>

hi all, Here is the question, Is there a way to set multiple domain name for accessing a single rails application, below are my requirements based on the domain i need to show pages based on their settings. how …

---

## [Testing modules](https://www.ruby-forum.com/t/testing-modules/152735)

<div class="topic-metadata">

**Author:** [@russianbandit](https://www.ruby-forum.com/u/russianbandit)\
**Replies:** 1\
**Last updated:** [November 7, 2008, 2:33am UTC](https://www.ruby-forum.com/t/testing-modules/152735 "2008-11-07T02:33:44Z")

</div>

I’m curious about standards on unit testing modules. I have a module file in my lib/ directory. Should I create a unit test in test/unit directory and test it as I would any other model? Is there any kind of naming co…

---

## [Xmlsimple warning](https://www.ruby-forum.com/t/xmlsimple-warning/152744)

<div class="topic-metadata">

**Author:** [@ginty](https://www.ruby-forum.com/u/ginty)\
**Replies:** 0\
**Last updated:** [November 7, 2008, 1:52am UTC](https://www.ruby-forum.com/t/xmlsimple-warning/152744 "2008-11-07T01:52:48Z")

</div>

Hi All, Anyone know how to fix the below warnings which I get when I run most if not all of the ./script executables, some googling reveals the odd mention of it but I haven’t seen a good fix for it. It’s not causing…

---

## [One model with lots of tables in Rails](https://www.ruby-forum.com/t/one-model-with-lots-of-tables-in-rails/152704)

<div class="topic-metadata">

**Author:** [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Replies:** 2\
**Last updated:** [November 7, 2008, 1:00am UTC](https://www.ruby-forum.com/t/one-model-with-lots-of-tables-in-rails/152704 "2008-11-07T01:00:52Z")

</div>

On a forum I discovered this. That was intended for to use on just one model: module SharedStuff self.abstract\_class = true self.table\_name = ‘footable’ self.table\_name = ‘bartable’ end class Foo \< ActiveRecord::B…

---

## [Securing Models From a Controller versus ActsAsRowSecured](https://www.ruby-forum.com/t/securing-models-from-a-controller-versus-actsasrowsecured/152293)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 8\
**Last updated:** [November 7, 2008, 12:54am UTC](https://www.ruby-forum.com/t/securing-models-from-a-controller-versus-actsasrowsecured/152293 "2008-11-07T00:54:28Z")

</div>

So, I’m wondering, what do all of you think of ActsAsRowSecured? I’m little wary because it appears to use a singleton UserContext and jigger that back into a SecurityContext class under ActiveRecord. i.e. class Use…

---

## [Beyond frusterating date\_select issue](https://www.ruby-forum.com/t/beyond-frusterating-date-select-issue/152740)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 5\
**Last updated:** [November 7, 2008, 12:21am UTC](https://www.ruby-forum.com/t/beyond-frusterating-date-select-issue/152740 "2008-11-07T00:21:35Z")

</div>

I have this code: \<%= date\_select(“post”, “from”) %\> simple, easy, works! The problem comes when I need to build a query around these dates. In my log I see that the params are being passed like this: “post”=\>{“from(…

---

## [Install in Ruby LinkParser in window](https://www.ruby-forum.com/t/install-in-ruby-linkparser-in-window/152738)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 6, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/install-in-ruby-linkparser-in-window/152738 "2008-11-06T23:37:37Z")

</div>

Can everyone help to show me how to install Ruby LinkParser in window? Right now i’m using InstantRails and I couldn’t figure way to install LinkParser. Thank you for your attention, and i’m look forward to hearing fr…

---

## [Active Merchant Example](https://www.ruby-forum.com/t/active-merchant-example/152663)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 5\
**Last updated:** [November 6, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/active-merchant-example/152663 "2008-11-06T22:14:23Z")

</div>

Hi, I’ve searched the web and found some old examples of Active Merchant but was wondering if anyone had, or could point me to, a definitive guide showing a simple checkout where the logic is in the model rather than…

---

## [Select in form - best practice?](https://www.ruby-forum.com/t/select-in-form-best-practice/152630)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 4\
**Last updated:** [November 6, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/select-in-form-best-practice/152630 "2008-11-06T18:14:11Z")

</div>

Q. What resource do readers recommend for referencing regarding best practices for form construction in Rails? I have the following situation: location\_type of Locations may have one of five (5) possible codes. Pres…

---

## [Difficulty in understanding the valgrind output for ror app](https://www.ruby-forum.com/t/difficulty-in-understanding-the-valgrind-output-for-ror-app/152563)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 4\
**Last updated:** [November 6, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/difficulty-in-understanding-the-valgrind-output-for-ror-app/152563 "2008-11-06T17:55:22Z")

</div>

Hi, I am facing the difficulty in understanding the output of valgrind memory leaks. How to interpret it. pls help me out.

---

## [Text wrap](https://www.ruby-forum.com/t/text-wrap/152665)

<div class="topic-metadata">

**Author:** [@Ishara\_G](https://www.ruby-forum.com/u/Ishara_G)\
**Replies:** 1\
**Last updated:** [November 6, 2008, 5:44pm UTC](https://www.ruby-forum.com/t/text-wrap/152665 "2008-11-06T17:44:47Z")

</div>

i hav a this code \<%h f.body%\> which shows some texts which are retrieved from a table…i want to wrap the texts,i cant add div tag to between that code. please can anyone help me to solve this

---

## [Changing drop\_receiving\_element behavior to make a GET request instead of POST](https://www.ruby-forum.com/t/changing-drop-receiving-element-behavior-to-make-a-get-request-instead-of-post/152358)

<div class="topic-metadata">

**Author:** [@evan](https://www.ruby-forum.com/u/evan)\
**Replies:** 1\
**Last updated:** [November 6, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/changing-drop-receiving-element-behavior-to-make-a-get-request-instead-of-post/152358 "2008-11-06T17:22:23Z")

</div>

Is it possible to specify which HTTP method to use in the drop\_receiving\_element helper? I’m trying to follow REST best practices in my app. On one page I have the user drop an icon into an area which calls the “new” …

---

## [SQL queries in Rails](https://www.ruby-forum.com/t/sql-queries-in-rails/152438)

<div class="topic-metadata">

**Author:** [@The\_N](https://www.ruby-forum.com/u/The_N)\
**Replies:** 17\
**Last updated:** [November 6, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/sql-queries-in-rails/152438 "2008-11-06T16:40:05Z")

</div>

Hi… I want to know the equivalent instructions to insert, update, search and delete a registry. I know Rails can do it easily Thanks to ActiveRecord, but here’s the catch: I’m using PostgreSQL. As I’m using SQL to do…

---

## [Problem with nested route in namespace (Rails 2.1.1)](https://www.ruby-forum.com/t/problem-with-nested-route-in-namespace-rails-2-1-1/152698)

<div class="topic-metadata">

**Author:** [@Danilo](https://www.ruby-forum.com/u/Danilo)\
**Replies:** 0\
**Last updated:** [November 6, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/problem-with-nested-route-in-namespace-rails-2-1-1/152698 "2008-11-06T15:46:04Z")

</div>

Hi, I’m new to rails and I’ don’t know if this is a bug or my problem. I have this situation: Namespace Admin Class Admin::User |-\>Has Many -\> Class Admin::Trip In Trip template form\_for looks for admin\_trip\_path i…

---

## [Ruby gettext broke with restful authentication(using aasm)](https://www.ruby-forum.com/t/ruby-gettext-broke-with-restful-authentication-using-aasm/152697)

<div class="topic-metadata">

**Author:** [@leondu](https://www.ruby-forum.com/u/leondu)\
**Replies:** 0\
**Last updated:** [November 6, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/ruby-gettext-broke-with-restful-authentication-using-aasm/152697 "2008-11-06T15:46:03Z")

</div>

x:~/r/cleverbill$ rake gettext:updatepo --trace \*\* Invoke gettext:updatepo (first\_time) \*\* Execute gettext:updatepo Ignored ‘app/models/user.rb’. Solve dependencies first. /my\_app/vendor/plugins/aasm/lib/persistence…

---

## [HABTM \<\< Behavior](https://www.ruby-forum.com/t/habtm-behavior/152647)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [November 6, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/habtm-behavior/152647 "2008-11-06T15:45:26Z")

</div>

Lets say you have a relationship like post has and belongs to many categories. If I were to do something like the following: category \<\< post category \<\< post category \<\< post I’ve basically assigned the post to th…

---

## [Time zone and UTC offset](https://www.ruby-forum.com/t/time-zone-and-utc-offset/152510)

<div class="topic-metadata">

**Author:** [@mrdamien](https://www.ruby-forum.com/u/mrdamien)\
**Replies:** 4\
**Last updated:** [November 6, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/time-zone-and-utc-offset/152510 "2008-11-06T15:32:56Z")

</div>

Hi all, I am trying to change a date from a time zone to UTC. First I set the time zone and then get its offset from UTC. Then I am trying to change the time zone of my date by substracting the offset but it failed. …

---

## [Removing row from a table using link\_to\_remote](https://www.ruby-forum.com/t/removing-row-from-a-table-using-link-to-remote/152639)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 3\
**Last updated:** [November 6, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/removing-row-from-a-table-using-link-to-remote/152639 "2008-11-06T15:22:34Z")

</div>

i have a table of values that are presented in a regular html table. what i would like to do is: when DELETE is selected in a row, use link\_to\_remote to do some processing on the selected record… once this data is is…

---

## [ID size](https://www.ruby-forum.com/t/id-size/152694)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 0\
**Last updated:** [November 6, 2008, 3:05pm UTC](https://www.ruby-forum.com/t/id-size/152694 "2008-11-06T15:05:23Z")

</div>

Hi, does anyone know how big is the default Id, when we are creating a new table? I mean its size. int(11) for example. Thx guys. Petr

---

## [Job Post: RoR shop in Norcross area seeks talented SysAdmins](https://www.ruby-forum.com/t/job-post-ror-shop-in-norcross-area-seeks-talented-sysadmins/152693)

<div class="topic-metadata">

**Author:** [@blasterpal](https://www.ruby-forum.com/u/blasterpal)\
**Replies:** 0\
**Last updated:** [November 6, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/job-post-ror-shop-in-norcross-area-seeks-talented-sysadmins/152693 "2008-11-06T14:56:39Z")

</div>

RECRUITERS/FIRMS DO NOT CONTACT ME. I AM NOT THE HIRING MANAGER NOR WILL I BOTHER HER. I WILL IGNORE ALL 3RD PARTY EMAILS. If any of you have colleagues or happen to be RoR focused sysadmin/ production related type, s…

---

## [Weird characters](https://www.ruby-forum.com/t/weird-characters/152634)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 3\
**Last updated:** [November 6, 2008, 2:47pm UTC](https://www.ruby-forum.com/t/weird-characters/152634 "2008-11-06T14:47:50Z")

</div>

Hi, I have weird characters in my view, like: Armeniï¿½ Jordaniï¿½ Israï¿½l ect. How can i solve this problem? Grtz…remco

---

## [Rails 2.0.2 and in\_place\_edit? and Rich](https://www.ruby-forum.com/t/rails-2-0-2-and-in-place-edit-and-rich/125786)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 2\
**Last updated:** [November 6, 2008, 2:28pm UTC](https://www.ruby-forum.com/t/rails-2-0-2-and-in-place-edit-and-rich/125786 "2008-11-06T14:28:10Z")

</div>

Hello, Can ANYONE please give me some help. I have TinyMCE installed and working. However, I want to use it in an in\_place\_editor type of fashion. I have tried many, many, many different things and simply cannot g…

---

## [Custom SQL queries](https://www.ruby-forum.com/t/custom-sql-queries/152681)

<div class="topic-metadata">

**Author:** [@lackyg](https://www.ruby-forum.com/u/lackyg)\
**Replies:** 2\
**Last updated:** [November 6, 2008, 12:15pm UTC](https://www.ruby-forum.com/t/custom-sql-queries/152681 "2008-11-06T12:15:39Z")

</div>

Hi! I need the results of a custom SQL query to create a list in a view. Thats the query: @classes = ActiveRecord::Base.connection.execute “SELECT DISTINCT CLASS FROM SymbolsMatch\_MASTER” And thats the part of the v…

---

## [Anybody using FiveRuns Manage?](https://www.ruby-forum.com/t/anybody-using-fiveruns-manage/152686)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 0\
**Last updated:** [November 6, 2008, 12:14pm UTC](https://www.ruby-forum.com/t/anybody-using-fiveruns-manage/152686 "2008-11-06T12:14:03Z")

</div>

I have installed the five runs. Iam not sure how to use the fiveruns manage. There is no video or demo for this tool and there is less documentation. If anyone use the fiveruns manage, can you show the demo? (webex or …

---

## [Really confusing issue involving ActiveRecord and a NoMethodError](https://www.ruby-forum.com/t/really-confusing-issue-involving-activerecord-and-a-nomethoderror/152399)

<div class="topic-metadata">

**Author:** [@cdubd](https://www.ruby-forum.com/u/cdubd)\
**Replies:** 4\
**Last updated:** [November 6, 2008, 12:08pm UTC](https://www.ruby-forum.com/t/really-confusing-issue-involving-activerecord-and-a-nomethoderror/152399 "2008-11-06T12:08:07Z")

</div>

Hey Everyone, I have been working on a project where I process an XML file that contains data about a music playlist, and I use 3 models: Playlist, Artist, and Song. Each model is mapped to a table in my database, and …

---

## [How can I run a line of rails code within the "test.rb" environment file?](https://www.ruby-forum.com/t/how-can-i-run-a-line-of-rails-code-within-the-test-rb-environment-file/152672)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [November 6, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/how-can-i-run-a-line-of-rails-code-within-the-test-rb-environment-file/152672 "2008-11-06T12:05:10Z")

</div>

Hi, How to I get a rails line of code that normally works within a rails mode, but but have it run within “test.rb” environment file. For example to get the following to run: RecurringType.create(:name =\> “TYPE\_BASI…

---

## [Force ERB templates to prevent making changes to models?](https://www.ruby-forum.com/t/force-erb-templates-to-prevent-making-changes-to-models/152652)

<div class="topic-metadata">

**Author:** [@jesseproudman](https://www.ruby-forum.com/u/jesseproudman)\
**Replies:** 1\
**Last updated:** [November 6, 2008, 11:25am UTC](https://www.ruby-forum.com/t/force-erb-templates-to-prevent-making-changes-to-models/152652 "2008-11-06T11:25:16Z")

</div>

I want to build a system where I can let users write templates that allow read access to Rails objects within and then send these templates out to customers via email. The problem I’m having is that through my tests,…

---

## [Global Translator Plugin?](https://www.ruby-forum.com/t/global-translator-plugin/152655)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 1\
**Last updated:** [November 6, 2008, 11:21am UTC](https://www.ruby-forum.com/t/global-translator-plugin/152655 "2008-11-06T11:21:11Z")

</div>

Hello, I am looking for a simple way to automate translating my site into different languages. I believe that the most appropriate way for Ruby on Rails is to use Globalize. I have just started looking through the d…

---

## [Contacts Importer Address grabber Invite friends import Gmail, Yahoo, Hotmail etc](https://www.ruby-forum.com/t/contacts-importer-address-grabber-invite-friends-import-gmail-yahoo-hotmail-etc/152677)

<div class="topic-metadata">

**Author:** [@smartee](https://www.ruby-forum.com/u/smartee)\
**Replies:** 0\
**Last updated:** [November 6, 2008, 10:41am UTC](https://www.ruby-forum.com/t/contacts-importer-address-grabber-invite-friends-import-gmail-yahoo-hotmail-etc/152677 "2008-11-06T10:41:16Z")

</div>

hi, Please help me!!! am using ruby-1.8.6 gem blackbook-1.0.4 please give me detail installation steps… please… Thankyou.

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

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