# Rails

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

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

---

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

<div class="topic-metadata">

**Author:** [@noooooo10](https://www.ruby-forum.com/u/noooooo10)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/link-to/103762 "2007-05-10T16:45:30Z")

</div>

Hiya! I am really new to RoR, and I have a little tiny question: I have a database column called url. I have a simple bookmarking app and I would like a button called “open” that will take the user to the url stored …

---

## [Script/console error](https://www.ruby-forum.com/t/script-console-error/103479)

<div class="topic-metadata">

**Author:** [@ray](https://www.ruby-forum.com/u/ray)\
**Replies:** 3\
**Last updated:** [May 10, 2007, 3:55pm UTC](https://www.ruby-forum.com/t/script-console-error/103479 "2007-05-10T15:55:20Z")

</div>

I got the following error when I try to run the console. It used to be able to run without problems. script/console Loading development environment. /usr/local/lib/ruby/1.8/irb/completion.rb:10:in require': no such…

---

## [Errors using ruby script/console](https://www.ruby-forum.com/t/errors-using-ruby-script-console/103811)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 3:50pm UTC](https://www.ruby-forum.com/t/errors-using-ruby-script-console/103811 "2007-05-10T15:50:18Z")

</div>

HI all, when i try to use the rails console with this command, ruby script/console, i got the following errors: /usr/local/lib/ruby/1.8/irb/completion.rb:10:in require': no such file to load -- readline (LoadError) fro…

---

## [Dynamic counter?](https://www.ruby-forum.com/t/dynamic-counter/103785)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 3:25pm UTC](https://www.ruby-forum.com/t/dynamic-counter/103785 "2007-05-10T15:25:16Z")

</div>

Hi, In a form I have a text area T and a disable text field C (for counter). C must show dynamically how many characters have been typed in T. Should I go in for a Javascript solution (or Ajax) or is there any other …

---

## [Rails Newbie question](https://www.ruby-forum.com/t/rails-newbie-question/103799)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 3:15pm UTC](https://www.ruby-forum.com/t/rails-newbie-question/103799 "2007-05-10T15:15:14Z")

</div>

I’ve got a div statement with id pets around a text box in my \_form.rhtml file. For this textbox, I want to show or hide based on if the user has selected something from a pulldown list. I’ve got an observe\_field th…

---

## [Pagination has many through problems](https://www.ruby-forum.com/t/pagination-has-many-through-problems/103800)

<div class="topic-metadata">

**Author:** [@ksader](https://www.ruby-forum.com/u/ksader)\
**Replies:** 5\
**Last updated:** [May 10, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/pagination-has-many-through-problems/103800 "2007-05-10T14:29:09Z")

</div>

I have searched for days for an example that demonstrates what i would like to do, and this morning i thought i’d worked it out, but no…here’s what i have: Controller class ProfilesController \< ApplicationController …

---

## [Recursive deep copy](https://www.ruby-forum.com/t/recursive-deep-copy/103796)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 4\
**Last updated:** [May 10, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/recursive-deep-copy/103796 "2007-05-10T13:24:59Z")

</div>

hello, It’s a little bit hard question: i’ve a problem when working on arrays. i’m doing a deep copy of an array (a find request result) by doing it : @array = new.Array(@original\_array) it just copies the first lev…

---

## [Display the time between a request and a response](https://www.ruby-forum.com/t/display-the-time-between-a-request-and-a-response/103798)

<div class="topic-metadata">

**Author:** [@Pascal\_F](https://www.ruby-forum.com/u/Pascal_F)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 1:18pm UTC](https://www.ruby-forum.com/t/display-the-time-between-a-request-and-a-response/103798 "2007-05-10T13:18:59Z")

</div>

Hi, i want to display the time that rails needs to render / process a request from the user. From start -\> a request from a user is recieved by my application -\> the db requests and all the logics are processed -\> th…

---

## [Layouts + routes = confused](https://www.ruby-forum.com/t/layouts-routes-confused/103718)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 5\
**Last updated:** [May 10, 2007, 1:01pm UTC](https://www.ruby-forum.com/t/layouts-routes-confused/103718 "2007-05-10T13:01:57Z")

</div>

I’m new to RoR and the tutorials I’ve found on the web, while helpful, aren’t as “complete” as I’d like them. I understand the basics when it comes to layouts and routes, but I’m trying to get them to work together. …

---

## [\[railsconf\] Wisconsin RailConf attendees](https://www.ruby-forum.com/t/railsconf-wisconsin-railconf-attendees/103797)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 12:45pm UTC](https://www.ruby-forum.com/t/railsconf-wisconsin-railconf-attendees/103797 "2007-05-10T12:45:54Z")

</div>

Hi If you are from Wisconsin and want to meet up or just see who else is attending RailsConf from the area, please head over to here: http://madisonrails.com/wiki/pages/Wisconsin+RailsConf+attendees leave your name, …

---

## [Nested Hashes](https://www.ruby-forum.com/t/nested-hashes/103754)

<div class="topic-metadata">

**Author:** [@Nash](https://www.ruby-forum.com/u/Nash)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 11:58am UTC](https://www.ruby-forum.com/t/nested-hashes/103754 "2007-05-10T11:58:51Z")

</div>

Hi, I’m about to implement a feature that requires a complex set of options to be sent over. This requires me to do things like: text\_field “some\_object”, “”, :name =\> “inventory\_view\[settings\] \[where\_clause\]\[invento…

---

## [How to install gem package manually?](https://www.ruby-forum.com/t/how-to-install-gem-package-manually/103502)

<div class="topic-metadata">

**Author:** [@lalala](https://www.ruby-forum.com/u/lalala)\
**Replies:** 6\
**Last updated:** [May 10, 2007, 11:51am UTC](https://www.ruby-forum.com/t/how-to-install-gem-package-manually/103502 "2007-05-10T11:51:47Z")

</div>

Hello everyone, I’d like to install gem package like ruby-debug, mini magick, etc …, but I don’t have access to gem at my development machine. Is there a way to install those package manually ? Thank you

---

## [14 year guy takes on Myspace](https://www.ruby-forum.com/t/14-year-guy-takes-on-myspace/103790)

<div class="topic-metadata">

**Author:** [@rico](https://www.ruby-forum.com/u/rico)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 11:42am UTC](https://www.ruby-forum.com/t/14-year-guy-takes-on-myspace/103790 "2007-05-10T11:42:47Z")

</div>

14 year guy takes on Myspace http://www.uncov.com/2007/5/10/web-2-0-so-easy-a-14-year-old-can-do-it

---

## [Using acts\_as\_ferret in non latin language](https://www.ruby-forum.com/t/using-acts-as-ferret-in-non-latin-language/103771)

<div class="topic-metadata">

**Author:** [@mahmoodi](https://www.ruby-forum.com/u/mahmoodi)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 11:24am UTC](https://www.ruby-forum.com/t/using-acts-as-ferret-in-non-latin-language/103771 "2007-05-10T11:24:45Z")

</div>

Hi all, I want to use acts\_as\_ferret in persian language, i have installed ferret and acts as ferret successfully and write model and controller code like the following but by all parameter there is no results. pleas…

---

## [How to restore fields ("validates\_presence\_of")](https://www.ruby-forum.com/t/how-to-restore-fields-validates-presence-of/103610)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 3\
**Last updated:** [May 10, 2007, 11:10am UTC](https://www.ruby-forum.com/t/how-to-restore-fields-validates-presence-of/103610 "2007-05-10T11:10:40Z")

</div>

Hi all, I am using “validates\_presence\_of” for validating all fields of my registration form. It is working fine and generating custom error message as mentioned. Also clearing all fields. How can restore those field…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/115884)

<div class="topic-metadata">

**Author:** [@jeisma](https://www.ruby-forum.com/u/jeisma)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 10:43am UTC](https://www.ruby-forum.com/t/unsubscribe/115884 "2007-05-10T10:43:42Z")

</div>

unsubscribe

---

## [Options\_for\_select helper is also mess](https://www.ruby-forum.com/t/options-for-select-helper-is-also-mess/103781)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 9:11am UTC](https://www.ruby-forum.com/t/options-for-select-helper-is-also-mess/103781 "2007-05-10T09:11:39Z")

</div>

I am ‘trying’ to use ‘options\_for\_select’ \<%= options\_for\_select(\[“2”, “5”, “10”, “15”, “25” \], @selected\_distance ) %\> which generates the html… 2 5 10 15 25 but the dropdown selection is NOT selected, first…

---

## [How can I use a rjs inside another rjs?](https://www.ruby-forum.com/t/how-can-i-use-a-rjs-inside-another-rjs/103779)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 9:03am UTC](https://www.ruby-forum.com/t/how-can-i-use-a-rjs-inside-another-rjs/103779 "2007-05-10T09:03:33Z")

</div>

For example: a.rjs page.insert\_html :bottom, :criteriaDiv, :partial =\> ‘criteria\_item’ b.rjs page.replace :keywordSearchLink, :partial =\> ‘criteria\_item\_add\_link’, :locals =\> { :form\_name =\> ‘keywordFieldset’} pag…

---

## [Hello im seeking help creating a](https://www.ruby-forum.com/t/hello-im-seeking-help-creating-a/103774)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 8:30am UTC](https://www.ruby-forum.com/t/hello-im-seeking-help-creating-a/103774 "2007-05-10T08:30:30Z")

</div>

Hello, im seeking help creating a backorder system in ruby onrails, i want to to register a domain as soon as it becomes available, where do i start?

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/103772)

<div class="topic-metadata">

**Author:** [@jeisma](https://www.ruby-forum.com/u/jeisma)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 8:05am UTC](https://www.ruby-forum.com/t/unsubscribe/103772 "2007-05-10T08:05:28Z")

</div>

unsubscribe

---

## [RailsConf ticket on Ebay!](https://www.ruby-forum.com/t/railsconf-ticket-on-ebay/103770)

<div class="topic-metadata">

**Author:** [@D\_Rails\_Kid](https://www.ruby-forum.com/u/D_Rails_Kid)\
**Replies:** 0\
**Last updated:** [May 10, 2007, 7:09am UTC](https://www.ruby-forum.com/t/railsconf-ticket-on-ebay/103770 "2007-05-10T07:09:25Z")

</div>

Hey everyone, I know RailsConf has been sold out since February but a friend of mine just backed out and I can’t use the ticket. I really don’t want this to go to waste! Somebody please get it! http://cgi.ebay.com/1-…

---

## [MVC Overriding](https://www.ruby-forum.com/t/mvc-overriding/103768)

<div class="topic-metadata">

**Author:** [@soabirw](https://www.ruby-forum.com/u/soabirw)\
**Replies:** 3\
**Last updated:** [May 10, 2007, 6:57am UTC](https://www.ruby-forum.com/t/mvc-overriding/103768 "2007-05-10T06:57:24Z")

</div>

Trying to convert a large application from our home brew PHP framework to Ruby on Rails. I’ve built small things, like blogs and other CMS’s with Rails, but am having a hard time thinking of a better way to impliment…

---

## [\[Problem\] Javascript returned by link\_to\_remote cannot be au](https://www.ruby-forum.com/t/problem-javascript-returned-by-link-to-remote-cannot-be-au/103698)

<div class="topic-metadata">

**Author:** [@allen](https://www.ruby-forum.com/u/allen)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 6:36am UTC](https://www.ruby-forum.com/t/problem-javascript-returned-by-link-to-remote-cannot-be-au/103698 "2007-05-10T06:36:24Z")

</div>

I created a ajax link using link\_to\_remote helper. I used the options\[:submit\] so that I can submit a form using ajax POST method. This ajax call would render a rjs in which I did some DOM operations on the current pa…

---

## [Send\_file pdf problem](https://www.ruby-forum.com/t/send-file-pdf-problem/92725)

<div class="topic-metadata">

**Author:** [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Replies:** 4\
**Last updated:** [May 10, 2007, 4:02am UTC](https://www.ruby-forum.com/t/send-file-pdf-problem/92725 "2007-05-10T04:02:17Z")

</div>

Hi, I am using send\_file to allow users to download files from my website, please see code beloe: def download\_document send\_file("#{RAILS\_ROOT}/public/test\_form.pdf", :filename =\> “test.pdf”, :type …

---

## [Event Handlers in ruby on rails](https://www.ruby-forum.com/t/event-handlers-in-ruby-on-rails/103757)

<div class="topic-metadata">

**Author:** [@bunsenator](https://www.ruby-forum.com/u/bunsenator)\
**Replies:** 3\
**Last updated:** [May 10, 2007, 3:02am UTC](https://www.ruby-forum.com/t/event-handlers-in-ruby-on-rails/103757 "2007-05-10T03:02:42Z")

</div>

Does anyone know how I can implement event handlers in rails? I’m a super newbie to programming in general and wanted to start with a language that is really simple. Besides that, I have a little javascript knowledge. …

---

## [What's the best linux for ror?](https://www.ruby-forum.com/t/whats-the-best-linux-for-ror/103719)

<div class="topic-metadata">

**Author:** [@gino](https://www.ruby-forum.com/u/gino)\
**Replies:** 9\
**Last updated:** [May 10, 2007, 2:36am UTC](https://www.ruby-forum.com/t/whats-the-best-linux-for-ror/103719 "2007-05-10T02:36:12Z")

</div>

I’m using windows, but want to try linux, which would be a good choice? I installed ubuntu once, but I hardly used it, so I’m thinking on installing it again, but, I would like some suggentions

---

## [Attachment\_fu and portrait vs. landscape pictures](https://www.ruby-forum.com/t/attachment-fu-and-portrait-vs-landscape-pictures/103749)

<div class="topic-metadata">

**Author:** [@HSWade\_M](https://www.ruby-forum.com/u/HSWade_M)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 2:33am UTC](https://www.ruby-forum.com/t/attachment-fu-and-portrait-vs-landscape-pictures/103749 "2007-05-10T02:33:12Z")

</div>

I’m using attachment\_fu in some code that allows photo upload. The attachment\_fu Model code generally looks like this: has\_attachment :content\_type =\> :image, :storage =\> :file\_system, :…

---

## [Form.select wrong number of arguments (0 for 1)](https://www.ruby-forum.com/t/form-select-wrong-number-of-arguments-0-for-1/103761)

<div class="topic-metadata">

**Author:** [@RailsNewby](https://www.ruby-forum.com/u/RailsNewby)\
**Replies:** 1\
**Last updated:** [May 10, 2007, 2:31am UTC](https://www.ruby-forum.com/t/form-select-wrong-number-of-arguments-0-for-1/103761 "2007-05-10T02:31:46Z")

</div>

I am new to rails, PHP background. I’m completely lost on this. I am trying to pull all of the albums from the albums table into a select box. But every time I run the script I get the “wrong number of arguments (0 fo…

---

## [Acts\_as\_ferret; one search over multiple models?](https://www.ruby-forum.com/t/acts-as-ferret-one-search-over-multiple-models/103724)

<div class="topic-metadata">

**Author:** [@jdruse](https://www.ruby-forum.com/u/jdruse)\
**Replies:** 3\
**Last updated:** [May 10, 2007, 2:05am UTC](https://www.ruby-forum.com/t/acts-as-ferret-one-search-over-multiple-models/103724 "2007-05-10T02:05:11Z")

</div>

So i’ve been reading acts\_as\_ferret for about 3 days now and still have not figured out how to create one search over all my models. that way when people search my site, they can actually find what they’re looking fo…

---

## [Pagination + Search Parameters. How?](https://www.ruby-forum.com/t/pagination-search-parameters-how/103637)

<div class="topic-metadata">

**Author:** [@felipe](https://www.ruby-forum.com/u/felipe)\
**Replies:** 2\
**Last updated:** [May 10, 2007, 1:30am UTC](https://www.ruby-forum.com/t/pagination-search-parameters-how/103637 "2007-05-10T01:30:09Z")

</div>

Hi! I’m having trouble to pass filter parameters on my search form while using paginator, the issue is that when I click in the “Next Page” link, the current params are not passed along. I’m using this in my view: \<%…

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

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