# Rails

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

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

---

## [Ferret query](https://www.ruby-forum.com/t/ferret-query/196632)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 10:00am UTC](https://www.ruby-forum.com/t/ferret-query/196632 "2008-04-02T10:00:13Z")

</div>

Hi there, I’ve been spending hours trying to figure out how to do this ferret query correctly, but it just won’t work… The final ferret query should simply look like this: country: “United Kingdom” (it needs the “” …

---

## [How can I import an Excel file with a migration?](https://www.ruby-forum.com/t/how-can-i-import-an-excel-file-with-a-migration/133168)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 14\
**Last updated:** [April 2, 2008, 9:33am UTC](https://www.ruby-forum.com/t/how-can-i-import-an-excel-file-with-a-migration/133168 "2008-04-02T09:33:33Z")

</div>

I have an Excel file and I want to do a migration with it. How can I do it?

---

## [Session help](https://www.ruby-forum.com/t/session-help/133646)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 9:21am UTC](https://www.ruby-forum.com/t/session-help/133646 "2008-04-02T09:21:45Z")

</div>

Hi I have partial form and i have attached its html generated version…When I click on each select what happens is another search window replaces this partial which is completely inside a div.Then again the search re…

---

## [Saving an ActiveRecord without trigging the callbacks](https://www.ruby-forum.com/t/saving-an-activerecord-without-trigging-the-callbacks/131625)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 6\
**Last updated:** [April 2, 2008, 8:58am UTC](https://www.ruby-forum.com/t/saving-an-activerecord-without-trigging-the-callbacks/131625 "2008-04-02T08:58:40Z")

</div>

Hello, How can I save an ActiveRecord without trigger before\_save, after\_save, etc? Thanks for the help.

---

## [Logs - Rendering + DB don't add up to Completed?](https://www.ruby-forum.com/t/logs-rendering-db-dont-add-up-to-completed/133645)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 8:57am UTC](https://www.ruby-forum.com/t/logs-rendering-db-dont-add-up-to-completed/133645 "2008-04-02T08:57:24Z")

</div>

Completed in 1.48324 (0 reqs/sec) | Rendering: 0.08862 (5%) | DB: 0.00000 (0%) In most production logs I have seen rendering plus db comes close to adding up to 100%; maybe 60% to 80%. In this new app, I am getting t…

---

## [Restful authentication =\> login, nothing happens?](https://www.ruby-forum.com/t/restful-authentication-login-nothing-happens/133554)

<div class="topic-metadata">

**Author:** [@san1981](https://www.ruby-forum.com/u/san1981)\
**Replies:** 2\
**Last updated:** [April 2, 2008, 8:21am UTC](https://www.ruby-forum.com/t/restful-authentication-login-nothing-happens/133554 "2008-04-02T08:21:26Z")

</div>

Hello, Iâ€™m a newbie in the rails environment, Iâ€™m now busy with the plugin restful\_authentication. Iâ€™ve signed me up without any problems but when I try to log me on the page/login via the form, nothing happens…

---

## [Recalcitrant CSS background-image](https://www.ruby-forum.com/t/recalcitrant-css-background-image/133535)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 10\
**Last updated:** [April 2, 2008, 7:28am UTC](https://www.ruby-forum.com/t/recalcitrant-css-background-image/133535 "2008-04-02T07:28:56Z")

</div>

My app has a stylesheet that includes this definition: div.loadimage { width:580px; height:310px; background-image: url("/images/load.gif") no-repeat center 0% 0%; } The purpose is to use with some nice javascript…

---

## [How to call secure web service using ruby?](https://www.ruby-forum.com/t/how-to-call-secure-web-service-using-ruby/133631)

<div class="topic-metadata">

**Author:** [@kran](https://www.ruby-forum.com/u/kran)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 5:13am UTC](https://www.ruby-forum.com/t/how-to-call-secure-web-service-using-ruby/133631 "2008-04-02T05:13:47Z")

</div>

I want to know how to build SECURE webservice in rails and how to call the secure web service using ruby ? Thanks!

---

## [Mysql::Error: You have an error in your SQL syntax;](https://www.ruby-forum.com/t/mysql-you-have-an-error-in-your-sql-syntax/133389)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 11\
**Last updated:** [April 2, 2008, 4:59am UTC](https://www.ruby-forum.com/t/mysql-you-have-an-error-in-your-sql-syntax/133389 "2008-04-02T04:59:50Z")

</div>

help! rake db:migrate (in /var/www/jabber) rake aborted! Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version forthe right syntax to use near ‘-items’ a…

---

## [How do I rake in a redefined db table?](https://www.ruby-forum.com/t/how-do-i-rake-in-a-redefined-db-table/133384)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 10\
**Last updated:** [April 2, 2008, 3:53am UTC](https://www.ruby-forum.com/t/how-do-i-rake-in-a-redefined-db-table/133384 "2008-04-02T03:53:54Z")

</div>

I’ve created a database and my tables. Now in one of my tables I need to edit a field to have a default value and also add another field for parent relationships and wondering how to do that with rake, or if I should …

---

## [Using migration methods in applications](https://www.ruby-forum.com/t/using-migration-methods-in-applications/133552)

<div class="topic-metadata">

**Author:** [@andy](https://www.ruby-forum.com/u/andy)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 3:48am UTC](https://www.ruby-forum.com/t/using-migration-methods-in-applications/133552 "2008-04-02T03:48:02Z")

</div>

Is it possible to use methods for migration(create\_table, add\_column, etc) in applications. I want to make a plugin which uses its own model. In such cases, most plugins seem to use script/generate to generate migrati…

---

## [Help with DRY captcha](https://www.ruby-forum.com/t/help-with-dry-captcha/133621)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 3:11am UTC](https://www.ruby-forum.com/t/help-with-dry-captcha/133621 "2008-04-02T03:11:01Z")

</div>

Hi everyone- I’m wondering if someone can give me some design help in implementing a DRY captcha solution. Given that I have a captcha controller which can generate a unique hash, and a corresponding correct answer, …

---

## [\[ANN\] Lone Star Rubyconf 2008 - Call for Papers](https://www.ruby-forum.com/t/ann-lone-star-rubyconf-2008-call-for-papers/133620)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 2:36am UTC](https://www.ruby-forum.com/t/ann-lone-star-rubyconf-2008-call-for-papers/133620 "2008-04-02T02:36:59Z")

</div>

Greetings from Austin, Texas! The second annual Lone Star Rubyconf is revving up and scheduled for Sep 4-6 in Austin, TX. The what, when where is: Lone Star Rubyconf 2008 September 4-6, 2008 Norris Conference Cente…

---

## [Foreign\_key problems](https://www.ruby-forum.com/t/foreign-key-problems/133619)

<div class="topic-metadata">

**Author:** [@rashantha](https://www.ruby-forum.com/u/rashantha)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 2:24am UTC](https://www.ruby-forum.com/t/foreign-key-problems/133619 "2008-04-02T02:24:41Z")

</div>

model user id (automatic primary) fname lname user\_rrid (foreign key) - string “123456” model email id (automatic primary) e\_addresss user\_rrid (foreign key) - string “123456” e\_type i would like to find a user…

---

## [Another validation question](https://www.ruby-forum.com/t/another-validation-question/133569)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 2\
**Last updated:** [April 2, 2008, 2:01am UTC](https://www.ruby-forum.com/t/another-validation-question/133569 "2008-04-02T02:01:14Z")

</div>

Hi. Are there any validation methods which can prevent users from entering certain words in a field (eg swearing etc) Thanks

---

## [Pass local variables to another controller](https://www.ruby-forum.com/t/pass-local-variables-to-another-controller/133388)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 8\
**Last updated:** [April 2, 2008, 1:26am UTC](https://www.ruby-forum.com/t/pass-local-variables-to-another-controller/133388 "2008-04-02T01:26:35Z")

</div>

I’ve been beating by noob head against a wall, I’d appreciate any help that can be offered. I have a view listing items with a link to append a description to each item. I believe I have the associations in the Models…

---

## [Running ruby app with instant rails](https://www.ruby-forum.com/t/running-ruby-app-with-instant-rails/133589)

<div class="topic-metadata">

**Author:** [@spiz](https://www.ruby-forum.com/u/spiz)\
**Replies:** 1\
**Last updated:** [April 2, 2008, 1:02am UTC](https://www.ruby-forum.com/t/running-ruby-app-with-instant-rails/133589 "2008-04-02T01:02:58Z")

</div>

Hi, I am new to ruby and using instant rails to run a simple app I wrote. The application is not recognized as a ruby app. Even when I open it up with the rails console, it asks what program to open it with. How do …

---

## [Search problem](https://www.ruby-forum.com/t/search-problem/133614)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 0\
**Last updated:** [April 2, 2008, 12:58am UTC](https://www.ruby-forum.com/t/search-problem/133614 "2008-04-02T00:58:04Z")

</div>

Hi there, I’ve been spending hours trying to figure out how to do this ferret query correctly, but it just won’t work… The final ferret query should simply look like this: country: “United Kingdom” (it needs the “” …

---

## [Rjb::load attempt leads to mongrel abort, uninitialized constant error message](https://www.ruby-forum.com/t/rjb-load-attempt-leads-to-mongrel-abort-uninitialized-constant-error-message/133598)

<div class="topic-metadata">

**Author:** [@scootiepuff](https://www.ruby-forum.com/u/scootiepuff)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/rjb-load-attempt-leads-to-mongrel-abort-uninitialized-constant-error-message/133598 "2008-04-01T23:55:33Z")

</div>

i have been working on integrating the ruby java bridge RJB with a rails application. i seem to having trouble getting the rails app to detect the 3rd party .java class files that i have stored under several layers de…

---

## [Non numeric IDs in member resources](https://www.ruby-forum.com/t/non-numeric-ids-in-member-resources/133597)

<div class="topic-metadata">

**Author:** [@vega](https://www.ruby-forum.com/u/vega)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 11:53pm UTC](https://www.ruby-forum.com/t/non-numeric-ids-in-member-resources/133597 "2008-04-01T23:53:47Z")

</div>

I have a nested resource: map.resources :posts do |posts| posts.resources :comments end which generates urls like: posts/1/comments/2 Is there any way to use a “name” or other parameter instead of params\[:id\] for …

---

## [Using label tags in scaffold views...how to get the method name?](https://www.ruby-forum.com/t/using-label-tags-in-scaffold-views-how-to-get-the-method-name/133595)

<div class="topic-metadata">

**Author:** [@hangon](https://www.ruby-forum.com/u/hangon)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/using-label-tags-in-scaffold-views-how-to-get-the-method-name/133595 "2008-04-01T23:32:37Z")

</div>

hi, i want to use the tag in the scaffold views. for a text field where the id is id=“person\_last\_name” how can i get the person\_last\_name string programmaticaly to use it as a label parameter

---

## [Noob: UI for many-to-many with has\_many :through](https://www.ruby-forum.com/t/noob-ui-for-many-to-many-with-has-many-through/133224)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/noob-ui-for-many-to-many-with-has-many-through/133224 "2008-04-01T23:14:22Z")

</div>

Hey All, I’ve got People and Projects, both of which has\_many :through =\> PeopleProjects. PeopleProjects has just one attribute of its own right now: role (which takes values like ‘programmer’, ‘project manager’ etc…

---

## [How to prevent a value from ever changing](https://www.ruby-forum.com/t/how-to-prevent-a-value-from-ever-changing/133584)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 10:48pm UTC](https://www.ruby-forum.com/t/how-to-prevent-a-value-from-ever-changing/133584 "2008-04-01T22:48:21Z")

</div>

problem: within the DB there is a special “empty” string, this string must never be changed. how to best enforce this rule? Currently I have… override the string\_value setter, to control empty string from ever being…

---

## [Context sensitive edit/new action](https://www.ruby-forum.com/t/context-sensitive-edit-new-action/133559)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/context-sensitive-edit-new-action/133559 "2008-04-01T22:34:59Z")

</div>

I have the following associations: Entity has\_one :client\_role ClientRole belongs\_to :entity There should be two ways to add a client role, one where the entity exists and one where the entity does not. In the …

---

## [Activerecord-sqlserver-adapter Gems Not Found HELP!](https://www.ruby-forum.com/t/activerecord-sqlserver-adapter-gems-not-found-help/133586)

<div class="topic-metadata">

**Author:** [@Disco\_Posse](https://www.ruby-forum.com/u/Disco_Posse)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 10:32pm UTC](https://www.ruby-forum.com/t/activerecord-sqlserver-adapter-gems-not-found-help/133586 "2008-04-01T22:32:14Z")

</div>

Hi there, I’m running ROR 2.x on Win32 tried to run gem install activerecord-sqlserver-adapter --source http://gems.rubyonrails.org and get this: D:\>gem install activerecord-sqlserver-adapter -source http://gems.rub…

---

## [Find from a list with combo/select?](https://www.ruby-forum.com/t/find-from-a-list-with-combo-select/133585)

<div class="topic-metadata">

**Author:** [@adrianod](https://www.ruby-forum.com/u/adrianod)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 10:08pm UTC](https://www.ruby-forum.com/t/find-from-a-list-with-combo-select/133585 "2008-04-01T22:08:19Z")

</div>

Hi I would like to do a search in the list partial, but I want it to show only the element (id) of an option that I chose in a select box, is it possible ? Thanks!

---

## [Sortable list search](https://www.ruby-forum.com/t/sortable-list-search/133583)

<div class="topic-metadata">

**Author:** [@adrianod](https://www.ruby-forum.com/u/adrianod)\
**Replies:** 2\
**Last updated:** [April 1, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/sortable-list-search/133583 "2008-04-01T22:00:38Z")

</div>

Hi I think I have a simple problem, but I just can’t find the solution I just found a very simple sorting solution in a book something like that It works in the first page with localhost/faculdade?sort\_by=name but …

---

## ["Undefined method merge" when using sweeper](https://www.ruby-forum.com/t/undefined-method-merge-when-using-sweeper/133580)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 1\
**Last updated:** [April 1, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/undefined-method-merge-when-using-sweeper/133580 "2008-04-01T21:50:02Z")

</div>

Hi, I’m trying to use sweepers for the first time and got a problem - I get “undefined method \`merge’ for “/signature/ f2d7c7c66450b169.html”:String”. The “/signature/f2d7c7c66450b169.html” part of the error message …

---

## [Memory Consumption](https://www.ruby-forum.com/t/memory-consumption/133581)

<div class="topic-metadata">

**Author:** [@djohn](https://www.ruby-forum.com/u/djohn)\
**Replies:** 0\
**Last updated:** [April 1, 2008, 9:38pm UTC](https://www.ruby-forum.com/t/memory-consumption/133581 "2008-04-01T21:38:48Z")

</div>

Greetings, I’ve recently deployed an app that is having some serious memory consumption issue. Dropping mongrels quite frequently when the threshold is met. Initially, we chalked this problem up to RMagick (I know, …

---

## [\[ANN\] Ruby on Crack](https://www.ruby-forum.com/t/ann-ruby-on-crack/133548)

<div class="topic-metadata">

**Author:** [@visitor1981](https://www.ruby-forum.com/u/visitor1981)\
**Replies:** 5\
**Last updated:** [April 1, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/ann-ruby-on-crack/133548 "2008-04-01T21:28:46Z")

</div>

After several months of keeping it under wraps, I’m happy to officially announce my own web framework to the world. It’s called Ruby on Crack and will be released by RailsConf 2008. The name of the framework was chose…

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

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