# Rails

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

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

---

## [Actions and controllers question](https://www.ruby-forum.com/t/actions-and-controllers-question/91111)

<div class="topic-metadata">

**Author:** [@nubyonrails37](https://www.ruby-forum.com/u/nubyonrails37)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 8:40pm UTC](https://www.ruby-forum.com/t/actions-and-controllers-question/91111 "2007-04-04T20:40:53Z")

</div>

\----- NOOB ALERT ----- When an action is called within a single controller – see below – how do i hop to another controller, say to add a link that I want the user to be able to click to edit or view another table? c…

---

## [Best approach for dynamic table display](https://www.ruby-forum.com/t/best-approach-for-dynamic-table-display/91090)

<div class="topic-metadata">

**Author:** [@oliver](https://www.ruby-forum.com/u/oliver)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 8:37pm UTC](https://www.ruby-forum.com/t/best-approach-for-dynamic-table-display/91090 "2007-04-04T20:37:52Z")

</div>

hi, folks - Suppose I have a stream of data coming in periodically, what would be best way of displaying a table with dynamic update? Are there any “rails way” of doing this? thanks in advance, Oliver

---

## [Database and migration question](https://www.ruby-forum.com/t/database-and-migration-question/91105)

<div class="topic-metadata">

**Author:** [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Replies:** 1\
**Last updated:** [April 4, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/database-and-migration-question/91105 "2007-04-04T20:31:33Z")

</div>

I have a problem with a project I am working on. What I would like to know is, is there a way to create a field in a database dynamically after an action from a user is done. Such that the user can create a field on t…

---

## [Attribute\_names and/or values?](https://www.ruby-forum.com/t/attribute-names-and-or-values/91050)

<div class="topic-metadata">

**Author:** [@Bryce](https://www.ruby-forum.com/u/Bryce)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 8:05pm UTC](https://www.ruby-forum.com/t/attribute-names-and-or-values/91050 "2007-04-04T20:05:50Z")

</div>

Hi rubyists, I’m clunking around with this problem. I want to return an array of values from each record in my database table. I have this so far: @t = Table.find(:all) @t.each do |k| k.attributes end the method …

---

## [How to use two databases within one model](https://www.ruby-forum.com/t/how-to-use-two-databases-within-one-model/90463)

<div class="topic-metadata">

**Author:** [@sebastian](https://www.ruby-forum.com/u/sebastian)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 7:47pm UTC](https://www.ruby-forum.com/t/how-to-use-two-databases-within-one-model/90463 "2007-04-04T19:47:33Z")

</div>

For an online shop I will have to work with a legacy data base for some of the models. Furthermore, within my application those models will need additional attributes that I will have to save in my own database. I wa…

---

## [Rjs problems](https://www.ruby-forum.com/t/rjs-problems/91101)

<div class="topic-metadata">

**Author:** [@dgm](https://www.ruby-forum.com/u/dgm)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 7:11pm UTC](https://www.ruby-forum.com/t/rjs-problems/91101 "2007-04-04T19:11:06Z")

</div>

im trying to have a rjs template update several elements… i want to fade out 3 or 4 elements, replace them, and then have them reappear, but its not updating correctly. Right now the transitions are choppy and don;t w…

---

## [Understanding routes.rb](https://www.ruby-forum.com/t/understanding-routes-rb/91063)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 6:34pm UTC](https://www.ruby-forum.com/t/understanding-routes-rb/91063 "2007-04-04T18:34:35Z")

</div>

Hi, I am very new to ruby and rails…but I am trying to get the LoginGenerator up and running as quick test, but I have run into the following problem: Routing Error no route found to match “/p/arash2/myapp/” with {:…

---

## [Browser Determination](https://www.ruby-forum.com/t/browser-determination/91047)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/browser-determination/91047 "2007-04-04T18:26:33Z")

</div>

Can someone please point me to where I can find the party-line on determining the user’s browser in order to write browser-dependent code? With Rails doing so many things for me, I want to avoid getting caught up in …

---

## [Mac osx and linux same work environment? for example can i](https://www.ruby-forum.com/t/mac-osx-and-linux-same-work-environment-for-example-can-i/91097)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 1\
**Last updated:** [April 4, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/mac-osx-and-linux-same-work-environment-for-example-can-i/91097 "2007-04-04T18:24:32Z")

</div>

copy my working rails app from my mac environment to my linux work environment and have it work without any problems? i am thinking of buying a small linux handtop and would basically like to carry what i have on my m…

---

## [Difference between Background DRb and AJAX](https://www.ruby-forum.com/t/difference-between-background-drb-and-ajax/91095)

<div class="topic-metadata">

**Author:** [@joergd](https://www.ruby-forum.com/u/joergd)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 6:21pm UTC](https://www.ruby-forum.com/t/difference-between-background-drb-and-ajax/91095 "2007-04-04T18:21:51Z")

</div>

Hi, I need a user to initiate a long running task … say five minutes. And I want the user to wait for a response before doing anything else. The way I see it, using a straight HTTP POST is gonna time out. So, I could…

---

## [Do I need more than one mongrel?](https://www.ruby-forum.com/t/do-i-need-more-than-one-mongrel/91096)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 3\
**Last updated:** [April 4, 2007, 6:17pm UTC](https://www.ruby-forum.com/t/do-i-need-more-than-one-mongrel/91096 "2007-04-04T18:17:44Z")

</div>

Rookie here. I have a small site servicing only \< 100 people with hits concentrated ~4 days per month. Do I need a mongrel cluster or will one mongrel be enough? Is it worth the hassel in a small site? My VPS has …

---

## [Gruff & legend problems](https://www.ruby-forum.com/t/gruff-legend-problems/91010)

<div class="topic-metadata">

**Author:** [@Pierre-Alexandre\_M](https://www.ruby-forum.com/u/Pierre-Alexandre_M)\
**Replies:** 4\
**Last updated:** [April 4, 2007, 5:52pm UTC](https://www.ruby-forum.com/t/gruff-legend-problems/91010 "2007-04-04T17:52:27Z")

</div>

Hi, I have some problems with Gruff & legends. How do you handle many datas? When you have to many labels, the list doesn’t fit in the image. Looking at the source code, the draw\_legend() just calculate the width of …

---

## [Observe\_field radio](https://www.ruby-forum.com/t/observe-field-radio/91094)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 1\
**Last updated:** [April 4, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/observe-field-radio/91094 "2007-04-04T17:18:25Z")

</div>

Hello, I’m having trouble with observe\_field and radio buttons. The issue is the observe\_field action only fires the first time, subsequent clicks on radio buttons do nothing. I’ve seen others post on this issue, bu…

---

## [Call specific model validators from controllers](https://www.ruby-forum.com/t/call-specific-model-validators-from-controllers/91088)

<div class="topic-metadata">

**Author:** [@RJRJRJ](https://www.ruby-forum.com/u/RJRJRJ)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 5:04pm UTC](https://www.ruby-forum.com/t/call-specific-model-validators-from-controllers/91088 "2007-04-04T17:04:25Z")

</div>

Here is the scenario. Standard web form that maps directly onto a model (Lets say “user” model). I want to add ajax validation so that when the user exits each field a little request is fired off, the field is valida…

---

## [Form\_remote\_tag and form parameters problem in edge](https://www.ruby-forum.com/t/form-remote-tag-and-form-parameters-problem-in-edge/91087)

<div class="topic-metadata">

**Author:** [@Tarsoly\_AndrSSSSs](https://www.ruby-forum.com/u/Tarsoly_AndrSSSSs)\
**Replies:** 1\
**Last updated:** [April 4, 2007, 4:56pm UTC](https://www.ruby-forum.com/t/form-remote-tag-and-form-parameters-problem-in-edge/91087 "2007-04-04T16:56:22Z")

</div>

Hi guys, anybody encountered such a problem that \<% form\_remote\_tag … %\> doesn’t send the data present in the form on submit? Let me explain: I have Products and the products have Properties. routes.rb map.resources…

---

## [Error in rails application](https://www.ruby-forum.com/t/error-in-rails-application/91089)

<div class="topic-metadata">

**Author:** [@Rails\_junkie](https://www.ruby-forum.com/u/Rails_junkie)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/error-in-rails-application/91089 "2007-04-04T16:55:22Z")

</div>

I get this strange error on almost all pges of my app. It happens ramdomly . any ideas? In this case. i got it in feedAccess but any page would give the exact same error. compile error ./script/…/config/…/app/views/…

---

## [Why use image\_tag helper and not \<img\> tag](https://www.ruby-forum.com/t/why-use-image-tag-helper-and-not-img-tag/91086)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [April 4, 2007, 4:40pm UTC](https://www.ruby-forum.com/t/why-use-image-tag-helper-and-not-img-tag/91086 "2007-04-04T16:40:19Z")

</div>

Hi, I was just wondering what the advantage is to using the image\_tag helper over the standard html tag? Also the helper seems to place a load of random numbers on the end, eg ‘?63565665’ why does it do this and wha…

---

## [Conditions array results in undefined](https://www.ruby-forum.com/t/conditions-array-results-in-undefined/91039)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/conditions-array-results-in-undefined/91039 "2007-04-04T16:14:15Z")

</div>

Hi! I’m having another small problem. I run a small query to get all the group\_id’s that are associated with a user. I then take that and run it in another query in order to display the relevant data/group ID the u…

---

## [\[Markaby\] yield instead of @content\_for\_layout?](https://www.ruby-forum.com/t/markaby-yield-instead-of-content-for-layout/101975)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 3:57pm UTC](https://www.ruby-forum.com/t/markaby-yield-instead-of-content-for-layout/101975 "2007-04-04T15:57:11Z")

</div>

We’re supposed to use yield instead of @content\_for\_layout, but I can’t get yield to work in a Markaby template: yield text yield Either one of these lines results in a ‘no block given’ error (but ‘text @content\_for…

---

## [Render a Drop Down](https://www.ruby-forum.com/t/render-a-drop-down/91078)

<div class="topic-metadata">

**Author:** [@hazmatt](https://www.ruby-forum.com/u/hazmatt)\
**Replies:** 1\
**Last updated:** [April 4, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/render-a-drop-down/91078 "2007-04-04T15:51:09Z")

</div>

Hey all, I was just wondering how I would render the following dropdown. Contact Model def full\_name self.Firstname + ’ ’ + self.Lastname end Inside the view I would like to produce a DropDown list that will have …

---

## [Lazy loading of scriptaculous](https://www.ruby-forum.com/t/lazy-loading-of-scriptaculous/91076)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/lazy-loading-of-scriptaculous/91076 "2007-04-04T15:24:58Z")

</div>

Hi \*, both scriptaculous and prototype are quite big, and I don’t use all the goodness inside there, including :defaults is a bit too much for me. Someone knows of a way to dynamically load what’s effectively used in…

---

## [Replacing ERB with Erubis](https://www.ruby-forum.com/t/replacing-erb-with-erubis/90973)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 4\
**Last updated:** [April 4, 2007, 3:18pm UTC](https://www.ruby-forum.com/t/replacing-erb-with-erubis/90973 "2007-04-04T15:18:56Z")

</div>

Hey guys, I’ve been hearing a lot about erubis: http://www.kuwata-lab.com/erubis/ Especially about how much faster it is than straight ERB. In their Ruby on Rails support docs: http://www.kuwata-lab.com/erubis/users-…

---

## [Acts\_as\_versioned with acts\_as\_paranoid not creating new ver](https://www.ruby-forum.com/t/acts-as-versioned-with-acts-as-paranoid-not-creating-new-ver/91082)

<div class="topic-metadata">

**Author:** [@schmitr3](https://www.ruby-forum.com/u/schmitr3)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 3:02pm UTC](https://www.ruby-forum.com/t/acts-as-versioned-with-acts-as-paranoid-not-creating-new-ver/91082 "2007-04-04T15:02:12Z")

</div>

Hi, A quick question, when using acts\_as\_paranoid with acts\_as\_versioned, destroying the model (i.e. updating the deleted\_at field) doesn’t create a new version. Are there any workarounds for this - I presume it is b…

---

## [In\_place\_editor on Rails 1.2.1 seems to be broken](https://www.ruby-forum.com/t/in-place-editor-on-rails-1-2-1-seems-to-be-broken/84320)

<div class="topic-metadata">

**Author:** [@Rolando\_Lora](https://www.ruby-forum.com/u/Rolando_Lora)\
**Replies:** 1\
**Last updated:** [April 4, 2007, 1:46pm UTC](https://www.ruby-forum.com/t/in-place-editor-on-rails-1-2-1-seems-to-be-broken/84320 "2007-04-04T13:46:26Z")

</div>

The upgrade to the last version of rails (1.2.1) and prototype (1.5.0) seems to introduce a bug in the "in\_place\_editor’. Below a piece of code from an application that was on production: === VIEW === \<%= in\_place\_ed…

---

## [Norwegian users: New norwegian Ruby on Rails forum](https://www.ruby-forum.com/t/norwegian-users-new-norwegian-ruby-on-rails-forum/91079)

<div class="topic-metadata">

**Author:** [@thomma](https://www.ruby-forum.com/u/thomma)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 1:21pm UTC](https://www.ruby-forum.com/t/norwegian-users-new-norwegian-ruby-on-rails-forum/91079 "2007-04-04T13:21:18Z")

</div>

Hi I’ve put up a new Ruby on Rails forum at www.railsforum.no Check it out and contribute with questions and answes Peace out thomma www.railsforum.no

---

## [Bytes, strings and encodings](https://www.ruby-forum.com/t/bytes-strings-and-encodings/90627)

<div class="topic-metadata">

**Author:** [@mare](https://www.ruby-forum.com/u/mare)\
**Replies:** 5\
**Last updated:** [April 4, 2007, 11:25am UTC](https://www.ruby-forum.com/t/bytes-strings-and-encodings/90627 "2007-04-04T11:25:54Z")

</div>

Hi all I’m creating a Ruby client for some web service and need to send a file to that service. Since I’m a newbie, I have problems translating this Java code into Ruby: byte\[\] origFile = FileUtils.readFileToByteArra…

---

## [Tips on troubleshooting Rails?](https://www.ruby-forum.com/t/tips-on-troubleshooting-rails/90894)

<div class="topic-metadata">

**Author:** [@marko](https://www.ruby-forum.com/u/marko)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 10:13am UTC](https://www.ruby-forum.com/t/tips-on-troubleshooting-rails/90894 "2007-04-04T10:13:46Z")

</div>

We have an application that worked fine with a previous version of Rails (1.1.6). We recently upgraded to ver 1.2.2, and the controller handling the XML data stopped working. It seems to crop the data, and now we ca…

---

## [Change From headers in ActionMailer](https://www.ruby-forum.com/t/change-from-headers-in-actionmailer/91016)

<div class="topic-metadata">

**Author:** [@Jermaine](https://www.ruby-forum.com/u/Jermaine)\
**Replies:** 1\
**Last updated:** [April 4, 2007, 9:59am UTC](https://www.ruby-forum.com/t/change-from-headers-in-actionmailer/91016 "2007-04-04T09:59:09Z")

</div>

Hi All, Is there a way to change the “From” mail header in ActionMailer? Here’s how my simple ActionMailer class look like: class Notifier \< ActionMailer::Base def contact\_notification(person, email, message) recipi…

---

## [\[PLUGIN\] ArPaginator - Allows you to easily paginate over an](https://www.ruby-forum.com/t/plugin-arpaginator-allows-you-to-easily-paginate-over-an/91064)

<div class="topic-metadata">

**Author:** [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Replies:** 2\
**Last updated:** [April 4, 2007, 9:53am UTC](https://www.ruby-forum.com/t/plugin-arpaginator-allows-you-to-easily-paginate-over-an/91064 "2007-04-04T09:53:45Z")

</div>

The built-in Rails pagination is fairly limited…you pass in the model name, and optionally some conditions, and it generates a paginated query for you. This gets to be very bad if you’ve got any custom queries. class…

---

## [Error occurred while evaluating nil.accepts](https://www.ruby-forum.com/t/error-occurred-while-evaluating-nil-accepts/91066)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 0\
**Last updated:** [April 4, 2007, 9:34am UTC](https://www.ruby-forum.com/t/error-occurred-while-evaluating-nil-accepts/91066 "2007-04-04T09:34:28Z")

</div>

I have an index method with a respond\_to block that produces this error: NoMethodError (You have a nil object when you didn’t expect it! The error occurred while evaluating nil.accepts): The show method has the same …

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

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