# Rails

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

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

---

## [Pass an Array of Arrays from view to controller](https://www.ruby-forum.com/t/pass-an-array-of-arrays-from-view-to-controller/135996)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 27, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/pass-an-array-of-arrays-from-view-to-controller/135996 "2008-04-27T22:30:06Z")

</div>

Hi, is there a way to pass a Array of Arrays in params? I tryed like this: \<% a1 = Array.new %\> \<% a2 = Array.new %\> \[…\] \<% a1 \<\< a2%\> \[…\] \<%= link\_to\_remote ‘next’,:url =\> {:controller =\> ‘myController’, :action…

---

## [Where to put my Member.find(:all)](https://www.ruby-forum.com/t/where-to-put-my-member-find-all/136000)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 27, 2008, 9:55pm UTC](https://www.ruby-forum.com/t/where-to-put-my-member-find-all/136000 "2008-04-27T21:55:48Z")

</div>

Hello list! I have a navigation bar where I want’t to display the recently added members with a partial. When I jump let’s say to an action in the LinksController and render the partial it will fail because the part…

---

## [How to get web server to display the server logs](https://www.ruby-forum.com/t/how-to-get-web-server-to-display-the-server-logs/135963)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 1\
**Last updated:** [April 27, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/how-to-get-web-server-to-display-the-server-logs/135963 "2008-04-27T19:10:32Z")

</div>

I’m just getting started on a mac and I’m starting the server with ./ script/server, which starts up webrick. I’m used to having the console then display all the logs as I’m interacting with the application, but this …

---

## [Odd fixtures behaviour](https://www.ruby-forum.com/t/odd-fixtures-behaviour/135988)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [April 27, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/odd-fixtures-behaviour/135988 "2008-04-27T18:13:57Z")

</div>

This is Rails 2.0.2 I have two yaml fixture files, both loading into ARs with acts\_as\_tree, so they both have the !!omap directive set. One, categories.yml, loads just fine. The other goes very weird, somehow fixture…

---

## [Helper method placement advice](https://www.ruby-forum.com/t/helper-method-placement-advice/135987)

<div class="topic-metadata">

**Author:** [@hendrata](https://www.ruby-forum.com/u/hendrata)\
**Replies:** 2\
**Last updated:** [April 27, 2008, 6:00pm UTC](https://www.ruby-forum.com/t/helper-method-placement-advice/135987 "2008-04-27T18:00:35Z")

</div>

Hello, I am developing a book-author database with RoR. The book-author relationship is many to many, therefore I created 3 tables as follows: books authors writings, which has columns: id, book\_id, author\_id. This t…

---

## [Page expires when using back button](https://www.ruby-forum.com/t/page-expires-when-using-back-button/135984)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [April 27, 2008, 4:13pm UTC](https://www.ruby-forum.com/t/page-expires-when-using-back-button/135984 "2008-04-27T16:13:41Z")

</div>

Hello, I have a search form to search for people. When i click the search button I get the results. But when I go to any another page (like the profile of the person in the search result) and hit the back button on …

---

## [Simple html link from URL variable call](https://www.ruby-forum.com/t/simple-html-link-from-url-variable-call/135836)

<div class="topic-metadata">

**Author:** [@Laughlink](https://www.ruby-forum.com/u/Laughlink)\
**Replies:** 6\
**Last updated:** [April 27, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/simple-html-link-from-url-variable-call/135836 "2008-04-27T16:05:18Z")

</div>

I am building a business listing page, and there is a field for URL and email. I have the email link working with mail\_to, but is there also a method call for an URL? Website \<%= link\_to @directories.url %\> Intereste…

---

## [Need advice for non-ActiveRecord processing](https://www.ruby-forum.com/t/need-advice-for-non-activerecord-processing/135966)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 3\
**Last updated:** [April 27, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/need-advice-for-non-activerecord-processing/135966 "2008-04-27T15:53:03Z")

</div>

Hey Guys… need some advice on the best way to set things up. I’ll explain my scenario below: I have a rails app that does some processing through an xmlrpc API connection with a third party application where I store …

---

## [RESTful links in Facebooker](https://www.ruby-forum.com/t/restful-links-in-facebooker/135979)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 0\
**Last updated:** [April 27, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/restful-links-in-facebooker/135979 "2008-04-27T13:08:55Z")

</div>

Hi all, I’m trying to make a simple Facebook app using Rails with the Facebooker plugin. I’m using the map.resources routing for my models. I’ve found that the links generated by the standard routes (e.g. things\_path…

---

## [Bug in eager loading and polymorphic associations?](https://www.ruby-forum.com/t/bug-in-eager-loading-and-polymorphic-associations/135694)

<div class="topic-metadata">

**Author:** [@rub3n](https://www.ruby-forum.com/u/rub3n)\
**Replies:** 2\
**Last updated:** [April 27, 2008, 12:51pm UTC](https://www.ruby-forum.com/t/bug-in-eager-loading-and-polymorphic-associations/135694 "2008-04-27T12:51:43Z")

</div>

Hi friends, i’m usgin the edge version because i need eager loading on polymorphic associations support, but i see this: Message.find(:first, :include =\> :owner) #This generate this query: SQL (0.000072) SET SQL\_AUT…

---

## [Undefined method \`session='+?](https://www.ruby-forum.com/t/undefined-method-session/135974)

<div class="topic-metadata">

**Author:** [@drorchung](https://www.ruby-forum.com/u/drorchung)\
**Replies:** 1\
**Last updated:** [April 27, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/undefined-method-session/135974 "2008-04-27T12:46:28Z")

</div>

I bought AWDWR 2nd edition by Dave T… I downgraded to rails 1.2.1 by: sudo gem install --source http://gems.rubyforge.org rails -v 1.2.1 –include-dependencies I inserted the following line in environment.rb #RAILS\_…

---

## [I do feel scaffold is a bit broken](https://www.ruby-forum.com/t/i-do-feel-scaffold-is-a-bit-broken/134185)

<div class="topic-metadata">

**Author:** [@goodwill](https://www.ruby-forum.com/u/goodwill)\
**Replies:** 25\
**Last updated:** [April 27, 2008, 10:21am UTC](https://www.ruby-forum.com/t/i-do-feel-scaffold-is-a-bit-broken/134185 "2008-04-27T10:21:20Z")

</div>

I come across this thread when I try to share my point of view about the new Rails 2.0 scaffold. Again like most of us, we dont disagree with the RESTful approach, despite the fact I haven’t even totally understand th…

---

## [Need help sorting results using select\_tag](https://www.ruby-forum.com/t/need-help-sorting-results-using-select-tag/135938)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 5\
**Last updated:** [April 27, 2008, 9:30am UTC](https://www.ruby-forum.com/t/need-help-sorting-results-using-select-tag/135938 "2008-04-27T09:30:36Z")

</div>

I have a page that returns data and I need to let the user sort it. I have this: \<% form\_tag courses\_path, :method =\> :get do -%\> \<%= select\_tag :order, options\_for\_select(%w(date rating author)) %\> \<%= submit\_tag “…

---

## [Link\_to and image\_tag](https://www.ruby-forum.com/t/link-to-and-image-tag/135928)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 2\
**Last updated:** [April 27, 2008, 9:23am UTC](https://www.ruby-forum.com/t/link-to-and-image-tag/135928 "2008-04-27T09:23:22Z")

</div>

sorry for the basic question, trying to do this… \<%= link\_to (image\_tag picture.photo.url(:thumb)), (image\_tag picture.photo.url) %\> Anyone help me fix the syntax? bb

---

## [Problem with script generate scaffolding](https://www.ruby-forum.com/t/problem-with-script-generate-scaffolding/135968)

<div class="topic-metadata">

**Author:** [@Michael\_Phoenix](https://www.ruby-forum.com/u/Michael_Phoenix)\
**Replies:** 1\
**Last updated:** [April 27, 2008, 8:51am UTC](https://www.ruby-forum.com/t/problem-with-script-generate-scaffolding/135968 "2008-04-27T08:51:47Z")

</div>

I’m going through the rolling with ruby on rails tutorial and I have hit a snag. When I get to the part where I enter the command line given by the tutorial in order to generate scaffold, I get the following: C:\\ruby…

---

## [Rendering an html partial from the js block in action.respond\_to--possible?](https://www.ruby-forum.com/t/rendering-an-html-partial-from-the-js-block-in-action-respond-to-possible/135801)

<div class="topic-metadata">

**Author:** [@rpardee](https://www.ruby-forum.com/u/rpardee)\
**Replies:** 5\
**Last updated:** [April 27, 2008, 6:31am UTC](https://www.ruby-forum.com/t/rendering-an-html-partial-from-the-js-block-in-action-respond-to-possible/135801 "2008-04-27T06:31:59Z")

</div>

Hey All, I’m trying to get an ajax search feature together for one of my views. When my user types a name fragment into a text input box, the browser makes an ajax call, passing search parameters, and dumps the resu…

---

## [DRYing up controllers](https://www.ruby-forum.com/t/drying-up-controllers/135788)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 3\
**Last updated:** [April 27, 2008, 5:59am UTC](https://www.ruby-forum.com/t/drying-up-controllers/135788 "2008-04-27T05:59:50Z")

</div>

Hi I’m a big fan of plugins such as Resource Controller http://jamesgolick.com/2007/10/19/introducing-resource\_controller-focus-on-what-makes-your-controller-special However, recently decided I don’t want to depend on…

---

## [Categorizing by created\_at](https://www.ruby-forum.com/t/categorizing-by-created-at/135960)

<div class="topic-metadata">

**Author:** [@garg](https://www.ruby-forum.com/u/garg)\
**Replies:** 1\
**Last updated:** [April 27, 2008, 3:58am UTC](https://www.ruby-forum.com/t/categorizing-by-created-at/135960 "2008-04-27T03:58:49Z")

</div>

Hello, If I have a table with created\_at:datetime name:string notes:text etc… and I want to display the contents of this table, but I want the created\_at date, and then all the items created on that date, and then th…

---

## [Dynamic dropdowns using just Ruby](https://www.ruby-forum.com/t/dynamic-dropdowns-using-just-ruby/135799)

<div class="topic-metadata">

**Author:** [@sara231](https://www.ruby-forum.com/u/sara231)\
**Replies:** 15\
**Last updated:** [April 27, 2008, 3:52am UTC](https://www.ruby-forum.com/t/dynamic-dropdowns-using-just-ruby/135799 "2008-04-27T03:52:45Z")

</div>

Hi all, I am trying to create dynamic dropdowns in a form, such that when a user clicks an item in select list #1 (States), the options in select list #2 (Cities) will update to reflect only cities that are in the sel…

---

## [\[Ann\] Stage 0.3.0](https://www.ruby-forum.com/t/ann-stage-0-3-0/135961)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 0\
**Last updated:** [April 27, 2008, 1:52am UTC](https://www.ruby-forum.com/t/ann-stage-0-3-0/135961 "2008-04-27T01:52:01Z")

</div>

Stage is a code template generator for Merb and Rails. It was originally written as a plugin for Rails and then refactored as a gem for Merb. The refactor for Merb brought a better design and now the Rails version r…

---

## [Rails Tasks](https://www.ruby-forum.com/t/rails-tasks/135956)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 2\
**Last updated:** [April 27, 2008, 1:37am UTC](https://www.ruby-forum.com/t/rails-tasks/135956 "2008-04-27T01:37:38Z")

</div>

Hey, So I have a piece of code written (currently in a controller) to update a table of values that I want to run every 20 minutes. It parses an rss feed and caches the data to the database. Anyone have suggestions…

---

## [Self-Referential Many-To\_many help](https://www.ruby-forum.com/t/self-referential-many-to-many-help/135959)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 0\
**Last updated:** [April 27, 2008, 12:52am UTC](https://www.ruby-forum.com/t/self-referential-many-to-many-help/135959 "2008-04-27T00:52:42Z")

</div>

Hi, Despite Josh S.'s great tutorial, I am having trouble getting my self-referential many-to-many to work properly. I’d really appreciate it if someone could cast a quick critical eye over my simple setup. First my …

---

## [Spool Email - Time out error](https://www.ruby-forum.com/t/spool-email-time-out-error/135955)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/spool-email-time-out-error/135955 "2008-04-26T23:08:45Z")

</div>

i am sending and attachment out via email and the server timeouts. if send a couple of email there is no problem. can anyone advice of a simple spooling method, so there can be open smtp session. i read on method usi…

---

## [Validation dependent on unsaved parent](https://www.ruby-forum.com/t/validation-dependent-on-unsaved-parent/135615)

<div class="topic-metadata">

**Author:** [@IndyCodeWarrior](https://www.ruby-forum.com/u/IndyCodeWarrior)\
**Replies:** 1\
**Last updated:** [April 26, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/validation-dependent-on-unsaved-parent/135615 "2008-04-26T22:16:34Z")

</div>

I’m having trouble with a validation that depends on an attribute of a belongs\_to parent. If the child is added to an unsaved parent (parent.children \<\< new child), the has\_many collection parent.children includes the…

---

## [ActiveRecord Session Handling - rails 2.0.2](https://www.ruby-forum.com/t/activerecord-session-handling-rails-2-0-2/135951)

<div class="topic-metadata">

**Author:** [@chandrashekhar](https://www.ruby-forum.com/u/chandrashekhar)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 8:56pm UTC](https://www.ruby-forum.com/t/activerecord-session-handling-rails-2-0-2/135951 "2008-04-26T20:56:10Z")

</div>

I’ve started using rails version 2.0.2.I’m using active-record-store in order to store the session information.There is a problem with the storage of sesion data.It goes in as null.However with earlier version of rail…

---

## [Routing: Language as first part of path, for just about everything](https://www.ruby-forum.com/t/routing-language-as-first-part-of-path-for-just-about-everything/135947)

<div class="topic-metadata">

**Author:** [@MRoderick](https://www.ruby-forum.com/u/MRoderick)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/routing-language-as-first-part-of-path-for-just-about-everything/135947 "2008-04-26T20:04:12Z")

</div>

Hi Group Like others before me have posted to the group, I am trying to implement routes that have language as the first part of the path, without having to rewrite just about every url generating statement across th…

---

## [Actionmailer configuration slows page loading and then error](https://www.ruby-forum.com/t/actionmailer-configuration-slows-page-loading-and-then-error/135944)

<div class="topic-metadata">

**Author:** [@gabe](https://www.ruby-forum.com/u/gabe)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 6:59pm UTC](https://www.ruby-forum.com/t/actionmailer-configuration-slows-page-loading-and-then-error/135944 "2008-04-26T18:59:31Z")

</div>

I have the following in my environment.rb file: ActionMailer::Base.server\_settings = { :address =\> “IP\_ADDRESS\_GIVEN\_BY\_HOSTING\_COMPANY”, :port =\> 25 } it causes my pages to take forever to load and eventually they …

---

## [Session in layout](https://www.ruby-forum.com/t/session-in-layout/135943)

<div class="topic-metadata">

**Author:** [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/session-in-layout/135943 "2008-04-26T18:34:16Z")

</div>

Hi there I’m trying to build a link menu in a layout using a helper depending on a session value but I receive this error: undefined local variable or method \`session’ for ApplicationHelper:Module Is not possible ac…

---

## [Transactions (commit and rollback)](https://www.ruby-forum.com/t/transactions-commit-and-rollback/135929)

<div class="topic-metadata">

**Author:** [@Miquel\_O](https://www.ruby-forum.com/u/Miquel_O)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 1:28pm UTC](https://www.ruby-forum.com/t/transactions-commit-and-rollback/135929 "2008-04-26T13:28:53Z")

</div>

Hi there I’m coding an action where I have to create two related objects (models). The thing is that the second one uses the first one’s id value as its id (the first tables’s id is autoincrement and the second table…

---

## [\>\>\>mysql and php \>\>\>](https://www.ruby-forum.com/t/mysql-and-php/135927)

<div class="topic-metadata">

**Author:** [@smartcoder](https://www.ruby-forum.com/u/smartcoder)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/mysql-and-php/135927 "2008-04-26T13:22:09Z")

</div>

Download Project Management System developed in PHP,MySQL from

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

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