# Rails

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

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

---

## [Debugging Cookie Behavior](https://www.ruby-forum.com/t/debugging-cookie-behavior/164337)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 0\
**Last updated:** [March 31, 2009, 10:07am UTC](https://www.ruby-forum.com/t/debugging-cookie-behavior/164337 "2009-03-31T10:07:23Z")

</div>

Hi All, this is getting desperate… I have a rails applcation setting a cookie like cookies\[:foo\] = ‘bar’ At my local development system (Mac 10.5.6, Ruby 1.8.6, Rails 2.2.2) mongrel (how do i find out the mongrel ve…

---

## [Lister fichiers/rÃ©pertoires sur serveur](https://www.ruby-forum.com/t/lister-fichiers-ra-pertoires-sur-serveur/164332)

<div class="topic-metadata">

**Author:** [@babiben](https://www.ruby-forum.com/u/babiben)\
**Replies:** 0\
**Last updated:** [March 31, 2009, 9:38am UTC](https://www.ruby-forum.com/t/lister-fichiers-ra-pertoires-sur-serveur/164332 "2009-03-31T09:38:12Z")

</div>

Salut, Je voudrais savoir comment peut-on lister les fichiers et rÃ©pertoires en ruby. J’aimerais pouvoir lister les rÃ©pertoires existants pour crÃ©er une liste dÃ©roulante avec ces derniers. Est ce que c’est techniq…

---

## [How can I render a partial from other controller?](https://www.ruby-forum.com/t/how-can-i-render-a-partial-from-other-controller/164322)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [March 31, 2009, 7:59am UTC](https://www.ruby-forum.com/t/how-can-i-render-a-partial-from-other-controller/164322 "2009-03-31T07:59:38Z")

</div>

I use this code to render a partial: \<%= render :partial=\>‘test’ %\> The test is not located in the current controller. How can I point it to other place?

---

## [Serving xml](https://www.ruby-forum.com/t/serving-xml/164313)

<div class="topic-metadata">

**Author:** [@adrianunderwater](https://www.ruby-forum.com/u/adrianunderwater)\
**Replies:** 3\
**Last updated:** [March 31, 2009, 6:13am UTC](https://www.ruby-forum.com/t/serving-xml/164313 "2009-03-31T06:13:32Z")

</div>

Hi All, I’m trying to serve some XML from my Rails 2.0 server. I have a Flash file that always reads its configuration from /home/gallery.xml So, I would like to build the contents from the database and serve it bac…

---

## [HABTM Duplicate entry error](https://www.ruby-forum.com/t/habtm-duplicate-entry-error/164306)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 1\
**Last updated:** [March 31, 2009, 3:00am UTC](https://www.ruby-forum.com/t/habtm-duplicate-entry-error/164306 "2009-03-31T03:00:21Z")

</div>

I have a model OrderUser and a model Venue, both are related through a HABTM to relationship and the join table is order\_users\_venues with the two foreign keys venue\_id and order\_user\_id. I am trying to add venues to…

---

## [Presenters out of vogue?](https://www.ruby-forum.com/t/presenters-out-of-vogue/164191)

<div class="topic-metadata">

**Author:** [@bill\_walton](https://www.ruby-forum.com/u/bill_walton)\
**Replies:** 2\
**Last updated:** [March 31, 2009, 2:34am UTC](https://www.ruby-forum.com/t/presenters-out-of-vogue/164191 "2009-03-31T02:34:04Z")

</div>

My controllers have gotten unwieldy. The situation looks well-suited to the use of the MVP pattern but the latest links Google is giving me are from '07. Looks like there was some pretty good discussion that just fel…

---

## [Rails 2.1.2 to 2.3.2 problems](https://www.ruby-forum.com/t/rails-2-1-2-to-2-3-2-problems/163890)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 8\
**Last updated:** [March 31, 2009, 2:27am UTC](https://www.ruby-forum.com/t/rails-2-1-2-to-2-3-2-problems/163890 "2009-03-31T02:27:38Z")

</div>

I just installed Rails 2.3.2 and tried to upgrade my test app from 2.1.2. After installing Rails 2.3.2, I simply changed the gem version in my environment.rb file in config directory as shown below: Specifies gem ve…

---

## [RubyonRails GUI for Leopard?](https://www.ruby-forum.com/t/rubyonrails-gui-for-leopard/164172)

<div class="topic-metadata">

**Author:** [@zensuite](https://www.ruby-forum.com/u/zensuite)\
**Replies:** 9\
**Last updated:** [March 31, 2009, 2:27am UTC](https://www.ruby-forum.com/t/rubyonrails-gui-for-leopard/164172 "2009-03-31T02:27:02Z")

</div>

Hi everybody, I’m a web developer interested on moving to rubyonrails framework, and I’m looking for a good GUI or integrated suite to develop rails under leopard, or linux. Could do you give me any advise about it?.. …

---

## [Rails class cacheing in development mode](https://www.ruby-forum.com/t/rails-class-cacheing-in-development-mode/164273)

<div class="topic-metadata">

**Author:** [@interactivenyc](https://www.ruby-forum.com/u/interactivenyc)\
**Replies:** 5\
**Last updated:** [March 31, 2009, 12:33am UTC](https://www.ruby-forum.com/t/rails-class-cacheing-in-development-mode/164273 "2009-03-31T00:33:34Z")

</div>

I have a rails application that patches ActiveRecord with a hand-coded validator. The patch is made by adding the following lines in config/ environment.rb Rails::Initializer.run do |config| … end class ActiveReco…

---

## [Problems with form\_for(@message.attachments.build ...)](https://www.ruby-forum.com/t/problems-with-form-for-message-attachments-build/164274)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 1\
**Last updated:** [March 30, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/problems-with-form-for-message-attachments-build/164274 "2009-03-30T23:28:23Z")

</div>

Hi, I’m puzzled by the next. I have messages that have attachments. I have an index action for the attachments where I list all the attachments that a message has. From the same index page I can also add new attachme…

---

## [Postfix/Postmap catch-all for local testing?](https://www.ruby-forum.com/t/postfix-postmap-catch-all-for-local-testing/164288)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 11:01pm UTC](https://www.ruby-forum.com/t/postfix-postmap-catch-all-for-local-testing/164288 "2009-03-30T23:01:38Z")

</div>

Hello all! So this isn’t exactly a Ruby on Rails issue, but it fits so well into the RoR typical development cycle that I thought I’d post it here anyway. I’m wondering if anyone knows how to configure postfix on a M…

---

## [Sub-Controller Issue on Host Server - Very Mysterious](https://www.ruby-forum.com/t/sub-controller-issue-on-host-server-very-mysterious/164287)

<div class="topic-metadata">

**Author:** [@beachguy82](https://www.ruby-forum.com/u/beachguy82)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 11:00pm UTC](https://www.ruby-forum.com/t/sub-controller-issue-on-host-server-very-mysterious/164287 "2009-03-30T23:00:34Z")

</div>

Hello all. On my host server, I currently have the paths “/cars” and “/cars/ford” and a default index page comes up for each. I created these by running “ruby script/generate controller cars index” and “ruby script/g…

---

## [No such file or directory - layouts/application.html.erb](https://www.ruby-forum.com/t/no-such-file-or-directory-layouts-application-html-erb/164277)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 3\
**Last updated:** [March 30, 2009, 10:34pm UTC](https://www.ruby-forum.com/t/no-such-file-or-directory-layouts-application-html-erb/164277 "2009-03-30T22:34:13Z")

</div>

This is very frustrating. I am defining a layout for my AdminsController class index action which is as follows: class AdminsController \< ApplicationController before\_filter :signal\_child\_menu #current\_tab :admin d…

---

## [Trying to bind an appended partial that has REST\_in\_place attached to it with jquery?](https://www.ruby-forum.com/t/trying-to-bind-an-appended-partial-that-has-rest-in-place-attached-to-it-with-jquery/164280)

<div class="topic-metadata">

**Author:** [@tripdragon](https://www.ruby-forum.com/u/tripdragon)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 9:44pm UTC](https://www.ruby-forum.com/t/trying-to-bind-an-appended-partial-that-has-rest-in-place-attached-to-it-with-jquery/164280 "2009-03-30T21:44:11Z")

</div>

In my create.js.erb view I am creating a new model in the view. On creation I want to have the appended partial in the dom and selectable so I can click it’s name and run the plugin REST in place with Jquery. #creat…

---

## [Superclass mismatch (Functional test)](https://www.ruby-forum.com/t/superclass-mismatch-functional-test/164276)

<div class="topic-metadata">

**Author:** [@fannus](https://www.ruby-forum.com/u/fannus)\
**Replies:** 1\
**Last updated:** [March 30, 2009, 9:31pm UTC](https://www.ruby-forum.com/t/superclass-mismatch-functional-test/164276 "2009-03-30T21:31:51Z")

</div>

Hilo. I’m trying to build an app with TDD, but my first functional test is a mess. The example from the book fails, and I haven’t found any information on this issue. When I run my test, it throws: C:\\Users\\NomNomNom\\…

---

## [Cropped thumbnails with ImageScience](https://www.ruby-forum.com/t/cropped-thumbnails-with-imagescience/164275)

<div class="topic-metadata">

**Author:** [@demec](https://www.ruby-forum.com/u/demec)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 9:13pm UTC](https://www.ruby-forum.com/t/cropped-thumbnails-with-imagescience/164275 "2009-03-30T21:13:05Z")

</div>

I have a Photo model (below) and as you can see I create some thumbnails. However I want to create a proportionally thymbnail, which basically will be a cropped version, so that the thumbnail will be a perfect square. …

---

## [Problem installing latest ROR from scratch](https://www.ruby-forum.com/t/problem-installing-latest-ror-from-scratch/164236)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 2\
**Last updated:** [March 30, 2009, 8:15pm UTC](https://www.ruby-forum.com/t/problem-installing-latest-ror-from-scratch/164236 "2009-03-30T20:15:34Z")

</div>

I just tried to setup ROR from scratch. I followed the instructions on http://rubyonrails.org/download which is aptly titled to “Get Ruby On Rails in no time”. However, I faced a couple of roadblocks along the way to…

---

## [Active record Query](https://www.ruby-forum.com/t/active-record-query/164262)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 13\
**Last updated:** [March 30, 2009, 8:08pm UTC](https://www.ruby-forum.com/t/active-record-query/164262 "2009-03-30T20:08:29Z")

</div>

In my controller i am doing these querys. Query 1 astock = MyStock.find(:first,:select =\> “Symbol”, :conditions =\>\[“user\_id = ?”, session\[:idnum\]\]) im wanting to find all the rows from my stock with that particular i…

---

## [Printing pdf documents](https://www.ruby-forum.com/t/printing-pdf-documents/164264)

<div class="topic-metadata">

**Author:** [@EdTaupier](https://www.ruby-forum.com/u/EdTaupier)\
**Replies:** 3\
**Last updated:** [March 30, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/printing-pdf-documents/164264 "2009-03-30T19:47:24Z")

</div>

Is it possible to print existing pdf documents (located server side) directly to a client printer without using a viewer? Scenario: I have a list of reports on page where the client can check which reports they woul…

---

## [Couldn't find item with ID = 100](https://www.ruby-forum.com/t/couldnt-find-item-with-id-100/164177)

<div class="topic-metadata">

**Author:** [@derm\_w](https://www.ruby-forum.com/u/derm_w)\
**Replies:** 8\
**Last updated:** [March 30, 2009, 7:09pm UTC](https://www.ruby-forum.com/t/couldnt-find-item-with-id-100/164177 "2009-03-30T19:09:49Z")

</div>

Hi all. I’m new to rails and am learning my way by putting together a simple app. I’m pulling items out of the params by using find(params\[‘id’\]) and showing results in a show view. Things are going along nicely unt…

---

## [Logger for script/runner or console in production mode](https://www.ruby-forum.com/t/logger-for-script-runner-or-console-in-production-mode/164268)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 0\
**Last updated:** [March 30, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/logger-for-script-runner-or-console-in-production-mode/164268 "2009-03-30T18:45:47Z")

</div>

Hi, When running in development mode, I have some model methods that I call via cron + script/runner. These were nicely writing information to the log file as a record of activity. However, in production mode, when …

---

## [Invalid Authenticity Token?](https://www.ruby-forum.com/t/invalid-authenticity-token/164040)

<div class="topic-metadata">

**Author:** [@Richie](https://www.ruby-forum.com/u/Richie)\
**Replies:** 5\
**Last updated:** [March 30, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/invalid-authenticity-token/164040 "2009-03-30T18:12:27Z")

</div>

Hi guys, Before I explain anything here’s my setup: Mac OS X Ruby 1.8.7 from source, RubyGems, Rails 2.3.2, MySQL from source, the ruby mysql adapter gem and mongrel. Firefox 3.07 I’m new to rails and happily under…

---

## [Rendering partial and js together](https://www.ruby-forum.com/t/rendering-partial-and-js-together/164226)

<div class="topic-metadata">

**Author:** [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Replies:** 1\
**Last updated:** [March 30, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/rendering-partial-and-js-together/164226 "2009-03-30T17:03:37Z")

</div>

Hello, I have a form on my page that is popup-like but actually part of the page. it works fine as I used in other page. In order to close it after submission. I do something like respond\_to do|wants| wants.js do r…

---

## [Great discrepancy between Google Analytics and own counter](https://www.ruby-forum.com/t/great-discrepancy-between-google-analytics-and-own-counter/164256)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 3\
**Last updated:** [March 30, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/great-discrepancy-between-google-analytics-and-own-counter/164256 "2009-03-30T16:36:00Z")

</div>

Got Google Analytics running on one of my websites. Google defines a pageview as the most occuring event. Every refresh, every link clicked to a different part of the page, even loading from cache is an additional pag…

---

## [Restricted Textmate Command+T (jump to file)](https://www.ruby-forum.com/t/restricted-textmate-command-t-jump-to-file/164050)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 4\
**Last updated:** [March 30, 2009, 4:34pm UTC](https://www.ruby-forum.com/t/restricted-textmate-command-t-jump-to-file/164050 "2009-03-30T16:34:14Z")

</div>

Hi, Does any Textmate user know how to tell the jump to file command to not look in some folders? Currently my doc/ and spec/ folders are polluting the search facility, and it has become very hard for me to get to the …

---

## [Where can find open source rails forum code?](https://www.ruby-forum.com/t/where-can-find-open-source-rails-forum-code/164225)

<div class="topic-metadata">

**Author:** [@ChandleWEi](https://www.ruby-forum.com/u/ChandleWEi)\
**Replies:** 1\
**Last updated:** [March 30, 2009, 4:20pm UTC](https://www.ruby-forum.com/t/where-can-find-open-source-rails-forum-code/164225 "2009-03-30T16:20:08Z")

</div>

Where can find open source rails forum code? I found Beast but Beast maybe close or not update for long time. Where can I find some good forum I can use

---

## [Controller into the lib folder?](https://www.ruby-forum.com/t/controller-into-the-lib-folder/164099)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 6\
**Last updated:** [March 30, 2009, 3:09pm UTC](https://www.ruby-forum.com/t/controller-into-the-lib-folder/164099 "2009-03-30T15:09:28Z")

</div>

Hi everyone, is it possible to add a controller into the lib folder? I tried but it doesn’t seem to work… Is it because it’s not loaded? Thanks!

---

## [Will\_paginate and SEO](https://www.ruby-forum.com/t/will-paginate-and-seo/164173)

<div class="topic-metadata">

**Author:** [@aldoitalo](https://www.ruby-forum.com/u/aldoitalo)\
**Replies:** 9\
**Last updated:** [March 30, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/will-paginate-and-seo/164173 "2009-03-30T14:53:12Z")

</div>

i have noted a problem in will\_paginate : In a pagination, when go to pages geather than 1 value thath’ ok, but if you back to page 1 in the URL appear the parameter page=1 this is bad for seo optimization, because en…

---

## [JQuery Ajax clash](https://www.ruby-forum.com/t/jquery-ajax-clash/164247)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 4\
**Last updated:** [March 30, 2009, 2:33pm UTC](https://www.ruby-forum.com/t/jquery-ajax-clash/164247 "2009-03-30T14:33:54Z")

</div>

Hi, I’m having a search form which renders a table of search results. The search box is doing an ajax call. In my search results, i’ve JQuery scripts written for sorting and pagination and some other operations that …

---

## [Re:Tutorials](https://www.ruby-forum.com/t/re-tutorials/164250)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 1\
**Last updated:** [March 30, 2009, 2:18pm UTC](https://www.ruby-forum.com/t/re-tutorials/164250 "2009-03-30T14:18:26Z")

</div>

Hi, This is Ravindra. I am from Hyderabad. Can any one please suggest me any institute to learn Ruby R. or any Tutorials. Thanking You, Ravindra.k

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

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