# Rails

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

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

---

## [Proximity search not working in solr lucene](https://www.ruby-forum.com/t/proximity-search-not-working-in-solr-lucene/116447)

<div class="topic-metadata">

**Author:** [@Sushan\_Rungta](https://www.ruby-forum.com/u/Sushan_Rungta)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 5:00pm UTC](https://www.ruby-forum.com/t/proximity-search-not-working-in-solr-lucene/116447 "2007-10-05T17:00:41Z")

</div>

I have installed solr lucene for my website: clickindia.com, but I am unable to apply proximity search for the same over there. Please help me that how should I index solrconfig.xml & schema.xml after providing an opt…

---

## [Custom helpers for list of options?](https://www.ruby-forum.com/t/custom-helpers-for-list-of-options/116444)

<div class="topic-metadata">

**Author:** [@pedro](https://www.ruby-forum.com/u/pedro)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/custom-helpers-for-list-of-options/116444 "2007-10-05T16:31:15Z")

</div>

Hi all, I have a model that “belongs\_to” many other models, many of those models are just list of names, like country, state, city, profession … I read about the country\_select helper. Is better to have all those tab…

---

## [Acts\_as\_tree - parent reference is outdated?](https://www.ruby-forum.com/t/acts-as-tree-parent-reference-is-outdated/116367)

<div class="topic-metadata">

**Author:** [@schof](https://www.ruby-forum.com/u/schof)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 4:09pm UTC](https://www.ruby-forum.com/t/acts-as-tree-parent-reference-is-outdated/116367 "2007-10-05T16:09:21Z")

</div>

I’m experiencing some unexpected weirdness with acts\_as\_tree. class Category \< ActiveRecord::Base acts\_as\_tree has\_many :variations end def variations some code that returns the parent category variations if we hav…

---

## [MySQL](https://www.ruby-forum.com/t/mysql/88533)

<div class="topic-metadata">

**Author:** [@fangheuschrecke](https://www.ruby-forum.com/u/fangheuschrecke)\
**Replies:** 7\
**Last updated:** [October 5, 2007, 4:06pm UTC](https://www.ruby-forum.com/t/mysql/88533 "2007-10-05T16:06:03Z")

</div>

Hi there, Could you please help me to find some documentation about using Ruby and several MySQL servers with one way replication there. Main idea is to use Masters server for inserting/changing data and Slave server…

---

## [Puzzled by ActiveRecord](https://www.ruby-forum.com/t/puzzled-by-activerecord/116441)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/puzzled-by-activerecord/116441 "2007-10-05T15:58:24Z")

</div>

Dear list, At the moment I am working on an app which has a good few models and associations. In short: A :has\_many B B :belongs\_to A Now I want to update A when I have saved B, so I wrote a after\_save filter. Howe…

---

## [Re: Pound and Long running actions](https://www.ruby-forum.com/t/re-pound-and-long-running-actions/116437)

<div class="topic-metadata">

**Author:** [@piet](https://www.ruby-forum.com/u/piet)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 3:27pm UTC](https://www.ruby-forum.com/t/re-pound-and-long-running-actions/116437 "2007-10-05T15:27:18Z")

</div>

You can’t do this with pound. Try haproxy (or probably several others) instead. Haproxy does this and much more and is much lighter on resources compared to pound. Or check out swiftiply, which in my tests could handl…

---

## [Transaction scope](https://www.ruby-forum.com/t/transaction-scope/116020)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/transaction-scope/116020 "2007-10-05T15:20:51Z")

</div>

I just read this in the documentation and would like to clarify what it means: Both Base#save and Base#destroy come wrapped in a transaction that ensures that whatever you do in validations or callbacks will happen u…

---

## [Saving \*args to database](https://www.ruby-forum.com/t/saving-args-to-database/116327)

<div class="topic-metadata">

**Author:** [@no137b](https://www.ruby-forum.com/u/no137b)\
**Replies:** 5\
**Last updated:** [October 5, 2007, 12:50pm UTC](https://www.ruby-forum.com/t/saving-args-to-database/116327 "2007-10-05T12:50:45Z")

</div>

Hi, I am trying to find a way to save arguments (\*args) of a method in database. So that when retrieving values from database, coupled with the method name, I would be able to go: foo.send(method, \*args) Is it poss…

---

## [Do migration support MySQL BIGINT](https://www.ruby-forum.com/t/do-migration-support-mysql-bigint/116426)

<div class="topic-metadata">

**Author:** [@Ghee\_wooi\_O](https://www.ruby-forum.com/u/Ghee_wooi_O)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/do-migration-support-mysql-bigint/116426 "2007-10-05T12:31:02Z")

</div>

hi, just wondering do migration support MySQL BIGINT ? what if i wanna create a migration with BIGINT ? should i use SQL directly ? kiwi

---

## [Create string primairy key](https://www.ruby-forum.com/t/create-string-primairy-key/116430)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 12:13pm UTC](https://www.ruby-forum.com/t/create-string-primairy-key/116430 "2007-10-05T12:13:23Z")

</div>

Hi all, I have 2 questions: 1- I try to make a primairy key that’s a string (tuis not the default int). I use: t.column “id”, :string, {:limit =\> 30, :null =\> false, :auto\_increment =\> false} When migrating this…

---

## [Sharing variabe in multiple javascript files](https://www.ruby-forum.com/t/sharing-variabe-in-multiple-javascript-files/116428)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 12:02pm UTC](https://www.ruby-forum.com/t/sharing-variabe-in-multiple-javascript-files/116428 "2007-10-05T12:02:43Z")

</div>

Hi friends, I have created a flag variable and some functions to retrive and update its vales. 1)getFlag(): returns the value of the flag 2)toggleFlag(): toggle value of flag. I have used one .js file to contain …

---

## [Problem with display of float types](https://www.ruby-forum.com/t/problem-with-display-of-float-types/116297)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [October 5, 2007, 10:27am UTC](https://www.ruby-forum.com/t/problem-with-display-of-float-types/116297 "2007-10-05T10:27:18Z")

</div>

Hello all, I am taking some values from mysql columns of type float (16, 2) , performing a calculation such as multiply or divide, before displaying on screen, and then displaying on a screen. Unfortunately, sometime…

---

## [Design and modeling tools?](https://www.ruby-forum.com/t/design-and-modeling-tools/116296)

<div class="topic-metadata">

**Author:** [@Christian\_WattengSS](https://www.ruby-forum.com/u/Christian_WattengSS)\
**Replies:** 10\
**Last updated:** [October 5, 2007, 10:23am UTC](https://www.ruby-forum.com/t/design-and-modeling-tools/116296 "2007-10-05T10:23:12Z")

</div>

What do you guys use for design and modeling (and don’t answer pen and paper, because I use those to, they just don’t look so good in a project report :wink: ) I have tried stuff like UMLet (free), Altova UMLsomething…

---

## [Upgrade from 1.2.3 to 1.2.4 broke my restful routes with :collection et al routes](https://www.ruby-forum.com/t/upgrade-from-1-2-3-to-1-2-4-broke-my-restful-routes-with-collection-et-al-routes/116416)

<div class="topic-metadata">

**Author:** [@wolfmanjm](https://www.ruby-forum.com/u/wolfmanjm)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 10:15am UTC](https://www.ruby-forum.com/t/upgrade-from-1-2-3-to-1-2-4-broke-my-restful-routes-with-collection-et-al-routes/116416 "2007-10-05T10:15:36Z")

</div>

Ok I see that they replaced the ; in some routes with / however this seems to have broken all my restful routes that use… map.resources :places, :collection =\> { :tagged =\> :get } Now the URL that is generated is /pl…

---

## [\[ANN\] Rails 1.2.4: Maintenance release](https://www.ruby-forum.com/t/ann-rails-1-2-4-maintenance-release/116400)

<div class="topic-metadata">

**Author:** [@DHH](https://www.ruby-forum.com/u/DHH)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 9:46am UTC](https://www.ruby-forum.com/t/ann-rails-1-2-4-maintenance-release/116400 "2007-10-05T09:46:19Z")

</div>

The last stop before Rails 2.0 has gone live. Get your Rails 1.2.4 maintenance goodness and have those deprecations taken care of before you head for two-oh-oh land. Read more at Ruby on Rails — Rails 1.2.4: Maintenan…

---

## [Converting docs to flashpaper](https://www.ruby-forum.com/t/converting-docs-to-flashpaper/116403)

<div class="topic-metadata">

**Author:** [@jgjgjg](https://www.ruby-forum.com/u/jgjgjg)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 7:05am UTC](https://www.ruby-forum.com/t/converting-docs-to-flashpaper/116403 "2007-10-05T07:05:28Z")

</div>

I’m trying to automatically have uploaded docs converted to flashpaper in my rails app. Does anyone have any experience with this or thoughts on how to do it? I’m using attachment\_fu for my uploads. Thanks Jason

---

## [Ajax request on page load](https://www.ruby-forum.com/t/ajax-request-on-page-load/116390)

<div class="topic-metadata">

**Author:** [@silvertab](https://www.ruby-forum.com/u/silvertab)\
**Replies:** 4\
**Last updated:** [October 5, 2007, 6:22am UTC](https://www.ruby-forum.com/t/ajax-request-on-page-load/116390 "2007-10-05T06:22:10Z")

</div>

I’m trying to do something rather simple (I think) but being new to rails, I’m not sure how I should proceed… What I want to do in simple terms is: When the my page load, get some data from a table (let’s call that ta…

---

## [Prob with virtual attributes](https://www.ruby-forum.com/t/prob-with-virtual-attributes/116351)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 6:04am UTC](https://www.ruby-forum.com/t/prob-with-virtual-attributes/116351 "2007-10-05T06:04:37Z")

</div>

I currently have an activerecord object that I make available to all my controllers through a variable called @menu that I set in application.rb. @menu has a one to many association with it’s children (MenuItems). @me…

---

## [RESTful Thinking](https://www.ruby-forum.com/t/restful-thinking/116396)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 5:27am UTC](https://www.ruby-forum.com/t/restful-thinking/116396 "2007-10-05T05:27:47Z")

</div>

Okay, so I am trying to embrace the RESTful approach to web application design and wanted to get some feedback from others. I understand that it can be done different ways, I’m just interested to see what real RESTfu…

---

## [Edge rails?](https://www.ruby-forum.com/t/edge-rails/116395)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 0\
**Last updated:** [October 5, 2007, 5:02am UTC](https://www.ruby-forum.com/t/edge-rails/116395 "2007-10-05T05:02:40Z")

</div>

is :or a parameter only in edge rails? Example: submit\_tag ‘Label’, :or =\> link\_to\_function(‘cancel’, ‘route’) Thanks, JB

---

## [Add a default condition in active record](https://www.ruby-forum.com/t/add-a-default-condition-in-active-record/116392)

<div class="topic-metadata">

**Author:** [@costi](https://www.ruby-forum.com/u/costi)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 4:40am UTC](https://www.ruby-forum.com/t/add-a-default-condition-in-active-record/116392 "2007-10-05T04:40:27Z")

</div>

I need to add to every retrieved record a condition “client=xxx”. How do I alter default conditions globally when retrieving records in ActiveRecord? Some background: I’ve built a website / web service to be used jus…

---

## [Trouble with text\_field\_tag](https://www.ruby-forum.com/t/trouble-with-text-field-tag/116384)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 7\
**Last updated:** [October 5, 2007, 4:31am UTC](https://www.ruby-forum.com/t/trouble-with-text-field-tag/116384 "2007-10-05T04:31:40Z")

</div>

I am trying to implement a basic login page: login.rhtml 1 2 \<% form\_tag do %\> 3 Name: 4 \<%= text\_field\_tag :name, params\[:name\] %\> 5 Password: 6 \<%= password\_field\_tag :password, …

---

## [\[TIP\] Working with columns that end with "?", like "male?"](https://www.ruby-forum.com/t/tip-working-with-columns-that-end-with-like-male/116373)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 3\
**Last updated:** [October 5, 2007, 4:01am UTC](https://www.ruby-forum.com/t/tip-working-with-columns-that-end-with-like-male/116373 "2007-10-05T04:01:59Z")

</div>

I was about to write a really long question asking how to do this, then I figured it out. I figured I’d post it in case anyone else runs into it. Lets say you have the following hypothetical table associated with the …

---

## [Running a "CSV-row massager" on Fixtures](https://www.ruby-forum.com/t/running-a-csv-row-massager-on-fixtures/116376)

<div class="topic-metadata">

**Author:** [@edward](https://www.ruby-forum.com/u/edward)\
**Replies:** 1\
**Last updated:** [October 5, 2007, 3:42am UTC](https://www.ruby-forum.com/t/running-a-csv-row-massager-on-fixtures/116376 "2007-10-05T03:42:32Z")

</div>

Hi All, I was wondering if anyone had run into a similar problem and had advice: I’m using ActiveRecord (without the rest of Rails) to manage data import for large collections of CSV data files into a database. The …

---

## [Uploading files... managing lots of files](https://www.ruby-forum.com/t/uploading-files-managing-lots-of-files/116235)

<div class="topic-metadata">

**Author:** [@jdruse](https://www.ruby-forum.com/u/jdruse)\
**Replies:** 4\
**Last updated:** [October 5, 2007, 2:10am UTC](https://www.ruby-forum.com/t/uploading-files-managing-lots-of-files/116235 "2007-10-05T02:10:08Z")

</div>

hello all, i run a website for a school, and on the site there’s space for teachers to upload files for students to download them. the system is working great and everyone is real happy with it. i store the files in …

---

## [Getting a page source into a file using ruby](https://www.ruby-forum.com/t/getting-a-page-source-into-a-file-using-ruby/116379)

<div class="topic-metadata">

**Author:** [@krishnakishore](https://www.ruby-forum.com/u/krishnakishore)\
**Replies:** 2\
**Last updated:** [October 5, 2007, 1:51am UTC](https://www.ruby-forum.com/t/getting-a-page-source-into-a-file-using-ruby/116379 "2007-10-05T01:51:26Z")

</div>

Does anybody know to get the source of a given webpage saved to a notepad using ruby? I appreciate your help…

---

## [Rails' abilities fitting?](https://www.ruby-forum.com/t/rails-abilities-fitting/116281)

<div class="topic-metadata">

**Author:** [@David\_Zentgraf](https://www.ruby-forum.com/u/David_Zentgraf)\
**Replies:** 12\
**Last updated:** [October 4, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/rails-abilities-fitting/116281 "2007-10-04T23:55:45Z")

</div>

Hi, I’m looking at developing a reasonably complex web application, where most of the complexity actually lays in the database and the queries I need run on it. Some “classes” or models need to consist of an assembly…

---

## [RE: Ruby on Rails Training](https://www.ruby-forum.com/t/re-ruby-on-rails-training/116335)

<div class="topic-metadata">

**Author:** [@LukeS\_Heather](https://www.ruby-forum.com/u/LukeS_Heather)\
**Replies:** 6\
**Last updated:** [October 4, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/re-ruby-on-rails-training/116335 "2007-10-04T23:30:16Z")

</div>

Hello, I have a small group of people in India and in the US who requires Ruby on Rails training. Do you know of any affiliates who offer course work or e-Learning solutions? Please advise. Continued Success, Hea…

---

## [Agile Del with Rails sum problem](https://www.ruby-forum.com/t/agile-del-with-rails-sum-problem/116364)

<div class="topic-metadata">

**Author:** [@woodzer](https://www.ruby-forum.com/u/woodzer)\
**Replies:** 5\
**Last updated:** [October 4, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/agile-del-with-rails-sum-problem/116364 "2007-10-04T23:26:59Z")

</div>

Another Rails newbie here :slight\_smile: stuck on a section of Agile Web D. with Rails. The book says: def total\_price @items.sum { |item| item.price } end However this code throws this error. undefined method \`sum…

---

## [Redirect on AJAX request](https://www.ruby-forum.com/t/redirect-on-ajax-request/116344)

<div class="topic-metadata">

**Author:** [@shishir\_s](https://www.ruby-forum.com/u/shishir_s)\
**Replies:** 7\
**Last updated:** [October 4, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/redirect-on-ajax-request/116344 "2007-10-04T23:00:07Z")

</div>

Hi, Is there a way to redirect the page through a ajax request. I tried using link\_to\_remote tag as the logout link on a page and used the ‘redirect\_to index’ in the called method. But I get the whole page in the req…

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

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