# Rails

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

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

---

## [Method models and complex querries](https://www.ruby-forum.com/t/method-models-and-complex-querries/146641)

<div class="topic-metadata">

**Author:** [@idk](https://www.ruby-forum.com/u/idk)\
**Replies:** 2\
**Last updated:** [August 23, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/method-models-and-complex-querries/146641 "2008-08-23T17:31:09Z")

</div>

Hello, this is a repost, something seemed to go wrong last time I tried to post… Anyway I got this model: class Command \< ActiveRecord::Base has\_many :executions def with\_extension(ext) Extension.all(:include =\> :c…

---

## [Model methods](https://www.ruby-forum.com/t/model-methods/146646)

<div class="topic-metadata">

**Author:** [@idk](https://www.ruby-forum.com/u/idk)\
**Replies:** 1\
**Last updated:** [August 23, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/model-methods/146646 "2008-08-23T16:21:25Z")

</div>

Hello, I’m pretty new to ruby and rails. This is part of my code: class Command \< ActiveRecord::Base has\_many :executions def with\_extension(ext) Extension.all(:include =\> :command, :conditions =\> { :suffix =\> ext}…

---

## [Sum Method in Active Record](https://www.ruby-forum.com/t/sum-method-in-active-record/146603)

<div class="topic-metadata">

**Author:** [@chinnakaruppan](https://www.ruby-forum.com/u/chinnakaruppan)\
**Replies:** 4\
**Last updated:** [August 23, 2008, 4:03pm UTC](https://www.ruby-forum.com/t/sum-method-in-active-record/146603 "2008-08-23T16:03:17Z")

</div>

Hi, How can I use the sum method in the Active Record in my normal class.I have one helper class…I saw a webcast in which the guy was using the method in rails in his class by just including the module that contained …

---

## [Need help regarding query log dataset](https://www.ruby-forum.com/t/need-help-regarding-query-log-dataset/196789)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 23, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/need-help-regarding-query-log-dataset/196789 "2008-08-23T15:54:30Z")

</div>

I am working on reserch thesis of inproving ranking of web search results. i need dataset of quey log of web search engine. I have AOL dataset but i need some other dataset i.e. google, altavista or ask. or any random…

---

## [Invitation System - Design Help for Newbie](https://www.ruby-forum.com/t/invitation-system-design-help-for-newbie/146649)

<div class="topic-metadata">

**Author:** [@mike.wilson](https://www.ruby-forum.com/u/mike.wilson)\
**Replies:** 0\
**Last updated:** [August 23, 2008, 3:54pm UTC](https://www.ruby-forum.com/t/invitation-system-design-help-for-newbie/146649 "2008-08-23T15:54:29Z")

</div>

Hello there, I just started a project using RoR. Was a C# / .NET programmer before jumping into this project. Here’s my project’s details: Architect a website that has users, projects, events, and groups. The site h…

---

## [How to read content from existing pdf through rubyonrails](https://www.ruby-forum.com/t/how-to-read-content-from-existing-pdf-through-rubyonrails/146648)

<div class="topic-metadata">

**Author:** [@vivek](https://www.ruby-forum.com/u/vivek)\
**Replies:** 0\
**Last updated:** [August 23, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/how-to-read-content-from-existing-pdf-through-rubyonrails/146648 "2008-08-23T15:53:54Z")

</div>

hello, i have recently join this group as i found that many solutions regarding rubyonrails are found in this group. I am having one serious issues which i need to solve of reading and searching the content f…

---

## [Model methods and joins](https://www.ruby-forum.com/t/model-methods-and-joins/146645)

<div class="topic-metadata">

**Author:** [@idk](https://www.ruby-forum.com/u/idk)\
**Replies:** 0\
**Last updated:** [August 23, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/model-methods-and-joins/146645 "2008-08-23T15:53:54Z")

</div>

Hello, this is a repost, something seemed to go wrong last time I tried to post… Anyway I got this model: class Command \< ActiveRecord::Base has\_many :executions def with\_extension(ext) Extension.all(:include =\> :c…

---

## [Paginating Partial?](https://www.ruby-forum.com/t/paginating-partial/146575)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [August 23, 2008, 2:51pm UTC](https://www.ruby-forum.com/t/paginating-partial/146575 "2008-08-23T14:51:50Z")

</div>

I’ve settled on a design where the parent ‘show’ view holds the partial(s) that display the children. As an example if the parent record is ‘auto’ the child records are ‘fillups’. After many years the fuel fillups for…

---

## [Apache \<-\> mongrel cluster; nearly there but](https://www.ruby-forum.com/t/apache-mongrel-cluster-nearly-there-but/146586)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [August 23, 2008, 11:16am UTC](https://www.ruby-forum.com/t/apache-mongrel-cluster-nearly-there-but/146586 "2008-08-23T11:16:31Z")

</div>

Ok, after the earlier weirdness with stopping my mongrel cluster I’ve now got things to the point where I’m working on the Apache proxy and after following the instructions from various sources, it doesn’t work. Most …

---

## [PayPal IPN without activemerchant, please](https://www.ruby-forum.com/t/paypal-ipn-without-activemerchant-please/146634)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 1\
**Last updated:** [August 23, 2008, 10:59am UTC](https://www.ruby-forum.com/t/paypal-ipn-without-activemerchant-please/146634 "2008-08-23T10:59:00Z")

</div>

Please could someone explain the communication with PayPal for IPN without activemerchant plugin. I couldn’t get that to work. It should be a matter of a few lines of code so why use a plugin. This is what I have: @q…

---

## [Setting session data within Integration Test](https://www.ruby-forum.com/t/setting-session-data-within-integration-test/110779)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 8\
**Last updated:** [August 23, 2008, 10:20am UTC](https://www.ruby-forum.com/t/setting-session-data-within-integration-test/110779 "2008-08-23T10:20:18Z")

</div>

How do I manipulate the session data in an integration test? We have a controller that manipulates session data, and I want to see, passing in certain session data, what comes out. The session is available in integrat…

---

## [Why ActionController::Base.class\_eval for includes?](https://www.ruby-forum.com/t/why-actioncontroller-base-class-eval-for-includes/146633)

<div class="topic-metadata">

**Author:** [@toddlc](https://www.ruby-forum.com/u/toddlc)\
**Replies:** 0\
**Last updated:** [August 23, 2008, 9:04am UTC](https://www.ruby-forum.com/t/why-actioncontroller-base-class-eval-for-includes/146633 "2008-08-23T09:04:45Z")

</div>

Just out of curiosity, why does action\_controller.rb include classes with class\_eval instead of directly? I.e., why ActionController::Base.class\_eval do include ActionController::Flash include ActionController::Filt…

---

## [Substruct 1.0.a4 RELEASED](https://www.ruby-forum.com/t/substruct-1-0-a4-released/146632)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 0\
**Last updated:** [August 23, 2008, 8:51am UTC](https://www.ruby-forum.com/t/substruct-1-0-a4-released/146632 "2008-08-23T08:51:22Z")

</div>

Substruct - the Ruby on Rails e-commerce and content management software just tagged and bagged the last release before we go 1.0. The version number is seriously misleading as the project has been active for over 2 y…

---

## [Anyone used mor.ph?](https://www.ruby-forum.com/t/anyone-used-mor-ph/146287)

<div class="topic-metadata">

**Author:** [@leei](https://www.ruby-forum.com/u/leei)\
**Replies:** 1\
**Last updated:** [August 23, 2008, 5:28am UTC](https://www.ruby-forum.com/t/anyone-used-mor-ph/146287 "2008-08-23T05:28:08Z")

</div>

Anyone tried the mor.ph platform yet ? Their website is mor.ph - mor Resources and Information.

---

## [Does map.root need to be the last named route in routes.rb?](https://www.ruby-forum.com/t/does-map-root-need-to-be-the-last-named-route-in-routes-rb/146615)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [August 23, 2008, 12:59am UTC](https://www.ruby-forum.com/t/does-map-root-need-to-be-the-last-named-route-in-routes-rb/146615 "2008-08-23T00:59:10Z")

</div>

If I put map.root :controller =\> ‘blah’ before any of my other named routes, I get the error: ActionController::MethodNotAllowed Only get, head, post, put, and delete requests are allowed. but if I put it after all …

---

## [Pulling from more then on table to populate a select\_box](https://www.ruby-forum.com/t/pulling-from-more-then-on-table-to-populate-a-select-box/146594)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [August 23, 2008, 12:19am UTC](https://www.ruby-forum.com/t/pulling-from-more-then-on-table-to-populate-a-select-box/146594 "2008-08-23T00:19:07Z")

</div>

I have two tables - Hotels and HotelAllBrands - and I need to pull data from both tables to fill in a select\_box. Current I am just pulling from one: \<%= select( “hotelmembership”, “hotel\_id”, Hotel.find( :all, :orde…

---

## [Rewriting url path element as parameter](https://www.ruby-forum.com/t/rewriting-url-path-element-as-parameter/146609)

<div class="topic-metadata">

**Author:** [@Allan](https://www.ruby-forum.com/u/Allan)\
**Replies:** 0\
**Last updated:** [August 22, 2008, 11:44pm UTC](https://www.ruby-forum.com/t/rewriting-url-path-element-as-parameter/146609 "2008-08-22T23:44:02Z")

</div>

Hi, I’d like to rewrite the url: http://myapp.mycompany.com/project\_name/some\_action/id?… to http://myapp.mycompany.com/some\_action/id?...&project=project\_name or map it somehow to the appropriate rails controller. …

---

## [Rails Laptop](https://www.ruby-forum.com/t/rails-laptop/146444)

<div class="topic-metadata">

**Author:** [@kylemathews](https://www.ruby-forum.com/u/kylemathews)\
**Replies:** 29\
**Last updated:** [August 22, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/rails-laptop/146444 "2008-08-22T23:19:00Z")

</div>

I’m buying a laptop, and I’m trying to decide between a Mac or some other laptop with Linux. I’ve always been a windows user, and I really want to try something different. If it weren’t for Textmate, I’d probably hav…

---

## [Iphone Routes Help](https://www.ruby-forum.com/t/iphone-routes-help/146606)

<div class="topic-metadata">

**Author:** [@Jeff\_Larkin](https://www.ruby-forum.com/u/Jeff_Larkin)\
**Replies:** 0\
**Last updated:** [August 22, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/iphone-routes-help/146606 "2008-08-22T23:08:53Z")

</div>

Hi all. I recently implemented an iphone interface to a rails CMS using an iphone subdomain, since this seems to be the most common way to do this among rails apps. I didn’t think about the implications this would h…

---

## [Polymorphic problem](https://www.ruby-forum.com/t/polymorphic-problem/146523)

<div class="topic-metadata">

**Author:** [@almartin](https://www.ruby-forum.com/u/almartin)\
**Replies:** 5\
**Last updated:** [August 22, 2008, 11:08pm UTC](https://www.ruby-forum.com/t/polymorphic-problem/146523 "2008-08-22T23:08:18Z")

</div>

Hi, I’m in the process of learning ruby on rails so this will be one of many posts by me when I can’t find the solution by googling. I have set up a polymorphic relationship that I can’t get to work when storing data. …

---

## [Link\_to\_remote options\[:position\] broken in edge?](https://www.ruby-forum.com/t/link-to-remote-options-position-broken-in-edge/146601)

<div class="topic-metadata">

**Author:** [@jdevine](https://www.ruby-forum.com/u/jdevine)\
**Replies:** 0\
**Last updated:** [August 22, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/link-to-remote-options-position-broken-in-edge/146601 "2008-08-22T21:52:06Z")

</div>

It seems that for options\[:position\] to work in edge rails now, you must specify “‘bottom’” instead of :bottom. Prototype is expecting a string here, and if you feed it the symbol the javascript is written as {inserti…

---

## [Please send me](https://www.ruby-forum.com/t/please-send-me/146595)

<div class="topic-metadata">

**Author:** [@ramu](https://www.ruby-forum.com/u/ramu)\
**Replies:** 5\
**Last updated:** [August 22, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/please-send-me/146595 "2008-08-22T21:12:45Z")

</div>

Hi, I am new to Rails and I pretty much want to learn ROR I found Agile Web D. with Rails, 3rd Edition is the good book to start it. But I dont this book. Please send me the free download link for this ebook or if yo…

---

## [Help with Autotest + Rspec](https://www.ruby-forum.com/t/help-with-autotest-rspec/146531)

<div class="topic-metadata">

**Author:** [@tikaro](https://www.ruby-forum.com/u/tikaro)\
**Replies:** 2\
**Last updated:** [August 22, 2008, 8:20pm UTC](https://www.ruby-forum.com/t/help-with-autotest-rspec/146531 "2008-08-22T20:20:37Z")

</div>

I’ve been getting into Rspec and the final piece I have yet to get working is Autotest. Pretty sure I’ve got everything installed correctly- Gems: ZenTest 3.1, Rspec 1.1.4 Plugin: Rspec Rails On Rails 2.1 I can man…

---

## [Multiple Form Fields with Same Model?](https://www.ruby-forum.com/t/multiple-form-fields-with-same-model/63147)

<div class="topic-metadata">

**Author:** [@Donnie\_Jones](https://www.ruby-forum.com/u/Donnie_Jones)\
**Replies:** 3\
**Last updated:** [August 22, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/multiple-form-fields-with-same-model/63147 "2008-08-22T19:09:08Z")

</div>

Hello, I’m trying to create a form that will allow a user to submit a list of phone numbers, but the list is dynamically created. Thus allowing my form to submit an unknown number of phone numbers. Here is some of …

---

## [Install the gem or a package?](https://www.ruby-forum.com/t/install-the-gem-or-a-package/146590)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [August 22, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/install-the-gem-or-a-package/146590 "2008-08-22T18:58:53Z")

</div>

I just installed macports. When do you know to install a gem or a package? For example the rb-rake package. Whats the difference between the 2? Thanks!

---

## [Testing tutorials needed](https://www.ruby-forum.com/t/testing-tutorials-needed/146541)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 5\
**Last updated:** [August 22, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/testing-tutorials-needed/146541 "2008-08-22T18:42:43Z")

</div>

Hi Could anyone points me to some good links covering Testing in rails.I am just beginner in testing and I know rails provides all the tools for unit,functional and integration testing…Since i learned only them theor…

---

## [Acts\_as\_leashed, my first 'plug-in'](https://www.ruby-forum.com/t/acts-as-leashed-my-first-plug-in/146589)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 22, 2008, 6:09pm UTC](https://www.ruby-forum.com/t/acts-as-leashed-my-first-plug-in/146589 "2008-08-22T18:09:52Z")

</div>

Hey! Have you ever had the feeling that that source code you have just deployed could be copy-pasted and reused with the help a front-end guy without your authorization? I do! So I wrote a (ridiculous) line of code t…

---

## [Simple question for processing array hash](https://www.ruby-forum.com/t/simple-question-for-processing-array-hash/146568)

<div class="topic-metadata">

**Author:** [@predhme](https://www.ruby-forum.com/u/predhme)\
**Replies:** 3\
**Last updated:** [August 22, 2008, 5:25pm UTC](https://www.ruby-forum.com/t/simple-question-for-processing-array-hash/146568 "2008-08-22T17:25:48Z")

</div>

Hey guys/gals I have three models… Request Problem AgendaItem the request and problem are setup as has\_one :agenda\_item, :as =\> :resource and the AgendaItem is setup as belongs\_to :resource, :polymorphic =\> true …

---

## [Current convention to generate a website?](https://www.ruby-forum.com/t/current-convention-to-generate-a-website/146573)

<div class="topic-metadata">

**Author:** [@xchaotic](https://www.ruby-forum.com/u/xchaotic)\
**Replies:** 1\
**Last updated:** [August 22, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/current-convention-to-generate-a-website/146573 "2008-08-22T16:50:34Z")

</div>

Hi. I went through a few tutorials, made rails running on mac, windows, linux, apache and lighttpd etc. Now I’d like to start some real project, a web page, with news, articles and ads sections. It also needs to hav…

---

## [Creating a selection box](https://www.ruby-forum.com/t/creating-a-selection-box/146529)

<div class="topic-metadata">

**Author:** [@nodrew](https://www.ruby-forum.com/u/nodrew)\
**Replies:** 2\
**Last updated:** [August 22, 2008, 4:48pm UTC](https://www.ruby-forum.com/t/creating-a-selection-box/146529 "2008-08-22T16:48:38Z")

</div>

I want to display a selection box on a webpage using data from my DB. The data is an array @schools returned by the find method of ActiveRecord. I tried the following: \<% school = {:id =\> @student\_data.school\_id}%\> …

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

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