# Rails

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

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

---

## [Assert\_routing help](https://www.ruby-forum.com/t/assert-routing-help/122082)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 1\
**Last updated:** [December 4, 2007, 2:30pm UTC](https://www.ruby-forum.com/t/assert-routing-help/122082 "2007-12-04T14:30:46Z")

</div>

i want to test my routes and really struggle with it … i have the following roout defined: map.home ‘’, :controller =\> ‘Home’ … which allows me to call http://www.host.com and be redirected to the home controllers’ i…

---

## [Multidimensional arrays](https://www.ruby-forum.com/t/multidimensional-arrays/122059)

<div class="topic-metadata">

**Author:** [@arpit\_jain](https://www.ruby-forum.com/u/arpit_jain)\
**Replies:** 2\
**Last updated:** [December 4, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/multidimensional-arrays/122059 "2007-12-04T13:26:53Z")

</div>

Hi All. can somebody tell me how to implement 2-D arrays in ruby? Thanks Arpit

---

## [Relation model naming advice needed](https://www.ruby-forum.com/t/relation-model-naming-advice-needed/121896)

<div class="topic-metadata">

**Author:** [@wet](https://www.ruby-forum.com/u/wet)\
**Replies:** 12\
**Last updated:** [December 4, 2007, 12:39pm UTC](https://www.ruby-forum.com/t/relation-model-naming-advice-needed/121896 "2007-12-04T12:39:22Z")

</div>

I have two models: Product and InvolvedParty “Product” stores information about building materials and “InvolvedParty” stores… well, involved parties, related to the products. This could be a person who has administra…

---

## [\[ANN\] TextAreaWithStatus 1.0 released](https://www.ruby-forum.com/t/ann-textareawithstatus-1-0-released/122073)

<div class="topic-metadata">

**Author:** [@Alexandru\_Ungur](https://www.ruby-forum.com/u/Alexandru_Ungur)\
**Replies:** 0\
**Last updated:** [December 4, 2007, 11:02am UTC](https://www.ruby-forum.com/t/ann-textareawithstatus-1-0-released/122073 "2007-12-04T11:02:30Z")

</div>

TextAreaWithStatus 1.0 has been released http://code.google.com/p/text-area-with-status/ == Overview == This plugin is extending builtin text\_area and text\_area\_tag helpers with the ability to display chars left up t…

---

## [No shell access - how to run migrations on production db?](https://www.ruby-forum.com/t/no-shell-access-how-to-run-migrations-on-production-db/121487)

<div class="topic-metadata">

**Author:** [@mfeadler](https://www.ruby-forum.com/u/mfeadler)\
**Replies:** 7\
**Last updated:** [December 4, 2007, 10:08am UTC](https://www.ruby-forum.com/t/no-shell-access-how-to-run-migrations-on-production-db/121487 "2007-12-04T10:08:03Z")

</div>

Hey, I have no shell access to the production server, but would still like to use migrations to maintain the database. Is it possible to run migrations from Ruby code itself (ie, without using ‘rake’)? If so, I’ll b…

---

## [Button\_to\_function question](https://www.ruby-forum.com/t/button-to-function-question/122066)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 2\
**Last updated:** [December 4, 2007, 9:46am UTC](https://www.ruby-forum.com/t/button-to-function-question/122066 "2007-12-04T09:46:17Z")

</div>

Hey everybody, I am trying to create a button that, when clicked on, calls a method in a controller then changes the image on the button without a page load. I was thinking that button\_to\_function might be a good co…

---

## [How to put a image as a link in ROR](https://www.ruby-forum.com/t/how-to-put-a-image-as-a-link-in-ror/122060)

<div class="topic-metadata">

**Author:** [@nad](https://www.ruby-forum.com/u/nad)\
**Replies:** 1\
**Last updated:** [December 4, 2007, 9:28am UTC](https://www.ruby-forum.com/t/how-to-put-a-image-as-a-link-in-ror/122060 "2007-12-04T09:28:09Z")

</div>

hi All how to put a image as a link in ROR. only found a way to put images to to submit buttons only. i want to find how can i make a image to a link.

---

## [Association Problem in development server](https://www.ruby-forum.com/t/association-problem-in-development-server/122053)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 1\
**Last updated:** [December 4, 2007, 9:23am UTC](https://www.ruby-forum.com/t/association-problem-in-development-server/122053 "2007-12-04T09:23:21Z")

</div>

\<%= task.task\_users.collect{|task\_user| task\_user.court\_user.user.name} The above code throwing the following error. undefined local variable or method \`task\_users’ for #\<#Class:0x5e8899c:0x5e88974\> Task.rb has the f…

---

## [Implementing prev / next in CalendarHelper](https://www.ruby-forum.com/t/implementing-prev-next-in-calendarhelper/122062)

<div class="topic-metadata">

**Author:** [@axplains](https://www.ruby-forum.com/u/axplains)\
**Replies:** 0\
**Last updated:** [December 4, 2007, 9:09am UTC](https://www.ruby-forum.com/t/implementing-prev-next-in-calendarhelper/122062 "2007-12-04T09:09:44Z")

</div>

Hi everyone How do I implement the previous and next (month and/or year) functionality for the Calendar Helper Plugin, the like of http://www.rubyonrailsworkshops.com ? I have not found documentation or code for this…

---

## [How to remember if a div is shown or hidden after a page ref](https://www.ruby-forum.com/t/how-to-remember-if-a-div-is-shown-or-hidden-after-a-page-ref/121955)

<div class="topic-metadata">

**Author:** [@axplains](https://www.ruby-forum.com/u/axplains)\
**Replies:** 4\
**Last updated:** [December 4, 2007, 7:11am UTC](https://www.ruby-forum.com/t/how-to-remember-if-a-div-is-shown-or-hidden-after-a-page-ref/121955 "2007-12-04T07:11:39Z")

</div>

Hi everyone, hi have a similar problem in a view: ... Hide/show content I would like the page to “remember” that the div has been hidden after a page reload. (The div comes up always visible even if it was set to hid…

---

## [Paginating acts\_as\_locateable](https://www.ruby-forum.com/t/paginating-acts-as-locateable/122044)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 0\
**Last updated:** [December 4, 2007, 5:48am UTC](https://www.ruby-forum.com/t/paginating-acts-as-locateable/122044 "2007-12-04T05:48:14Z")

</div>

is there anyone familiar with the acts\_as\_locateable plugin? i’m playing around with it for the first time and trying to figure out how to paginate the results. currently i am using the will\_paginate plugin and am hav…

---

## [Two layouts for one controller](https://www.ruby-forum.com/t/two-layouts-for-one-controller/121817)

<div class="topic-metadata">

**Author:** [@ror-user](https://www.ruby-forum.com/u/ror-user)\
**Replies:** 6\
**Last updated:** [December 4, 2007, 1:47am UTC](https://www.ruby-forum.com/t/two-layouts-for-one-controller/121817 "2007-12-04T01:47:55Z")

</div>

Hi all, I am implementing the functionality of content management through FCKeditor. I have a controller called aboutus and the corresponding table in the database for accessing the contents. Layouts of back end and …

---

## [RSpec Project](https://www.ruby-forum.com/t/rspec-project/121996)

<div class="topic-metadata">

**Author:** [@agorilla](https://www.ruby-forum.com/u/agorilla)\
**Replies:** 7\
**Last updated:** [December 4, 2007, 1:12am UTC](https://www.ruby-forum.com/t/rspec-project/121996 "2007-12-04T01:12:50Z")

</div>

Hey does anyone know of a good open source Rails project that uses RSpec? I’d like to check out some real world code that’s drinking the RSpec BDD koolaid. Thanks.

---

## [Has\_many through question](https://www.ruby-forum.com/t/has-many-through-question/121998)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/has-many-through-question/121998 "2007-12-03T23:50:59Z")

</div>

Hi, I have a fairly typical has\_many, through setup with a bit of a twist. class Course \< ActiveRecord::Base has\_many :placements has\_many :students, :through =\> :placements end class Student \< ActiveRecord::Base h…

---

## [Generating html](https://www.ruby-forum.com/t/generating-html/121994)

<div class="topic-metadata">

**Author:** [@danb](https://www.ruby-forum.com/u/danb)\
**Replies:** 7\
**Last updated:** [December 3, 2007, 11:15pm UTC](https://www.ruby-forum.com/t/generating-html/121994 "2007-12-03T23:15:17Z")

</div>

How do you generate html outside of a view? I’m trying to use link\_to to generate html for a link. I’ve included ActionView, ActionView::Helpers, ActionView::Helpers::UrlHelper, and ERB::Util, but the system says I…

---

## [Suspicious route?](https://www.ruby-forum.com/t/suspicious-route/121981)

<div class="topic-metadata">

**Author:** [@george\_b](https://www.ruby-forum.com/u/george_b)\
**Replies:** 6\
**Last updated:** [December 3, 2007, 10:10pm UTC](https://www.ruby-forum.com/t/suspicious-route/121981 "2007-12-03T22:10:52Z")

</div>

I have a small site that I put up this weekend. To see any errors I have rescue\_action\_in\_public send me an email. This morning I received these errors: no route found to match “/\_vti\_inf.html” with {:method=\>:ge…

---

## [Why don't these routes work](https://www.ruby-forum.com/t/why-dont-these-routes-work/121975)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 3\
**Last updated:** [December 3, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/why-dont-these-routes-work/121975 "2007-12-03T21:29:04Z")

</div>

I have this in my routes.db, in its entirety map.resources :posts, :users map.connect ‘’, :controller =\> ‘posts’ map.connect ‘users/:page’, :controller =\> ‘users’, :action =\> ‘index’, :requirements =\> { :page =\> /\\…

---

## [\[ANN\] New podcast about Learning Rails](https://www.ruby-forum.com/t/ann-new-podcast-about-learning-rails/122014)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 0\
**Last updated:** [December 3, 2007, 9:22pm UTC](https://www.ruby-forum.com/t/ann-new-podcast-about-learning-rails/122014 "2007-12-03T21:22:03Z")

</div>

My colleague Christopher Haupt and I have put together a podcast to help bring new users to Ruby on Rails. We’re aiming at web designers and developers with limited programming experience and hope to teach them, over …

---

## [Deployment Problem](https://www.ruby-forum.com/t/deployment-problem/121942)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/deployment-problem/121942 "2007-12-03T20:57:47Z")

</div>

I’ve recently tried to get an application running on GoDaddy and after a few days gave up (their support team was very unhelpful). Anyhow, I changed hosting to Rails Playground. I now get a new error when running the …

---

## [How to fix routing error?](https://www.ruby-forum.com/t/how-to-fix-routing-error/122004)

<div class="topic-metadata">

**Author:** [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Replies:** 1\
**Last updated:** [December 3, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/how-to-fix-routing-error/122004 "2007-12-03T20:50:06Z")

</div>

Working through the Depot application in Agile (and having lots of fun). I’m on Iteration C3 - Handling Errors. I just added the flash to the add\_to\_cart method in the store controller. Then I try the faulty URL /stor…

---

## [Re: \[ANN\] walkthrough: Rails 2.0 startup process](https://www.ruby-forum.com/t/re-ann-walkthrough-rails-2-0-startup-process/121930)

<div class="topic-metadata">

**Author:** [@pratik](https://www.ruby-forum.com/u/pratik)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 8:42pm UTC](https://www.ruby-forum.com/t/re-ann-walkthrough-rails-2-0-startup-process/121930 "2007-12-03T20:42:28Z")

</div>

Umm…just one question, why are you porting engines to rails 2.0 ? From what I understand, engines are no longer needed as the same goals can be achieved using plugins. On Dec 2, 2007 5:26 PM, Sven F. removed\_email\_add…

---

## [The field capture does not exist error in a plugin](https://www.ruby-forum.com/t/the-field-capture-does-not-exist-error-in-a-plugin/121974)

<div class="topic-metadata">

**Author:** [@alan](https://www.ruby-forum.com/u/alan)\
**Replies:** 1\
**Last updated:** [December 3, 2007, 8:27pm UTC](https://www.ruby-forum.com/t/the-field-capture-does-not-exist-error-in-a-plugin/121974 "2007-12-03T20:27:25Z")

</div>

Hi all, I am writing a plugin with some view helpers. The helper method uses a class internally to define the behaviour, but I can’t use content\_tag with a block inside that class. This is the following code: module…

---

## [Migration problem](https://www.ruby-forum.com/t/migration-problem/122000)

<div class="topic-metadata">

**Author:** [@winslowly](https://www.ruby-forum.com/u/winslowly)\
**Replies:** 4\
**Last updated:** [December 3, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/migration-problem/122000 "2007-12-03T20:24:16Z")

</div>

I use the following steps to create a model and migrate. However when it comes running ‘rake db:migrate’ it gave me the following errors. I suspect it is due to the fact that I was trying to put everything about blog…

---

## [FreeBSD VPS hosting?](https://www.ruby-forum.com/t/freebsd-vps-hosting/122002)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [December 3, 2007, 8:23pm UTC](https://www.ruby-forum.com/t/freebsd-vps-hosting/122002 "2007-12-03T20:23:05Z")

</div>

Anyone know of any good VPS hosts that support BSD?

---

## [Best way to deal with a changed url?](https://www.ruby-forum.com/t/best-way-to-deal-with-a-changed-url/121901)

<div class="topic-metadata">

**Author:** [@idlefingers](https://www.ruby-forum.com/u/idlefingers)\
**Replies:** 3\
**Last updated:** [December 3, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/best-way-to-deal-with-a-changed-url/121901 "2007-12-03T20:12:24Z")

</div>

I have an app which lists events and uses slug generated from the event title for the url. Anyway, I noticed a couple of characters had been used in an event title which I’d forgotten to deal with and so amended my co…

---

## [Trouble implementing inline rjs](https://www.ruby-forum.com/t/trouble-implementing-inline-rjs/121993)

<div class="topic-metadata">

**Author:** [@dracos](https://www.ruby-forum.com/u/dracos)\
**Replies:** 9\
**Last updated:** [December 3, 2007, 7:51pm UTC](https://www.ruby-forum.com/t/trouble-implementing-inline-rjs/121993 "2007-12-03T19:51:08Z")

</div>

So I’m trying to re-factor some controller code with over 20 rjs templates (that all do the same thing, but for different methods). My original code is pretty straightforward. I just create an object then re-render a …

---

## [Resolving image URLs](https://www.ruby-forum.com/t/resolving-image-urls/121989)

<div class="topic-metadata">

**Author:** [@jnicholson](https://www.ruby-forum.com/u/jnicholson)\
**Replies:** 5\
**Last updated:** [December 3, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/resolving-image-urls/121989 "2007-12-03T19:38:25Z")

</div>

I’m trying to scrape images from a page. I’m using Hpricot to scrape the actual image URLs into an array but I’ve encountered a problem regarding resolving the full image paths. Example: The src of the images can be …

---

## [Can I render a page using a template of another controller](https://www.ruby-forum.com/t/can-i-render-a-page-using-a-template-of-another-controller/121995)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 2\
**Last updated:** [December 3, 2007, 7:18pm UTC](https://www.ruby-forum.com/t/can-i-render-a-page-using-a-template-of-another-controller/121995 "2007-12-03T19:18:45Z")

</div>

Hi, I think it should be simple but not working for me. class OneController \< ApplicationController def first render :controller =\> ‘two’, :action =\> ‘first’ end end I want it to render using “/two/first.html.erb”…

---

## [Depcryption and base64](https://www.ruby-forum.com/t/depcryption-and-base64/121990)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [December 3, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/depcryption-and-base64/121990 "2007-12-03T18:40:07Z")

</div>

Just wondering is anyone can explain this code to me: Base64.encode64(@key.send("#{key\_type}\_encrypt", text)) I have this code the encrypts some information. This part seems to work fine. I using some software on the …

---

## [Re: Slowdown after installing engines](https://www.ruby-forum.com/t/re-slowdown-after-installing-engines/121309)

<div class="topic-metadata">

**Author:** [@Trevor\_Rowe](https://www.ruby-forum.com/u/Trevor_Rowe)\
**Replies:** 1\
**Last updated:** [December 3, 2007, 6:28pm UTC](https://www.ruby-forum.com/t/re-slowdown-after-installing-engines/121309 "2007-12-03T18:28:58Z")

</div>

Or perhaps a hook that specifies which plugins to check in? Depending on the app one list could be much shorter than the other and getting engines to ignore plugins that should never be checked would be great imho. T…

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

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