# Rails

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

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

---

## [Url\_for or resource\_url additional params?](https://www.ruby-forum.com/t/url-for-or-resource-url-additional-params/111008)

<div class="topic-metadata">

**Author:** [@joenova](https://www.ruby-forum.com/u/joenova)\
**Replies:** 1\
**Last updated:** [August 2, 2007, 12:53am UTC](https://www.ruby-forum.com/t/url-for-or-resource-url-additional-params/111008 "2007-08-02T00:53:36Z")

</div>

if i want a link to book\_url(@book), but i want to pass an additional param, how to i do that? i want it to result in something like http://localhost/books/1?foo=bar this works, but seems hackish: url\_for(:controller…

---

## [Trouble with shortcut icon](https://www.ruby-forum.com/t/trouble-with-shortcut-icon/111023)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 0\
**Last updated:** [August 2, 2007, 12:10am UTC](https://www.ruby-forum.com/t/trouble-with-shortcut-icon/111023 "2007-08-02T00:10:33Z")

</div>

I tried the following link to create a shortcut icon for my browser tab I tried putting icon.gif in the same directory as the .rhtml and also in the public/images directory and neither works. I also tried removing …

---

## [Case of If?](https://www.ruby-forum.com/t/case-of-if/110122)

<div class="topic-metadata">

**Author:** [@Armitage](https://www.ruby-forum.com/u/Armitage)\
**Replies:** 5\
**Last updated:** [August 1, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/case-of-if/110122 "2007-08-01T23:33:30Z")

</div>

Hi All Just pondering how you would write a statement to convert all the output of a database. That is if you had yes/no fields stored as 1’s and 0’s could you write a simple statement to iterate though all of them a…

---

## [Text\_field and overridden methods](https://www.ruby-forum.com/t/text-field-and-overridden-methods/110749)

<div class="topic-metadata">

**Author:** [@Mark\_Veerman](https://www.ruby-forum.com/u/Mark_Veerman)\
**Replies:** 2\
**Last updated:** [August 1, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/text-field-and-overridden-methods/110749 "2007-08-01T22:15:24Z")

</div>

Hello, I’ve got a model with an attribute that I’ve overridden – or at least defined an implementation for. It seems that when I call form.text\_field :foo, it’s grabbing foo out of the attributes hash in the object r…

---

## [How to debug log\_level issue?](https://www.ruby-forum.com/t/how-to-debug-log-level-issue/110905)

<div class="topic-metadata">

**Author:** [@Vish\_K](https://www.ruby-forum.com/u/Vish_K)\
**Replies:** 5\
**Last updated:** [August 1, 2007, 9:45pm UTC](https://www.ruby-forum.com/t/how-to-debug-log-level-issue/110905 "2007-08-01T21:45:21Z")

</div>

I’m running Rails 1.2.3 with mongrel and Ruby 1.8.6 on Windows. I change the log\_level in environment.rb from :debug to :warn (or :error) but still see gobs of output in the development.log file. The log\_level setting…

---

## [Model Each Do Looping Problem](https://www.ruby-forum.com/t/model-each-do-looping-problem/110978)

<div class="topic-metadata">

**Author:** [@bradigan](https://www.ruby-forum.com/u/bradigan)\
**Replies:** 1\
**Last updated:** [August 1, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/model-each-do-looping-problem/110978 "2007-08-01T21:30:17Z")

</div>

I have this strange loop going on. Here’s my Data for instance in a Table called GROUPS account\_id = 1 group\_name = Acme account\_id = 1 group\_name = Disney account\_id = 1 group\_name = Pixar /group/list.rhtml \<%=…

---

## [Running Rails/Ruby from a compressed archive?](https://www.ruby-forum.com/t/running-rails-ruby-from-a-compressed-archive/111003)

<div class="topic-metadata">

**Author:** [@JGoewert](https://www.ruby-forum.com/u/JGoewert)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 9:07pm UTC](https://www.ruby-forum.com/t/running-rails-ruby-from-a-compressed-archive/111003 "2007-08-01T21:07:14Z")

</div>

Is there any way to run Ruby apps using an archive of the ruby files being run? Sort of like a Jar in Java? For my server, I don’t mind all the uncompressed files, but when I am doing remote development, the thousands…

---

## [Anyone have experience with the USDA SR19 database?](https://www.ruby-forum.com/t/anyone-have-experience-with-the-usda-sr19-database/111004)

<div class="topic-metadata">

**Author:** [@rob](https://www.ruby-forum.com/u/rob)\
**Replies:** 1\
**Last updated:** [August 1, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/anyone-have-experience-with-the-usda-sr19-database/111004 "2007-08-01T21:04:14Z")

</div>

I’m building a fitness site that uses the SR19 database for foods from the USDA website, but I’m having some trouble figuring out how to parse and import it properly to use in a ruby/rails fashion. Anyone have experie…

---

## [\[ANN\] Sphincter 1.0.0 Released](https://www.ruby-forum.com/t/ann-sphincter-1-0-0-released/110792)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 5\
**Last updated:** [August 1, 2007, 8:51pm UTC](https://www.ruby-forum.com/t/ann-sphincter-1-0-0-released/110792 "2007-08-01T20:51:13Z")

</div>

Sphincter version 1.0.0 has been released! http://seattlerb.org/Sphincter Sphincter uses Dmytro Shteflyuk’s sphinx Ruby API and automatic configuration to make totally rad ActiveRecord searching. Well, you still hav…

---

## [Form and popup in RoR](https://www.ruby-forum.com/t/form-and-popup-in-ror/110977)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 3\
**Last updated:** [August 1, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/form-and-popup-in-ror/110977 "2007-08-01T20:21:07Z")

</div>

I have this form helper that I am using that updates a div within the form upon completion. The action of the form runs a method that check the validaty of a membership number. If it is a good number the number is add…

---

## [Overridden validator not being used?](https://www.ruby-forum.com/t/overridden-validator-not-being-used/110790)

<div class="topic-metadata">

**Author:** [@jemminger](https://www.ruby-forum.com/u/jemminger)\
**Replies:** 10\
**Last updated:** [August 1, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/overridden-validator-not-being-used/110790 "2007-08-01T20:15:07Z")

</div>

hello all, i’m trying to override the validator validates\_exclusion\_of to make it case-insensitive: module ActiveRecord::Validations::ClassMethods def validates\_exclusion\_of(\*attr\_names) raise ‘hello world’ configu…

---

## [Renaming associations in polymorphism and versioning](https://www.ruby-forum.com/t/renaming-associations-in-polymorphism-and-versioning/111001)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/renaming-associations-in-polymorphism-and-versioning/111001 "2007-08-01T20:11:06Z")

</div>

Sorry it’s such a long one, but hopefully you’ll find it an interesting problem. I want to keep track of the versions of several of my tables – at the moment there are 7, but I may add more as the project develops – s…

---

## [Invoking a webservice](https://www.ruby-forum.com/t/invoking-a-webservice/111000)

<div class="topic-metadata">

**Author:** [@capi](https://www.ruby-forum.com/u/capi)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 8:08pm UTC](https://www.ruby-forum.com/t/invoking-a-webservice/111000 "2007-08-01T20:08:51Z")

</div>

Im trying to connect to a webservice developed in java, but im getting this error: warning: peer certificate won’t be verified in this SSL session ignored element: {http://schemas.microsoft.com/soap-toolkit/wsdl-exte…

---

## [How to use Memory Profiler](https://www.ruby-forum.com/t/how-to-use-memory-profiler/110994)

<div class="topic-metadata">

**Author:** [@Mike\_Rumble](https://www.ruby-forum.com/u/Mike_Rumble)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 7:52pm UTC](https://www.ruby-forum.com/t/how-to-use-memory-profiler/110994 "2007-08-01T19:52:03Z")

</div>

Hello I’m looking to do some profiling of my app using the MemoryProfiler class at which I know is a popular choice for this kind of thing. I’m having a bit of a blank moment in getting this working. The blog post …

---

## [Super() inside quote() of database adapters](https://www.ruby-forum.com/t/super-inside-quote-of-database-adapters/110989)

<div class="topic-metadata">

**Author:** [@Kiriakos\_Georgiou](https://www.ruby-forum.com/u/Kiriakos_Georgiou)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/super-inside-quote-of-database-adapters/110989 "2007-08-01T19:04:57Z")

</div>

4 days into RoR and I am fixing db adapter bugs, didn’t expect that :wink: In working to fix a bug in the quote() method of the sybase\_adapter.rb which causes it to incorrectly drop quotes of a value that goes into a…

---

## [Link\_to](https://www.ruby-forum.com/t/link-to/110887)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [August 1, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/link-to/110887 "2007-08-01T18:47:48Z")

</div>

Im trying to use the link\_to helper to open a blank window which is basically just a framed window to display user info without all the extra distractions that come along with opening this window. Here is what I got: …

---

## [Mixin problems](https://www.ruby-forum.com/t/mixin-problems/110902)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 3\
**Last updated:** [August 1, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/mixin-problems/110902 "2007-08-01T17:59:48Z")

</div>

I’m trying to add a mixin i wrote (ModelExtensions module in lib/model\_extensions.rb) to ActiveRecord::Base so that i can use the methods in it in all my classes. (well actually there’s only a single method in there …

---

## [Model.find with two associations](https://www.ruby-forum.com/t/model-find-with-two-associations/110973)

<div class="topic-metadata">

**Author:** [@Ryan\_Wallace](https://www.ruby-forum.com/u/Ryan_Wallace)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/model-find-with-two-associations/110973 "2007-08-01T17:01:42Z")

</div>

Hi, I would like to know the rails way to do the following: If I have an Item model which has\_many :tags, :through =\> item\_tags how can I find all items which are tagged with both a “ruby” and “rails” tag. Also I wou…

---

## [Single Table Inheritance using a boolean column](https://www.ruby-forum.com/t/single-table-inheritance-using-a-boolean-column/110972)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 4:58pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-using-a-boolean-column/110972 "2007-08-01T16:58:42Z")

</div>

Hi everybody, Is it possible to use a boolean column to determine between classes instead of a varchar one? I need it because boolean is faster and takes up less space, and also makes the SQL schema look better. Eri…

---

## [Has\_one question](https://www.ruby-forum.com/t/has-one-question/110969)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 1\
**Last updated:** [August 1, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/has-one-question/110969 "2007-08-01T16:50:41Z")

</div>

i have my orders and addresses in separate tables. in the Order model file i have has\_one :address i have an address form that when submitted the first time, will create an address for the order, but if it needs to be…

---

## [Rails engine migration not loading Rails Engine?](https://www.ruby-forum.com/t/rails-engine-migration-not-loading-rails-engine/110970)

<div class="topic-metadata">

**Author:** [@Ron\_Evans](https://www.ruby-forum.com/u/Ron_Evans)\
**Replies:** 1\
**Last updated:** [August 1, 2007, 4:28pm UTC](https://www.ruby-forum.com/t/rails-engine-migration-not-loading-rails-engine/110970 "2007-08-01T16:28:36Z")

</div>

I am trying to run a Rails Engine migration, however, the rake task is acting like the Rails Engine plugin has not been loaded. Is there some include that is missing from the Rails Engine plugin install, or that I sho…

---

## [Newbie - Problem running unit test because of text column](https://www.ruby-forum.com/t/newbie-problem-running-unit-test-because-of-text-column/110968)

<div class="topic-metadata">

**Author:** [@vincent\_fazio](https://www.ruby-forum.com/u/vincent_fazio)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/newbie-problem-running-unit-test-because-of-text-column/110968 "2007-08-01T15:51:32Z")

</div>

I’m new to Ruby and Rails and I’m having a problem. I’ve creates a ruby schema file defining a table containing a text column. I am able to migrate this table to a MySQL database with no problem. Here is the table d…

---

## [Rare variable name corruption](https://www.ruby-forum.com/t/rare-variable-name-corruption/110966)

<div class="topic-metadata">

**Author:** [@giaco](https://www.ruby-forum.com/u/giaco)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 3:44pm UTC](https://www.ruby-forum.com/t/rare-variable-name-corruption/110966 "2007-08-01T15:44:31Z")

</div>

I’m having a problem with a rails app occasionally getting a variable name corrupted. For example, a form field person\[last\_name\] may be sent to the browser as person\[last\_9ame\]. Or a similarly corrupted field name ma…

---

## [Problem with Acts as Authenticated not able to logout](https://www.ruby-forum.com/t/problem-with-acts-as-authenticated-not-able-to-logout/109106)

<div class="topic-metadata">

**Author:** [@Mister\_Yu](https://www.ruby-forum.com/u/Mister_Yu)\
**Replies:** 3\
**Last updated:** [August 1, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-authenticated-not-able-to-logout/109106 "2007-08-01T13:03:05Z")

</div>

Hi all, i installed Act\_as\_Authenticated plugin yesterday, everything seems fine: trying out the index, divert me to the login screen, i register and login. but when i try http://localhost:3000/account/logout, it did…

---

## [Can't we do globalization by using localhost](https://www.ruby-forum.com/t/cant-we-do-globalization-by-using-localhost/110951)

<div class="topic-metadata">

**Author:** [@vidyagayathri](https://www.ruby-forum.com/u/vidyagayathri)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 12:06pm UTC](https://www.ruby-forum.com/t/cant-we-do-globalization-by-using-localhost/110951 "2007-08-01T12:06:03Z")

</div>

hi, I am new to ror, i want to implement the globalize 1.2. i am trying to install for 2 days, but now working. i am inplementing in localhost, by using localhost can’t we do the globalization. please let me know , w…

---

## [Help with event.observe and nifty corners](https://www.ruby-forum.com/t/help-with-event-observe-and-nifty-corners/110950)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 12:04pm UTC](https://www.ruby-forum.com/t/help-with-event-observe-and-nifty-corners/110950 "2007-08-01T12:04:40Z")

</div>

Hi, I’ve been trying to implement nifty corners but have noticed some delays when using window.onload so instead I’m using Event.observe(document, ‘DOMContentLoaded’… but this only works for mozilla browsers, anybody …

---

## [Database error when running Test](https://www.ruby-forum.com/t/database-error-when-running-test/110932)

<div class="topic-metadata">

**Author:** [@desertfox](https://www.ruby-forum.com/u/desertfox)\
**Replies:** 1\
**Last updated:** [August 1, 2007, 8:22am UTC](https://www.ruby-forum.com/t/database-error-when-running-test/110932 "2007-08-01T08:22:30Z")

</div>

Hello, I thought my database connection was working after I was able to migrate my schema to the database, but after I setup a simple test and ran rake I get the following error: /usr/local/bin/ruby -Ilib:test “/usr…

---

## [\[ANN\] ar\_mailer 1.3.1 Released](https://www.ruby-forum.com/t/ann-ar-mailer-1-3-1-released/110937)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 6:55am UTC](https://www.ruby-forum.com/t/ann-ar-mailer-1-3-1-released/110937 "2007-08-01T06:55:23Z")

</div>

ar\_mailer version 1.3.1 has been released! http://seattlerb.org/ar\_mailer Even delivering email to the local machine may take too long when you have to send hundreds of messages. ar\_mailer allows you to store messa…

---

## [Reverting to default template](https://www.ruby-forum.com/t/reverting-to-default-template/110933)

<div class="topic-metadata">

**Author:** [@pete](https://www.ruby-forum.com/u/pete)\
**Replies:** 0\
**Last updated:** [August 1, 2007, 5:45am UTC](https://www.ruby-forum.com/t/reverting-to-default-template/110933 "2007-08-01T05:45:18Z")

</div>

When I override a standard method and put it in my controller, Rails also wants a corresponding template to go with it. The default template would be fine and I would rather use it than hand craft my own. How to I t…

---

## [Whats the best approach for small dual language site?](https://www.ruby-forum.com/t/whats-the-best-approach-for-small-dual-language-site/110918)

<div class="topic-metadata">

**Author:** [@itchy](https://www.ruby-forum.com/u/itchy)\
**Replies:** 1\
**Last updated:** [August 1, 2007, 5:16am UTC](https://www.ruby-forum.com/t/whats-the-best-approach-for-small-dual-language-site/110918 "2007-08-01T05:16:17Z")

</div>

Hello all, I’m doing a small website for holiday homes in Brazil. I would like to duplicate the site in Portuguese as well as English. At the moment on the admin side of things i have duplicate fields for all the text…

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

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