# Rails

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

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

---

## [Getting Username, Password and DB Being Presently Used](https://www.ruby-forum.com/t/getting-username-password-and-db-being-presently-used/105317)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/getting-username-password-and-db-being-presently-used/105317 "2007-09-25T23:04:25Z")

</div>

What is the easiest way to get the present username, password and db name being used? Is this info being stored in an object? I want the information to run a mysql command to export data onto server using system("') …

---

## [Disabled layouts?](https://www.ruby-forum.com/t/disabled-layouts/114697)

<div class="topic-metadata">

**Author:** [@pgega](https://www.ruby-forum.com/u/pgega)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/disabled-layouts/114697 "2007-09-25T23:04:21Z")

</div>

Hello, Using layouts in very simple, but my applications seems to do not care about layouts at all. If I put the code… class IndexController \< AppplicationController layout ‘mylayout’ def index end def list end …

---

## [Cant start from InstantRails suddenly](https://www.ruby-forum.com/t/cant-start-from-instantrails-suddenly/114473)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/cant-start-from-instantrails-suddenly/114473 "2007-09-25T23:04:19Z")

</div>

I’m using InstantRails on WinXP and suddenly when I attempt to start with Mongrel, I get a windows cmd window that opens, flashes some trace or err msgs, and then closes before I can see what it said perhaps if I co…

---

## [Passing foreign key when creating new child record](https://www.ruby-forum.com/t/passing-foreign-key-when-creating-new-child-record/114686)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/passing-foreign-key-when-creating-new-child-record/114686 "2007-09-25T23:04:16Z")

</div>

What would be considered the “standard” way of setting the foreign key on a child record when starting from a view of the parent record? E.g. you’re on a view to a person record and use a link\_to load a form that will…

---

## [Engines And Controller Modules](https://www.ruby-forum.com/t/engines-and-controller-modules/104020)

<div class="topic-metadata">

**Author:** [@soabirw](https://www.ruby-forum.com/u/soabirw)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/engines-and-controller-modules/104020 "2007-09-25T23:04:08Z")

</div>

I’ve been using engines over the weekend and have been very pleased with my smaller test apps. But I’m now trying a more complex app and running into some issues. This app uses the controller modules, I.E. class Adm…

---

## [AJAX ok, but when JavaScript is disable](https://www.ruby-forum.com/t/ajax-ok-but-when-javascript-is-disable/114542)

<div class="topic-metadata">

**Author:** [@alabama](https://www.ruby-forum.com/u/alabama)\
**Replies:** 10\
**Last updated:** [September 25, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/ajax-ok-but-when-javascript-is-disable/114542 "2007-09-25T23:04:04Z")

</div>

Hi! Situation: I have a form\_remote\_tag which is anded with submit\_tag. There is a table with a number of rows inside. Action in this form updates all lines. In row, the right most cell contains a link\_to\_remote ‘De…

---

## [Installation problems](https://www.ruby-forum.com/t/installation-problems/59247)

<div class="topic-metadata">

**Author:** [@njohnson](https://www.ruby-forum.com/u/njohnson)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/installation-problems/59247 "2007-09-25T23:03:58Z")

</div>

Complete newbite to ROR. I have installed Ruby, RubyGems, & Rails according to the information at the following url: http://xmlareas.com/ruby-rails-howto.html on a copy of Fedora Core 4. If I run the gem list command…

---

## [Embedding a wiki/wiki functionality](https://www.ruby-forum.com/t/embedding-a-wiki-wiki-functionality/114707)

<div class="topic-metadata">

**Author:** [@bnab](https://www.ruby-forum.com/u/bnab)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/embedding-a-wiki-wiki-functionality/114707 "2007-09-25T23:03:53Z")

</div>

I’d like to be able to embed wiki-ish functionality in my rails app. It’s a very loose idea at this point, without much for requirements, other than: I’d like the same view template to be able to display standard mo…

---

## [Concurrency issue](https://www.ruby-forum.com/t/concurrency-issue/104165)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/concurrency-issue/104165 "2007-09-25T23:03:53Z")

</div>

Hi, On my site, if a lot of people place orders at the same time, the available quantity left in stock for a product seems to get wrong every so often. Here’s my execute\_purchase method, which is a before\_filter on t…

---

## [Ruby On Rails - Up and Running](https://www.ruby-forum.com/t/ruby-on-rails-up-and-running/110163)

<div class="topic-metadata">

**Author:** [@Davi](https://www.ruby-forum.com/u/Davi)\
**Replies:** 8\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-up-and-running/110163 "2007-09-25T23:03:52Z")

</div>

Hi everybody! What do you think about this book? Do you recommend me to buy it to start in Ruby On Rails programming? Do you recommend it for Reference Guide? I’ve a serious problem with on line references… I can’t f…

---

## [Activerecord thread safey outside of rails](https://www.ruby-forum.com/t/activerecord-thread-safey-outside-of-rails/109602)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/activerecord-thread-safey-outside-of-rails/109602 "2007-09-25T23:03:31Z")

</div>

Hoping someone could confirm a couple of things for me. I’m playing with activerecord/activerecord-jdbc inside jruby threads with allow\_concurrency set to true. It’s creating a new connection for each thread and appe…

---

## [Mongrel startup](https://www.ruby-forum.com/t/mongrel-startup/84762)

<div class="topic-metadata">

**Author:** [@jcontonio](https://www.ruby-forum.com/u/jcontonio)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/mongrel-startup/84762 "2007-09-25T23:03:31Z")

</div>

Hello. I have mongrel working perfectly, other than it doesn’t start when my server reboots (not good). So my setup is this. I have the mongrel\_cluster startup file in /usr/local/etc/rc.d/ and then a directory of sym…

---

## [Help me! ... Problem with associations,](https://www.ruby-forum.com/t/help-me-problem-with-associations/89859)

<div class="topic-metadata">

**Author:** [@askme](https://www.ruby-forum.com/u/askme)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/help-me-problem-with-associations/89859 "2007-09-25T23:03:30Z")

</div>

Hi there, I’ve three tables: release, branch and platform defined as follows: release (id) branch (id, release\_id) platform (id) Associations: Each branch belongs to zero or more platforms Each platform has zero or…

---

## [Block usage of content\_tag](https://www.ruby-forum.com/t/block-usage-of-content-tag/109941)

<div class="topic-metadata">

**Author:** [@jub](https://www.ruby-forum.com/u/jub)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/block-usage-of-content-tag/109941 "2007-09-25T23:03:10Z")

</div>

Hi there, I’m learning basics with Agile Web D. with Rails, and encountered this piece of code : module StoreHelper def hidden\_div\_if(condition, attributes = {}, &block) if condition attributes\[“style” \] = “display…

---

## [Sorting different objects](https://www.ruby-forum.com/t/sorting-different-objects/114669)

<div class="topic-metadata">

**Author:** [@Iain\_A](https://www.ruby-forum.com/u/Iain_A)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/sorting-different-objects/114669 "2007-09-25T23:03:10Z")

</div>

hi I have an array of topics and posts each has an updated\_on field. I want to sort the array so in the order of the updated\_on field. I.e 1 Topic updated on 5 march 2 Poll updated on 4 march 3 Topic updated on 6 m…

---

## [Looking for solid code base to learn from](https://www.ruby-forum.com/t/looking-for-solid-code-base-to-learn-from/105249)

<div class="topic-metadata">

**Author:** [@longint](https://www.ruby-forum.com/u/longint)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/looking-for-solid-code-base-to-learn-from/105249 "2007-09-25T23:03:08Z")

</div>

I’ve worked through most of the Agile book and while the depot application is nice, I could use more of a code base. Does anyone have suggestions for a nice open source project with solid code? Right now I’m looking …

---

## [Rails version](https://www.ruby-forum.com/t/rails-version/103936)

<div class="topic-metadata">

**Author:** [@raj](https://www.ruby-forum.com/u/raj)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/rails-version/103936 "2007-09-25T23:03:06Z")

</div>

I am a new bee, forgot how to determine which version i am using. Thank you, Raj.

---

## [Does mongrel work with memcached?](https://www.ruby-forum.com/t/does-mongrel-work-with-memcached/112500)

<div class="topic-metadata">

**Author:** [@innr](https://www.ruby-forum.com/u/innr)\
**Replies:** 5\
**Last updated:** [September 25, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/does-mongrel-work-with-memcached/112500 "2007-09-25T23:03:03Z")

</div>

Hello, Has anyone gotten memcached to work with a mongrel cluster before? I see numerous posts on the internet of people who can’t get this to work, and no one saying it does. Do these two technologies work toget…

---

## [Development data in migrations](https://www.ruby-forum.com/t/development-data-in-migrations/104984)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/development-data-in-migrations/104984 "2007-09-25T23:02:44Z")

</div>

Hi all, I’ve seen examples on including “development data” in migrations. I do this myself, and it seems to be a great convenience for “trying out” an application. This saves all the trouble of entering the setup d…

---

## [When should I move to the new Ruby version (1.8.6) which is](https://www.ruby-forum.com/t/when-should-i-move-to-the-new-ruby-version-1-8-6-which-is/88748)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/when-should-i-move-to-the-new-ruby-version-1-8-6-which-is/88748 "2007-09-25T23:02:44Z")

</div>

Hi, Noting that a new version or Ruby has been released, v1.8.6http://www.ruby-lang.org/en/news/2007/03/12/ruby-1-8-6-released/, as a Rails developer what is the normal upgrade timeframe? That is: upgrade to Ruby n…

---

## [Making a list of records refresh in order after a 'page.inse](https://www.ruby-forum.com/t/making-a-list-of-records-refresh-in-order-after-a-page-inse/105213)

<div class="topic-metadata">

**Author:** [@Davo](https://www.ruby-forum.com/u/Davo)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/making-a-list-of-records-refresh-in-order-after-a-page-inse/105213 "2007-09-25T23:02:39Z")

</div>

Hi Everyone, I’m working through a book that demonstrates using Ajax to add a new record to a category. Just a single field, being a name is required. I’ve applied it to a real app and it works OK except for one smal…

---

## [File upload](https://www.ruby-forum.com/t/file-upload/87976)

<div class="topic-metadata">

**Author:** [@manjiri](https://www.ruby-forum.com/u/manjiri)\
**Replies:** 9\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/file-upload/87976 "2007-09-25T23:02:37Z")

</div>

Can anyone tell me how to upload files on a server or some area… I do not mean saving a file in a database…but saving it at some user selected memory location.

---

## [What of PHP frameworks like cakePHP and smyfony?](https://www.ruby-forum.com/t/what-of-php-frameworks-like-cakephp-and-smyfony/104107)

<div class="topic-metadata">

**Author:** [@surf](https://www.ruby-forum.com/u/surf)\
**Replies:** 9\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/what-of-php-frameworks-like-cakephp-and-smyfony/104107 "2007-09-25T23:02:35Z")

</div>

I am curious as to why or why not other MVC approaches in PHP or other languages might advance alongside of Rails ? Perhaps this is because Rails is as much a framework as a language or platform and the same thing cou…

---

## [Newbie Qs. Why use Ruby? Why use Rails?](https://www.ruby-forum.com/t/newbie-qs-why-use-ruby-why-use-rails/92862)

<div class="topic-metadata">

**Author:** [@johnchicago99](https://www.ruby-forum.com/u/johnchicago99)\
**Replies:** 3\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/newbie-qs-why-use-ruby-why-use-rails/92862 "2007-09-25T23:02:31Z")

</div>

Yes, These are Newbie Qs. Why use Ruby? Why use Rails?

---

## [RMagick as a local gem on Dreamhost](https://www.ruby-forum.com/t/rmagick-as-a-local-gem-on-dreamhost/71620)

<div class="topic-metadata">

**Author:** [@iktorn](https://www.ruby-forum.com/u/iktorn)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/rmagick-as-a-local-gem-on-dreamhost/71620 "2007-09-25T23:02:30Z")

</div>

As DH refused to install new version of RMagick gem “globally” I had to install it locally. Here my install details: Local gems installed in: /home/user/.gems /home/user/.gems/gems/rmagick-1.14.0 Local libs installe…

---

## [ActiveRecord foreign\_key, composite key question](https://www.ruby-forum.com/t/activerecord-foreign-key-composite-key-question/114588)

<div class="topic-metadata">

**Author:** [@boblmartens](https://www.ruby-forum.com/u/boblmartens)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/activerecord-foreign-key-composite-key-question/114588 "2007-09-25T23:02:10Z")

</div>

I have a question about a has\_many + belongs\_to relationship and how ActiveRecord works. Consider two tables and related model classes: create\_table :projects do |t| t.column :description, :text t.column :fm\_project…

---

## [Avoiding 'You are being redirected' page](https://www.ruby-forum.com/t/avoiding-you-are-being-redirected-page/110478)

<div class="topic-metadata">

**Author:** [@jose](https://www.ruby-forum.com/u/jose)\
**Replies:** 1\
**Last updated:** [September 25, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/avoiding-you-are-being-redirected-page/110478 "2007-09-25T23:02:03Z")

</div>

I’ve updated Lighttpd (from 1.4.11 to 1.4.16) and now all the redirects in my Rails app are producing an in-between page which says ‘You are being redirected’ and has a link to my redirection page. I didn’t have this …

---

## [RESTful RESOURCE PARTIAL UPDATE (Single Attribute Update)](https://www.ruby-forum.com/t/restful-resource-partial-update-single-attribute-update/104772)

<div class="topic-metadata">

**Author:** [@lambo4jos](https://www.ruby-forum.com/u/lambo4jos)\
**Replies:** 4\
**Last updated:** [September 25, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/restful-resource-partial-update-single-attribute-update/104772 "2007-09-25T23:01:10Z")

</div>

I am having a hard time understanding updating a partial resource. This was talked about at railsconf here on page 29. http://www.web2expo.com/presentations/r … \_scott.pdf . The problem i am specifically referring to …

---

## [Undefined method \`each' for \*\*\*:Class PROBLEM](https://www.ruby-forum.com/t/undefined-method-each-for-class-problem/107760)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/undefined-method-each-for-class-problem/107760 "2007-09-25T23:01:05Z")

</div>

Hi, i am very new to ROR, this is my 2nd day since i solve the problem of database connection. when i started to write some codes, i got stuck. here is the situation and please give me some help. i have a “posts” tab…

---

## [How to remove Piston imported plugin](https://www.ruby-forum.com/t/how-to-remove-piston-imported-plugin/114651)

<div class="topic-metadata">

**Author:** [@Jesper\_RSSSSnn-Jens](https://www.ruby-forum.com/u/Jesper_RSSSSnn-Jens)\
**Replies:** 2\
**Last updated:** [September 25, 2007, 11:00pm UTC](https://www.ruby-forum.com/t/how-to-remove-piston-imported-plugin/114651 "2007-09-25T23:00:44Z")

</div>

I have accidentally installed a plugin in the wrong directory (ran Piston import \[url\] from root and not from /vendor/plugins ) Now, how do I remove it again as I want to install it properly? Thanks! /Jesper blog: w…

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

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