# Rails

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

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

---

## [Acts\_as\_authenticated session storage](https://www.ruby-forum.com/t/acts-as-authenticated-session-storage/90772)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 2\
**Last updated:** [April 24, 2007, 8:09am UTC](https://www.ruby-forum.com/t/acts-as-authenticated-session-storage/90772 "2007-04-24T08:09:35Z")

</div>

Ok, I have nothing in my environment.rb regarding sessions, so I thought it would default to pstore. I’m using acts\_as\_authenticated, log in, log out, remember me, etc. The problem is that I don’t see a tmp/sessions d…

---

## [Simple question about showing results](https://www.ruby-forum.com/t/simple-question-about-showing-results/92677)

<div class="topic-metadata">

**Author:** [@supaspoida](https://www.ruby-forum.com/u/supaspoida)\
**Replies:** 4\
**Last updated:** [April 24, 2007, 8:08am UTC](https://www.ruby-forum.com/t/simple-question-about-showing-results/92677 "2007-04-24T08:08:19Z")

</div>

Hello, I’m new to Ruby on Rails and am working on my first major app. I’m having a bit of trouble figuring out the best way to do some things. The first issue I’m having is regarding an events page. I have 3 divs on m…

---

## [Left outer join inside another?](https://www.ruby-forum.com/t/left-outer-join-inside-another/92785)

<div class="topic-metadata">

**Author:** [@cfingerh](https://www.ruby-forum.com/u/cfingerh)\
**Replies:** 0\
**Last updated:** [April 24, 2007, 5:40am UTC](https://www.ruby-forum.com/t/left-outer-join-inside-another/92785 "2007-04-24T05:40:25Z")

</div>

I have three tables “kids” which belongs\_to “families” which belongs “group” I want to get all the kids from a certain group I have my models class Kid \< ActiveRecord::Base belongs\_to :family end class Family \< Ac…

---

## [Issues with saving associations and acts\_as\_tree](https://www.ruby-forum.com/t/issues-with-saving-associations-and-acts-as-tree/92783)

<div class="topic-metadata">

**Author:** [@Myron\_M](https://www.ruby-forum.com/u/Myron_M)\
**Replies:** 0\
**Last updated:** [April 24, 2007, 5:36am UTC](https://www.ruby-forum.com/t/issues-with-saving-associations-and-acts-as-tree/92783 "2007-04-24T05:36:25Z")

</div>

I’m having some issues with the saving of my models. I’ll explain my models, and then I’ll explain the problems I’m having. I’ve got a model called ContentPage that contains the html for several of the pages of my w…

---

## [Make rake tasks of a plugin accessible to the app?](https://www.ruby-forum.com/t/make-rake-tasks-of-a-plugin-accessible-to-the-app/90411)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [April 24, 2007, 5:29am UTC](https://www.ruby-forum.com/t/make-rake-tasks-of-a-plugin-accessible-to-the-app/90411 "2007-04-24T05:29:40Z")

</div>

Hi all I want to add some rake tasks to my app using a plugin. So I added some tasks to vendor/plugins/my-plugin/Rakefile, but it seems that the tasks in a plugin’s Rakefile are not available to access from the applic…

---

## [Specify format (xml, html, etc) in functional test](https://www.ruby-forum.com/t/specify-format-xml-html-etc-in-functional-test/92753)

<div class="topic-metadata">

**Author:** [@philipp07](https://www.ruby-forum.com/u/philipp07)\
**Replies:** 2\
**Last updated:** [April 24, 2007, 3:28am UTC](https://www.ruby-forum.com/t/specify-format-xml-html-etc-in-functional-test/92753 "2007-04-24T03:28:18Z")

</div>

Hi, I can’t find any information on how to specify the format (like xml, html, js, …) of a request in a functional controller test. For example: I have a create action in my bookmarks\_controller which responds to fo…

---

## [How to maintain an object between pages?](https://www.ruby-forum.com/t/how-to-maintain-an-object-between-pages/92758)

<div class="topic-metadata">

**Author:** [@Tak](https://www.ruby-forum.com/u/Tak)\
**Replies:** 1\
**Last updated:** [April 24, 2007, 3:14am UTC](https://www.ruby-forum.com/t/how-to-maintain-an-object-between-pages/92758 "2007-04-24T03:14:00Z")

</div>

Hi. I’m a newbie on Ruby on Rails (this is my first post). I want to write a form where users can create or edit a claim. One of the fields is a company. Since there is an internal code for each registered company, I …

---

## [Gemsonrails crapping out during installation](https://www.ruby-forum.com/t/gemsonrails-crapping-out-during-installation/92774)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 0\
**Last updated:** [April 24, 2007, 2:32am UTC](https://www.ruby-forum.com/t/gemsonrails-crapping-out-during-installation/92774 "2007-04-24T02:32:14Z")

</div>

I get the following error on installation: gem install gemsonrails Successfully installed gemsonrails-0.4.3 ERROR: While executing gem … (Errno::ENOENT) No such file or directory - getcwd After it says it is instal…

---

## [How to upload file to server](https://www.ruby-forum.com/t/how-to-upload-file-to-server/92770)

<div class="topic-metadata">

**Author:** [@trai\_dau\_bap](https://www.ruby-forum.com/u/trai_dau_bap)\
**Replies:** 1\
**Last updated:** [April 24, 2007, 1:37am UTC](https://www.ruby-forum.com/t/how-to-upload-file-to-server/92770 "2007-04-24T01:37:04Z")

</div>

\<%submit\_tag "send"%\> how can i save the file that has been choosen to a directory in server. send\_file is the method to download file but how to upload it?

---

## [Recommended Linux Distro for RoR hosting?](https://www.ruby-forum.com/t/recommended-linux-distro-for-ror-hosting/92722)

<div class="topic-metadata">

**Author:** [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Replies:** 6\
**Last updated:** [April 24, 2007, 1:21am UTC](https://www.ruby-forum.com/t/recommended-linux-distro-for-ror-hosting/92722 "2007-04-24T01:21:11Z")

</div>

Hello, I’m going to order a dedicated server for my RoR application, but don’t know which nix distro is the best for hosting RoR application? Debian Etch, Ubuntu 6.06 or 6.10, Fedora Core 5 or 6? Thanks in advance, …

---

## [Slow ruby execution on FreeBSD](https://www.ruby-forum.com/t/slow-ruby-execution-on-freebsd/92609)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 24, 2007, 12:23am UTC](https://www.ruby-forum.com/t/slow-ruby-execution-on-freebsd/92609 "2007-04-24T00:23:28Z")

</div>

Howdy, Total green-horn here. A few weeks ago, a test website we were bulding (on freebsd with mysql) slowed waaaay down. I believe I have the problem narrowed down to this line of code in /vendor/rails/railties/lib…

---

## [Not quite sure how to do this?](https://www.ruby-forum.com/t/not-quite-sure-how-to-do-this/92510)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 24, 2007, 12:15am UTC](https://www.ruby-forum.com/t/not-quite-sure-how-to-do-this/92510 "2007-04-24T00:15:48Z")

</div>

Everyone’s has to seen this but don’t know what it is called nor where to start. Take youtube for example, in their comments or tags section there is a (more) or (less) link that expands and collapses. Is this AJAX?…

---

## [Request logging: around\_filters can't see error responses!](https://www.ruby-forum.com/t/request-logging-around-filters-cant-see-error-responses/92763)

<div class="topic-metadata">

**Author:** [@joshmh](https://www.ruby-forum.com/u/joshmh)\
**Replies:** 0\
**Last updated:** [April 24, 2007, 12:02am UTC](https://www.ruby-forum.com/t/request-logging-around-filters-cant-see-error-responses/92763 "2007-04-24T00:02:05Z")

</div>

Hello, I want to emit a structured log entry (in YAML) for every request that hits my Rails app. For example, an entry in this log would look something like: SYSTEM\_TIME: 0.0166666666666667 USER\_TIME: 0.099999999…

---

## [Rails, sessions, and associations?](https://www.ruby-forum.com/t/rails-sessions-and-associations/92746)

<div class="topic-metadata">

**Author:** [@Antiarc](https://www.ruby-forum.com/u/Antiarc)\
**Replies:** 4\
**Last updated:** [April 23, 2007, 11:37pm UTC](https://www.ruby-forum.com/t/rails-sessions-and-associations/92746 "2007-04-23T23:37:34Z")

</div>

I’m running Rails 1.2.3, as a precursor. I’ve recently discovered some odd behavior in how Rails treats objects saved in the session and its associations. class Foo \< ActiveRecord::Base has\_one :bar has\_one :barfoo …

---

## [To\_xml Hell](https://www.ruby-forum.com/t/to-xml-hell/92759)

<div class="topic-metadata">

**Author:** [@Nicholas](https://www.ruby-forum.com/u/Nicholas)\
**Replies:** 4\
**Last updated:** [April 23, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/to-xml-hell/92759 "2007-04-23T23:13:01Z")

</div>

I am trying to create a custom response to a particular action being called in my controller and I am getting some really weird errors. I am running the rails 1.2 stable branch. Here is the action in my controller: G…

---

## ["\`/rails/info/properties' not found." Error is displayed](https://www.ruby-forum.com/t/rails-info-properties-not-found-error-is-displayed/92106)

<div class="topic-metadata">

**Author:** [@Amey\_Salvi](https://www.ruby-forum.com/u/Amey_Salvi)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 10:59pm UTC](https://www.ruby-forum.com/t/rails-info-properties-not-found-error-is-displayed/92106 "2007-04-23T22:59:14Z")

</div>

hi all i just install RoR on my linux machine…and try using the online tutorials of RoR The web server is started properly but when i check the url “http://localhost:3000” the Welcome page is shown properly and but …

---

## [Database and MVC](https://www.ruby-forum.com/t/database-and-mvc/92757)

<div class="topic-metadata">

**Author:** [@smital](https://www.ruby-forum.com/u/smital)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/database-and-mvc/92757 "2007-04-23T22:31:48Z")

</div>

I have just discovered Ruby on Rails and I have been going through the tutorial “Rolling with Ruby on Rails revisited”. One thing that baffles me is that we create my sql tables “recipes” and “categories”. We then ge…

---

## [Call action, render it, then redirect back to itself](https://www.ruby-forum.com/t/call-action-render-it-then-redirect-back-to-itself/92673)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 4\
**Last updated:** [April 23, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/call-action-render-it-then-redirect-back-to-itself/92673 "2007-04-23T21:55:48Z")

</div>

there is a controller action def loop\_type\_action book = Book.find\_one\_book\_that\_left #find a book haven’t read book.update\_attribute(“is\_read”,true) #mark it as read @result = book.read #fetch book content end W…

---

## [Making a POST request requires JavaScript?](https://www.ruby-forum.com/t/making-a-post-request-requires-javascript/92681)

<div class="topic-metadata">

**Author:** [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Replies:** 9\
**Last updated:** [April 23, 2007, 9:31pm UTC](https://www.ruby-forum.com/t/making-a-post-request-requires-javascript/92681 "2007-04-23T21:31:27Z")

</div>

From the Agile Rails book: “Why do we check for an HTTP POST request? Itâ€™s a good habit to get into. Requests that change the server state should be sent using POST, not GET requests. Thatâ€™s why we overrode the l…

---

## [Troubles with using gems in Rails](https://www.ruby-forum.com/t/troubles-with-using-gems-in-rails/92690)

<div class="topic-metadata">

**Author:** [@viciu](https://www.ruby-forum.com/u/viciu)\
**Replies:** 3\
**Last updated:** [April 23, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/troubles-with-using-gems-in-rails/92690 "2007-04-23T20:46:41Z")

</div>

Hi! I’m observing some problems using gem inside Rails. My understanding is that after following sequence in irb: $ irb irb(main):001:0\> require ‘rubygems’ =\> true irb(main):002:0\> require ‘active\_record’ =\> true …

---

## [Spent over 24 hours trying to figure this - multiple params](https://www.ruby-forum.com/t/spent-over-24-hours-trying-to-figure-this-multiple-params/92747)

<div class="topic-metadata">

**Author:** [@merc](https://www.ruby-forum.com/u/merc)\
**Replies:** 5\
**Last updated:** [April 23, 2007, 8:04pm UTC](https://www.ruby-forum.com/t/spent-over-24-hours-trying-to-figure-this-multiple-params/92747 "2007-04-23T20:04:37Z")

</div>

I feel really stupid spending over 24 hours trying to figure out 1 line of code but I still can’t get it. I have a table addpackages, that I want to update multiple fields from table rosters based on the selection of …

---

## [Change a value inside button\_to\_function with js](https://www.ruby-forum.com/t/change-a-value-inside-button-to-function-with-js/91485)

<div class="topic-metadata">

**Author:** [@luca](https://www.ruby-forum.com/u/luca)\
**Replies:** 5\
**Last updated:** [April 23, 2007, 7:48pm UTC](https://www.ruby-forum.com/t/change-a-value-inside-button-to-function-with-js/91485 "2007-04-23T19:48:35Z")

</div>

Hi All I’m using the following in my .rhtml \<%= button\_to\_function ‘setup’, remote\_function( :url =\> { :action =\> ‘abc’, :controller =\> ‘def’, :xyz =\> ‘10’}) %\>" However, depending on what the user does, I would like…

---

## [Using Array or Hash with Form Select and Elsewhere](https://www.ruby-forum.com/t/using-array-or-hash-with-form-select-and-elsewhere/92726)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 1\
**Last updated:** [April 23, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/using-array-or-hash-with-form-select-and-elsewhere/92726 "2007-04-23T19:34:32Z")

</div>

I’m working on a small project in order to learn Rails. I have a model with a status field, which I want to be ‘open’ or ‘closed’ (I may add some other options later). I am storing them in the database all lowercase (…

---

## [Symbol lookup error in mysql gem](https://www.ruby-forum.com/t/symbol-lookup-error-in-mysql-gem/91874)

<div class="topic-metadata">

**Author:** [@plambert](https://www.ruby-forum.com/u/plambert)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/symbol-lookup-error-in-mysql-gem/91874 "2007-04-23T19:23:32Z")

</div>

I’ve been having a problem where the rails server (either WEBrick or Mongrel) hangs and becomes unresponsive overnight. I read some posts that caused me to think this might be an issue with Ruby’s MySQL driver, so I …

---

## [Javascript variables](https://www.ruby-forum.com/t/javascript-variables/92477)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 5\
**Last updated:** [April 23, 2007, 7:20pm UTC](https://www.ruby-forum.com/t/javascript-variables/92477 "2007-04-23T19:20:00Z")

</div>

I want to execute the following javascript functions in a model or in a controller, and work with result . navigator.systemLanguage navigator.userLanguage how can i do?

---

## [Script/plugin install seems to have stopped working for me](https://www.ruby-forum.com/t/script-plugin-install-seems-to-have-stopped-working-for-me/92749)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 7:14pm UTC](https://www.ruby-forum.com/t/script-plugin-install-seems-to-have-stopped-working-for-me/92749 "2007-04-23T19:14:31Z")

</div>

Hi, I’ve installed countless plugins in the past. Now, all of sudden, I cannot. I’m currently tyring to install attachment\_fu according to http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu So, from my projec…

---

## [Anyone using RedBox plugin?](https://www.ruby-forum.com/t/anyone-using-redbox-plugin/92744)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 23, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/anyone-using-redbox-plugin/92744 "2007-04-23T18:35:28Z")

</div>

I’m working with the RedBox plug-in (http://www.craigambrose.com/ projects/redbox). Does anyone understand why this has some weird behavior with select boxes in forms? It apparently hides them? I can remove the hide…

---

## [San Antonio TX Ruby Brigade starting up](https://www.ruby-forum.com/t/san-antonio-tx-ruby-brigade-starting-up/92743)

<div class="topic-metadata">

**Author:** [@Michael\_Basnight](https://www.ruby-forum.com/u/Michael_Basnight)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 6:27pm UTC](https://www.ruby-forum.com/t/san-antonio-tx-ruby-brigade-starting-up/92743 "2007-04-23T18:27:28Z")

</div>

I would like to announce that I am starting up a local San Antonio, TX ruby brigade. This is a work in progress, so I do not have much info right now, including members, times, and so on. We have a few interested loca…

---

## [First Ruby and Ruby On Rails conference in Czech Republic, O](https://www.ruby-forum.com/t/first-ruby-and-ruby-on-rails-conference-in-czech-republic-o/92738)

<div class="topic-metadata">

**Author:** [@fukas78](https://www.ruby-forum.com/u/fukas78)\
**Replies:** 0\
**Last updated:** [April 23, 2007, 5:31pm UTC](https://www.ruby-forum.com/t/first-ruby-and-ruby-on-rails-conference-in-czech-republic-o/92738 "2007-04-23T17:31:31Z")

</div>

I would like to invite you to the first Ruby On Rails conference in the Czech Republic, which will take place in Ostrava. Principal objective of this conference is to build up awareness of the Ruby and Ruby On Rails f…

---

## [Problem creating records through association using .new](https://www.ruby-forum.com/t/problem-creating-records-through-association-using-new/92732)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 23, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/problem-creating-records-through-association-using-new/92732 "2007-04-23T16:36:26Z")

</div>

Hello, When I do order = Order.find :first line\_item = order.line\_items.new line\_item.save the LineItem object is saved with order\_id = nil. However, if I just do order.line\_item.create, order\_id is filled out cor…

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

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