# Rails

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

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

---

## [Text is being formatted oddly](https://www.ruby-forum.com/t/text-is-being-formatted-oddly/132714)

<div class="topic-metadata">

**Author:** [@sumwutdum](https://www.ruby-forum.com/u/sumwutdum)\
**Replies:** 1\
**Last updated:** [March 24, 2008, 12:27am UTC](https://www.ruby-forum.com/t/text-is-being-formatted-oddly/132714 "2008-03-24T00:27:53Z")

</div>

I have never had this problem in any previous projects, but for some reason all text\_area inputs that contain a new line result in a huge indent ex |Hello …

---

## [Radio buttons - how to identify record using value?](https://www.ruby-forum.com/t/radio-buttons-how-to-identify-record-using-value/132713)

<div class="topic-metadata">

**Author:** [@philip](https://www.ruby-forum.com/u/philip)\
**Replies:** 1\
**Last updated:** [March 23, 2008, 11:20pm UTC](https://www.ruby-forum.com/t/radio-buttons-how-to-identify-record-using-value/132713 "2008-03-23T23:20:34Z")

</div>

I’m making a simple questionnaire app using RoR. I’ve got a model for Questions, a model for Answers, and a third model, Qa, for matching each question to five possible answers through foreign keys. So, each qa has a …

---

## [Fascinating website](https://www.ruby-forum.com/t/fascinating-website/132712)

<div class="topic-metadata">

**Author:** [@Perky\_Perks](https://www.ruby-forum.com/u/Perky_Perks)\
**Replies:** 0\
**Last updated:** [March 23, 2008, 10:37pm UTC](https://www.ruby-forum.com/t/fascinating-website/132712 "2008-03-23T22:37:03Z")

</div>

http://jesusjewish.com Really interesting stuff.

---

## [Restful ajax in droppables](https://www.ruby-forum.com/t/restful-ajax-in-droppables/132691)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 1\
**Last updated:** [March 23, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/restful-ajax-in-droppables/132691 "2008-03-23T21:52:19Z")

</div>

How should i write a nice restful route for an ajax-call that adds a tag to a particular game. I have games, they can have (multiple) tags, and you can edit those in the admin\_area, for which i have written these reso…

---

## [Views: partials vs. cells](https://www.ruby-forum.com/t/views-partials-vs-cells/132705)

<div class="topic-metadata">

**Author:** [@SSKyrre\_NygSSSSrdSS](https://www.ruby-forum.com/u/SSKyrre_NygSSSSrdSS)\
**Replies:** 0\
**Last updated:** [March 23, 2008, 9:17pm UTC](https://www.ruby-forum.com/t/views-partials-vs-cells/132705 "2008-03-23T21:17:34Z")

</div>

Hello! Is it a wise choice to replace all my partials with cells? http://cells.rubyforge.org/rdoc/index.html Thanks, Kyrre

---

## [Locals do not appear in partial unless collection is explici](https://www.ruby-forum.com/t/locals-do-not-appear-in-partial-unless-collection-is-explici/132699)

<div class="topic-metadata">

**Author:** [@raven13](https://www.ruby-forum.com/u/raven13)\
**Replies:** 6\
**Last updated:** [March 23, 2008, 8:45pm UTC](https://www.ruby-forum.com/t/locals-do-not-appear-in-partial-unless-collection-is-explici/132699 "2008-03-23T20:45:44Z")

</div>

Maybe I’m misunderstanding something but it appears as if \<%= render :partial =\> @items, @locals =\> { :this =\> ‘that’ } %\> does not give the local variable this but this one does: \<%= render :partial =\> ‘items/item’, …

---

## [JS inserted inputs donâ€™t appear as parameters in controller](https://www.ruby-forum.com/t/js-inserted-inputs-dona-t-appear-as-parameters-in-controller/132702)

<div class="topic-metadata">

**Author:** [@adrie](https://www.ruby-forum.com/u/adrie)\
**Replies:** 0\
**Last updated:** [March 23, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/js-inserted-inputs-dona-t-appear-as-parameters-in-controller/132702 "2008-03-23T19:14:33Z")

</div>

Iâ€™ve read â€˜How to get dynamically created inputs from html form back to, Posted by David J. (Guest) on 03.06.2006 04:03â€™ but it doesnâ€™t seem to work for me. Iâ€™m using client-side javascript to add input tags…

---

## [RJS Trying to use Javascript variables](https://www.ruby-forum.com/t/rjs-trying-to-use-javascript-variables/132701)

<div class="topic-metadata">

**Author:** [@deadinplastic](https://www.ruby-forum.com/u/deadinplastic)\
**Replies:** 0\
**Last updated:** [March 23, 2008, 7:00pm UTC](https://www.ruby-forum.com/t/rjs-trying-to-use-javascript-variables/132701 "2008-03-23T19:00:55Z")

</div>

I’m having problem. I have music CD, which can have many tracks. When adding new CD, there are 5 empty track rows to write in, but there is button MORE TRACKS, which adds more tracks where to write. page.insert\_html …

---

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

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 9\
**Last updated:** [March 23, 2008, 6:05pm UTC](https://www.ruby-forum.com/t/has-many-through-model/132642 "2008-03-23T18:05:59Z")

</div>

Hi, I wonder if anyone know how I can make these relations work, I’m getting error on relationship. Is it because I’m not doing it the rails way? Is it a MUST to have “layout\_id” and “snippet\_id” in the join table (…

---

## [Sessions](https://www.ruby-forum.com/t/sessions/132684)

<div class="topic-metadata">

**Author:** [@advait](https://www.ruby-forum.com/u/advait)\
**Replies:** 1\
**Last updated:** [March 23, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/sessions/132684 "2008-03-23T15:48:21Z")

</div>

Hi, How to make use of sessions for a save button. I am making use of the save button in the following way. I want to make use of sessions inside this save button because once, it saves the dialog it should return …

---

## [Committing a record update to the DB from a test](https://www.ruby-forum.com/t/committing-a-record-update-to-the-db-from-a-test/132685)

<div class="topic-metadata">

**Author:** [@RaniOnRails](https://www.ruby-forum.com/u/RaniOnRails)\
**Replies:** 0\
**Last updated:** [March 23, 2008, 2:22pm UTC](https://www.ruby-forum.com/t/committing-a-record-update-to-the-db-from-a-test/132685 "2008-03-23T14:22:15Z")

</div>

Hi all, I hope someone can help me with this. I’m trying to write a test to see if my versioning (acts\_as\_versioned) works. In order to do that, I have a class which inherits from ActiveRecord: class Order \< ActiveRe…

---

## [Named route not working -- input hash completely ignored](https://www.ruby-forum.com/t/named-route-not-working-input-hash-completely-ignored/132673)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 4\
**Last updated:** [March 23, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/named-route-not-working-input-hash-completely-ignored/132673 "2008-03-23T14:09:19Z")

</div>

I have been reading that you can pass a parameters hash to a named route: You can get \<%= link\_to "help!", assist\_path(:action =\> "membership") %\> You can get help! Now, for me, I have the following named route: th…

---

## [Where does this IP come from in the log](https://www.ruby-forum.com/t/where-does-this-ip-come-from-in-the-log/132668)

<div class="topic-metadata">

**Author:** [@atlantageek](https://www.ruby-forum.com/u/atlantageek)\
**Replies:** 4\
**Last updated:** [March 23, 2008, 11:30am UTC](https://www.ruby-forum.com/t/where-does-this-ip-come-from-in-the-log/132668 "2008-03-23T11:30:01Z")

</div>

On the rails production log I am getting this in the log file Processing LivetraceController#index (for 127.0.0.1 at 2008-03-22 15:46:17) \[GET\] Session ID: 385c4a0d728002966e9728f2c1a07eea Parameters: {“action”=\>“in…

---

## [Beginner Problem](https://www.ruby-forum.com/t/beginner-problem/132676)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 2\
**Last updated:** [March 23, 2008, 10:37am UTC](https://www.ruby-forum.com/t/beginner-problem/132676 "2008-03-23T10:37:23Z")

</div>

Hello, I am having trouble getting the scaffold :product command. Any ideas? The web page reads, NoMethodError in AdminController#index undefined method \`scaffold’ for AdminController:Class RAILS\_ROOT: C:/InstantRai…

---

## [Rmagick](https://www.ruby-forum.com/t/rmagick/132633)

<div class="topic-metadata">

**Author:** [@subhadip](https://www.ruby-forum.com/u/subhadip)\
**Replies:** 3\
**Last updated:** [March 23, 2008, 9:24am UTC](https://www.ruby-forum.com/t/rmagick/132633 "2008-03-23T09:24:27Z")

</div>

hey i am now using gruff for showing graph… when i run the program,it will show an error: no such file to load – RMagick…then i am trying to install RMagick,by the command gem install rmagick,but this command also no…

---

## [Help me.i hava a problem with lightttpd when i use it run my railsapp](https://www.ruby-forum.com/t/help-me-i-hava-a-problem-with-lightttpd-when-i-use-it-run-my-railsapp/132624)

<div class="topic-metadata">

**Author:** [@SS\_SSSSS\_SSSSSSSSSS](https://www.ruby-forum.com/u/SS_SSSSS_SSSSSSSSSS)\
**Replies:** 1\
**Last updated:** [March 23, 2008, 9:13am UTC](https://www.ruby-forum.com/t/help-me-i-hava-a-problem-with-lightttpd-when-i-use-it-run-my-railsapp/132624 "2008-03-23T09:13:19Z")

</div>

help me.i hava a problem with lightttpd when i use it run my railsapp .in my rails project hava some .flv. when i use mongrel the .flv file can be play very fast .but when i deployment, then the .flv file can not play…

---

## [Custom finder method & arguments](https://www.ruby-forum.com/t/custom-finder-method-arguments/132681)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 0\
**Last updated:** [March 23, 2008, 7:31am UTC](https://www.ruby-forum.com/t/custom-finder-method-arguments/132681 "2008-03-23T07:31:43Z")

</div>

I’m wondering if it’s possible to pass an argument to a custom finder method when working with cache\_fu. The excellent “Advanced Rails Recipes” book has the following example: The custom finder method in the model wa…

---

## [Is it possible to run just one migration](https://www.ruby-forum.com/t/is-it-possible-to-run-just-one-migration/132587)

<div class="topic-metadata">

**Author:** [@subbu](https://www.ruby-forum.com/u/subbu)\
**Replies:** 7\
**Last updated:** [March 23, 2008, 7:00am UTC](https://www.ruby-forum.com/t/is-it-possible-to-run-just-one-migration/132587 "2008-03-23T07:00:17Z")

</div>

I have modified an existing migration and I like to update the db with that. But the problem is I’ll to run all the migrations in order for this change to take affect. That means I’ll also loose all my data. Is it pos…

---

## [Svn bindings error on 1.8.6](https://www.ruby-forum.com/t/svn-bindings-error-on-1-8-6/132532)

<div class="topic-metadata">

**Author:** [@twostepted](https://www.ruby-forum.com/u/twostepted)\
**Replies:** 1\
**Last updated:** [March 23, 2008, 6:25am UTC](https://www.ruby-forum.com/t/svn-bindings-error-on-1-8-6/132532 "2008-03-23T06:25:09Z")

</div>

When calling Svn::Repos.create() and Svn::Repos.open(), I keep getting this error. I’m convinced that i’m using the correct path to the repository. I’m calling Svn::Repos.open() with a single argument, the full path…

---

## [Hello, what is mongrel\_cluster?](https://www.ruby-forum.com/t/hello-what-is-mongrel-cluster/132654)

<div class="topic-metadata">

**Author:** [@SS\_SSSSS\_SSSSSSSSSS](https://www.ruby-forum.com/u/SS_SSSSS_SSSSSSSSSS)\
**Replies:** 2\
**Last updated:** [March 23, 2008, 6:03am UTC](https://www.ruby-forum.com/t/hello-what-is-mongrel-cluster/132654 "2008-03-23T06:03:29Z")

</div>

hello, what is mongrel\_cluster?how to use it with mongrel???

---

## [How do you set the DOMESTIC key?](https://www.ruby-forum.com/t/how-do-you-set-the-domestic-key/132679)

<div class="topic-metadata">

**Author:** [@David\_H\_Dennis](https://www.ruby-forum.com/u/David_H_Dennis)\
**Replies:** 1\
**Last updated:** [March 23, 2008, 5:59am UTC](https://www.ruby-forum.com/t/how-do-you-set-the-domestic-key/132679 "2008-03-23T05:59:21Z")

</div>

The foreign key is the key to use in the OTHER table, usually called ID. The domestic key (my name; I don’t know the right formal term) is the key to use in the calling table, usually called nameofothertable\_id , i.…

---

## [Error in gem install mysql](https://www.ruby-forum.com/t/error-in-gem-install-mysql/132629)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 2\
**Last updated:** [March 23, 2008, 5:55am UTC](https://www.ruby-forum.com/t/error-in-gem-install-mysql/132629 "2008-03-23T05:55:56Z")

</div>

fax@ubuntu7.04:~/Desktop/Rails\_2/blog$ sudo gem install mysql Password: Updating metadata for 434 gems from http://gems.rubyforge.org … complete Building native extensions. This could take a while… ERROR: Error i…

---

## [Rails powered by GlassFish Application Server](https://www.ruby-forum.com/t/rails-powered-by-glassfish-application-server/132677)

<div class="topic-metadata">

**Author:** [@arun](https://www.ruby-forum.com/u/arun)\
**Replies:** 0\
**Last updated:** [March 23, 2008, 4:53am UTC](https://www.ruby-forum.com/t/rails-powered-by-glassfish-application-server/132677 "2008-03-23T04:53:45Z")

</div>

A new article is published highlighting the advantages of JRuby deployment on GlassFish. Please read details at: http://blogs.sun.com/arungupta/entry/rails\_powered\_by\_the\_glassfish Thanks, -Arun

---

## [Object creation when the controller is a subclass of AdminController](https://www.ruby-forum.com/t/object-creation-when-the-controller-is-a-subclass-of-admincontroller/132671)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 1\
**Last updated:** [March 23, 2008, 3:10am UTC](https://www.ruby-forum.com/t/object-creation-when-the-controller-is-a-subclass-of-admincontroller/132671 "2008-03-23T03:10:37Z")

</div>

I’ve finally determined that the best way to handle administration of a model that displays publicly but is administered privately is through subclassing but I’ve run in to pathing issues (I think) when trying to crea…

---

## [Mongrel steals my requests for my subversion repo](https://www.ruby-forum.com/t/mongrel-steals-my-requests-for-my-subversion-repo/132536)

<div class="topic-metadata">

**Author:** [@tbobker](https://www.ruby-forum.com/u/tbobker)\
**Replies:** 2\
**Last updated:** [March 23, 2008, 1:22am UTC](https://www.ruby-forum.com/t/mongrel-steals-my-requests-for-my-subversion-repo/132536 "2008-03-23T01:22:20Z")

</div>

the kind folks on irc have tried to solve this for awhile and we have gotten very close to the problem. My config file for apache is working, except mongrel tries to interpret my request (myserver.com/svn) as a reques…

---

## [How do I find all entries, except the newest entry, created?](https://www.ruby-forum.com/t/how-do-i-find-all-entries-except-the-newest-entry-created/132665)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 2\
**Last updated:** [March 22, 2008, 11:14pm UTC](https://www.ruby-forum.com/t/how-do-i-find-all-entries-except-the-newest-entry-created/132665 "2008-03-22T23:14:28Z")

</div>

I’m looking to do a Post.find(:all) – finding all entries but the newest one created. Maybe something in this format, although I’m not sure: Post.find(:all, :order =\> “created\_at DESC”, :conditions =\> “EXCLUDE NEWEST…

---

## [Adding a new class](https://www.ruby-forum.com/t/adding-a-new-class/132669)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 3\
**Last updated:** [March 22, 2008, 11:12pm UTC](https://www.ruby-forum.com/t/adding-a-new-class/132669 "2008-03-22T23:12:42Z")

</div>

If I want to add a class so I can create instances of that class in a controller, where do I put the code to create the class? There. I said it. It’s embarrassing to admit that I don’t know the answer to that questi…

---

## [Patch for Engines 2.0 warbler support](https://www.ruby-forum.com/t/patch-for-engines-2-0-warbler-support/132407)

<div class="topic-metadata">

**Author:** [@Nat\_B](https://www.ruby-forum.com/u/Nat_B)\
**Replies:** 1\
**Last updated:** [March 22, 2008, 11:11pm UTC](https://www.ruby-forum.com/t/patch-for-engines-2-0-warbler-support/132407 "2008-03-22T23:11:31Z")

</div>

Hi, I’ve recently been playing with deploying a Rails 2.0 application on a Java application server using warbler. The application uses the beta version of Engines 2.0, and I discovered that the combination resulted i…

---

## [Accessing object in params hash](https://www.ruby-forum.com/t/accessing-object-in-params-hash/132667)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 2\
**Last updated:** [March 22, 2008, 10:20pm UTC](https://www.ruby-forum.com/t/accessing-object-in-params-hash/132667 "2008-03-22T22:20:57Z")

</div>

Hi there, I am going batty with this problem and was hoping someone could help me out. I have a restaurant object that can have many boundaries (these are kept in a separate table and consist of a lat and long attribu…

---

## [Boolean with default value to false is nil](https://www.ruby-forum.com/t/boolean-with-default-value-to-false-is-nil/132490)

<div class="topic-metadata">

**Author:** [@fcano](https://www.ruby-forum.com/u/fcano)\
**Replies:** 3\
**Last updated:** [March 22, 2008, 9:41pm UTC](https://www.ruby-forum.com/t/boolean-with-default-value-to-false-is-nil/132490 "2008-03-22T21:41:45Z")

</div>

Hi! I have a migration that creates to boolean variables and set their default value to false. In a test I create an instance of this class but this variables are not explicitly indicated so I though they should be s…

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

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