# Rails

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

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

---

## [How to do printing in ROR?](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 7\
**Last updated:** [November 2, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/how-to-do-printing-in-ror/178287 "2009-11-02T19:33:09Z")

</div>

Hi, I want to do printing in ROR? How should I do that? Is there any API’s are present? Any help appreciated? Thanks, Tushar G.

---

## [Will\_paginate vs mislav-will\_paginate](https://www.ruby-forum.com/t/will-paginate-vs-mislav-will-paginate/178270)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 19\
**Last updated:** [November 2, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/will-paginate-vs-mislav-will-paginate/178270 "2009-11-02T18:22:16Z")

</div>

I’ve just reinstalled linux (9.10) and am trying to match my gem environment to our server’s. I’m having a problem with will\_paginate. On the server, under gem list, i have “mislav-will\_paginate (2.3.6)”. So, i’m try…

---

## [Lazy-loaded sessions with memcache under 2.3.4?](https://www.ruby-forum.com/t/lazy-loaded-sessions-with-memcache-under-2-3-4/178314)

<div class="topic-metadata">

**Author:** [@Wisq](https://www.ruby-forum.com/u/Wisq)\
**Replies:** 0\
**Last updated:** [November 2, 2009, 6:18pm UTC](https://www.ruby-forum.com/t/lazy-loaded-sessions-with-memcache-under-2-3-4/178314 "2009-11-02T18:18:14Z")

</div>

I’ve got a Rails 2.2.3 that I recently upgraded to 2.3.4. I made a new Rails tree and copied most of the stuff under “config” over (from the new tree to my existing tree) in order to get things to a clean 2.3.x state…

---

## [Restful\_authentication errors](https://www.ruby-forum.com/t/restful-authentication-errors/155430)

<div class="topic-metadata">

**Author:** [@MarkusW](https://www.ruby-forum.com/u/MarkusW)\
**Replies:** 2\
**Last updated:** [November 2, 2009, 6:12pm UTC](https://www.ruby-forum.com/t/restful-authentication-errors/155430 "2009-11-02T18:12:12Z")

</div>

When I run \[code\] script/generate authenticated user --include-activation \[/ code\] it seems to work at first, but then it reports: " The name ‘SessionsHelper’ is either already used in your application or reserved …

---

## [Redundant require lib statements](https://www.ruby-forum.com/t/redundant-require-lib-statements/178305)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [November 2, 2009, 3:51pm UTC](https://www.ruby-forum.com/t/redundant-require-lib-statements/178305 "2009-11-02T15:51:36Z")

</div>

Hi, Let’s say in Model1 I require ‘net/http’, and in Model9 I also require ‘net/http’ because I forgot it was already required in Mode1, will that cause a problem? Should I redundantly require libs? Should I put requ…

---

## [Migration from 2.2.2 to 2.3.4 causes CPU overhead on servers](https://www.ruby-forum.com/t/migration-from-2-2-2-to-2-3-4-causes-cpu-overhead-on-servers/178306)

<div class="topic-metadata">

**Author:** [@oscar-alexander](https://www.ruby-forum.com/u/oscar-alexander)\
**Replies:** 0\
**Last updated:** [November 2, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/migration-from-2-2-2-to-2-3-4-causes-cpu-overhead-on-servers/178306 "2009-11-02T15:40:47Z")

</div>

Hi. I migrated my application from rails 2.2.2 to 2.3.4 and from passenger 2.0.6 to 2.2.5. Good news that my app now is eating less memory, and bad news that cpu load is very high and rails processes are all have sta…

---

## [How to get value of select box for button\_to?](https://www.ruby-forum.com/t/how-to-get-value-of-select-box-for-button-to/178304)

<div class="topic-metadata">

**Author:** [@TJ\_Lee](https://www.ruby-forum.com/u/TJ_Lee)\
**Replies:** 0\
**Last updated:** [November 2, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/how-to-get-value-of-select-box-for-button-to/178304 "2009-11-02T15:40:12Z")

</div>

Hi, I have a select box with the following options: Destination GoldCoast Melbourne How do I get the value of the select box into the button\_to? \<%= button\_to “Search”, {:controller =\> “ticket”, :action=\>“search…

---

## [Form\_tag wih two Button](https://www.ruby-forum.com/t/form-tag-wih-two-button/178181)

<div class="topic-metadata">

**Author:** [@simo](https://www.ruby-forum.com/u/simo)\
**Replies:** 4\
**Last updated:** [November 2, 2009, 3:27pm UTC](https://www.ruby-forum.com/t/form-tag-wih-two-button/178181 "2009-11-02T15:27:48Z")

</div>

i have a form\_tag with two button: \<% form\_tag “/controller/action” %\> \<% submit\_tag ‘send’ %\> \<% submit\_tag ‘check’, :onclick =\> "javascript:… %\> \<% end %\> I would if I click on check-button, javascript is ONLY cal…

---

## [\[ANN\] Ruby Manor 2: Manor Harder - Dec 12th, London](https://www.ruby-forum.com/t/ann-ruby-manor-2-manor-harder-dec-12th-london/178300)

<div class="topic-metadata">

**Author:** [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Replies:** 0\
**Last updated:** [November 2, 2009, 2:06pm UTC](https://www.ruby-forum.com/t/ann-ruby-manor-2-manor-harder-dec-12th-london/178300 "2009-11-02T14:06:33Z")

</div>

Hi all, Just a quick note to let you know that The Guvner has thrown open the doors to the Manor once again, and Ruby Manor will be happening on December 12th in London1. Ruby Manor doesn’t use a typical ‘call for pr…

---

## [Insert Multiple records in table](https://www.ruby-forum.com/t/insert-multiple-records-in-table/178294)

<div class="topic-metadata">

**Author:** [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Replies:** 3\
**Last updated:** [November 2, 2009, 1:27pm UTC](https://www.ruby-forum.com/t/insert-multiple-records-in-table/178294 "2009-11-02T13:27:55Z")

</div>

Hi Here I want to insert multiple records into a single table. Table is users.: email, password, password\_confirmation and country… “Add one more” functionality is also there so multiple records can be vary… There a…

---

## [Email configuration in ROR](https://www.ruby-forum.com/t/email-configuration-in-ror/178288)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 3\
**Last updated:** [November 2, 2009, 12:41pm UTC](https://www.ruby-forum.com/t/email-configuration-in-ror/178288 "2009-11-02T12:41:41Z")

</div>

Hi, I am using rails 2.2. I want to send out an email through my application. Can anyone tell me How should I configure the email sever or what are settings required for this? Any help appreciated. Thanks, Tushar …

---

## [Ajax Pagination](https://www.ruby-forum.com/t/ajax-pagination/178041)

<div class="topic-metadata">

**Author:** [@Rails\_ROR](https://www.ruby-forum.com/u/Rails_ROR)\
**Replies:** 2\
**Last updated:** [November 2, 2009, 12:08pm UTC](https://www.ruby-forum.com/t/ajax-pagination/178041 "2009-11-02T12:08:54Z")

</div>

Hi Everybody, I want to implement pagination with ajax. I followed this url: http://wiki.github.com/mislav/will\_paginate/ajax-pagination I am getting the page results. But when i click on the next or 2,3… i am just …

---

## [Ruby browser](https://www.ruby-forum.com/t/ruby-browser/178269)

<div class="topic-metadata">

**Author:** [@Ernesto\_R](https://www.ruby-forum.com/u/Ernesto_R)\
**Replies:** 2\
**Last updated:** [November 2, 2009, 12:07pm UTC](https://www.ruby-forum.com/t/ruby-browser/178269 "2009-11-02T12:07:44Z")

</div>

hi guys, I’m trying to do a program that automates some site usage, like fetch the site, fill a field and “press” the send button. So, it’ll behave like a real browser. Is there a plugin out there ready to work ? Or…

---

## [Twitter by John Nunemaker](https://www.ruby-forum.com/t/twitter-by-john-nunemaker/178234)

<div class="topic-metadata">

**Author:** [@andkjaer](https://www.ruby-forum.com/u/andkjaer)\
**Replies:** 5\
**Last updated:** [November 2, 2009, 12:04pm UTC](https://www.ruby-forum.com/t/twitter-by-john-nunemaker/178234 "2009-11-02T12:04:48Z")

</div>

Hi Railer’s, Im pllaying around with the Twitter API wrapper by John Nunemaker, but i’m wondering where to put all the logic. It can’t find any examples with this code built into rails. What im doing now is like this…

---

## [Your Ruby IDE](https://www.ruby-forum.com/t/your-ruby-ide/87048)

<div class="topic-metadata">

**Author:** [@stewartm](https://www.ruby-forum.com/u/stewartm)\
**Replies:** 66\
**Last updated:** [November 2, 2009, 12:00pm UTC](https://www.ruby-forum.com/t/your-ruby-ide/87048 "2009-11-02T12:00:06Z")

</div>

Just a poll here i am looking for a good IDE for rails and wondering what you guys use? features i like in an ide code highlites auto code complete file browser Currently i am using dreamwever but the code highliti…

---

## [Assist me in Screen Scraping](https://www.ruby-forum.com/t/assist-me-in-screen-scraping/178278)

<div class="topic-metadata">

**Author:** [@hassano](https://www.ruby-forum.com/u/hassano)\
**Replies:** 3\
**Last updated:** [November 2, 2009, 11:50am UTC](https://www.ruby-forum.com/t/assist-me-in-screen-scraping/178278 "2009-11-02T11:50:44Z")

</div>

Hi everyone, Am a newbie in RoR. I want to develop a rails app, which could search flight info from my rails app, fetch the flight informations from various airlines sites(for example; airasia and malaysia airlines). …

---

## [Please help - complicated polymorphic association](https://www.ruby-forum.com/t/please-help-complicated-polymorphic-association/178271)

<div class="topic-metadata">

**Author:** [@thelemcke](https://www.ruby-forum.com/u/thelemcke)\
**Replies:** 1\
**Last updated:** [November 2, 2009, 11:48am UTC](https://www.ruby-forum.com/t/please-help-complicated-polymorphic-association/178271 "2009-11-02T11:48:59Z")

</div>

I am trying to build a shared-appointment system, where users can subscribe to appointments and be updated whenever changes are made to them. I have three objects in this system, appointments, users, and subscribers.…

---

## [Nifty scaffolding and virtual attributes](https://www.ruby-forum.com/t/nifty-scaffolding-and-virtual-attributes/178285)

<div class="topic-metadata">

**Author:** [@C\_K\_Kashyap](https://www.ruby-forum.com/u/C_K_Kashyap)\
**Replies:** 1\
**Last updated:** [November 2, 2009, 10:07am UTC](https://www.ruby-forum.com/t/nifty-scaffolding-and-virtual-attributes/178285 "2009-11-02T10:07:07Z")

</div>

Hi, I was trying to get virtual attributes working for a model…but looks like with models generated by nifty\_scaffolding the “unknownattribute” exception gets silently eaten … can someone please tell me how to get it…

---

## [Couldn't find SalesOrder without an ID](https://www.ruby-forum.com/t/couldnt-find-salesorder-without-an-id/178224)

<div class="topic-metadata">

**Author:** [@vishnukumar](https://www.ruby-forum.com/u/vishnukumar)\
**Replies:** 5\
**Last updated:** [November 2, 2009, 10:00am UTC](https://www.ruby-forum.com/t/couldnt-find-salesorder-without-an-id/178224 "2009-11-02T10:00:41Z")

</div>

hi, I am doing unit testing. I have a table as SalesOrder, where “ordernumber” is the primary key of the table. When I insert records in the table from unit testing, I got error like, ActiveRecord::RecordNotFound: Co…

---

## [How to disable a item of select box](https://www.ruby-forum.com/t/how-to-disable-a-item-of-select-box/178230)

<div class="topic-metadata">

**Author:** [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Replies:** 5\
**Last updated:** [November 2, 2009, 9:16am UTC](https://www.ruby-forum.com/t/how-to-disable-a-item-of-select-box/178230 "2009-11-02T09:16:50Z")

</div>

Hi I want to disable only one item of select box. I tried to used :disabled=\>‘item’ but it disable select box itself. So anybody how to do this? Thanks Brijesh S.

---

## [Savage\_Beast error](https://www.ruby-forum.com/t/savage-beast-error/178286)

<div class="topic-metadata">

**Author:** [@smit\_shah](https://www.ruby-forum.com/u/smit_shah)\
**Replies:** 0\
**Last updated:** [November 2, 2009, 6:53am UTC](https://www.ruby-forum.com/t/savage-beast-error/178286 "2009-11-02T06:53:11Z")

</div>

Hi Al… I have implemented savage\_beast plugin successfully. But when I create new forum it gives me error like “undefined method \`title’ for Forum:0xb6421f38” In the code, there is no field named as “title”… Help me…

---

## [Headache with sessions being shared](https://www.ruby-forum.com/t/headache-with-sessions-being-shared/178268)

<div class="topic-metadata">

**Author:** [@aftershock](https://www.ruby-forum.com/u/aftershock)\
**Replies:** 5\
**Last updated:** [November 2, 2009, 4:38am UTC](https://www.ruby-forum.com/t/headache-with-sessions-being-shared/178268 "2009-11-02T04:38:12Z")

</div>

I have a really horrendous problem with sessions. before\_filter :find\_cart\_from\_session private def find\_cart\_from\_session if session\[:cart\] # if there’s is a cart in the session begin @cart = Cart.find(session\[:ca…

---

## [How to pass selected checkboxes from form when a select element changes?](https://www.ruby-forum.com/t/how-to-pass-selected-checkboxes-from-form-when-a-select-element-changes/178275)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 1\
**Last updated:** [November 2, 2009, 3:50am UTC](https://www.ruby-forum.com/t/how-to-pass-selected-checkboxes-from-form-when-a-select-element-changes/178275 "2009-11-02T03:50:12Z")

</div>

I have a list that is enclosed in a form. Each item in the list has a checkbox, so an excerted bit of the code is (the part to list the contacts is really in a partial): \<% form\_tag fxn\_for\_selected\_contacts\_path, :me…

---

## [Background Job - setup error](https://www.ruby-forum.com/t/background-job-setup-error/178273)

<div class="topic-metadata">

**Author:** [@bill\_walton](https://www.ruby-forum.com/u/bill_walton)\
**Replies:** 0\
**Last updated:** [November 1, 2009, 11:41pm UTC](https://www.ruby-forum.com/t/background-job-setup-error/178273 "2009-11-01T23:41:11Z")

</div>

Greetings! I’m trying to use Ara’s Background Job on Windows and running into a problem. I’ve installed it as a gem and added “require ‘bj’” at the end of environment.rb. When I run ‘bj setup’ i’m getting a “FATAL –…

---

## [Single inheritance with nested attributes routing problem](https://www.ruby-forum.com/t/single-inheritance-with-nested-attributes-routing-problem/178272)

<div class="topic-metadata">

**Author:** [@james-calivar](https://www.ruby-forum.com/u/james-calivar)\
**Replies:** 2\
**Last updated:** [November 1, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/single-inheritance-with-nested-attributes-routing-problem/178272 "2009-11-01T21:28:26Z")

</div>

I am working on a project that involves many different types of users, each with their own sets of information. I decided to condense the variety of users into a single class to deal with things like logging into the …

---

## [I know this is a join, but not sure how to do it](https://www.ruby-forum.com/t/i-know-this-is-a-join-but-not-sure-how-to-do-it/178211)

<div class="topic-metadata">

**Author:** [@lunaclaire](https://www.ruby-forum.com/u/lunaclaire)\
**Replies:** 4\
**Last updated:** [November 1, 2009, 9:11pm UTC](https://www.ruby-forum.com/t/i-know-this-is-a-join-but-not-sure-how-to-do-it/178211 "2009-11-01T21:11:13Z")

</div>

here are a few models: Stream has\_many :postings belongs\_to :user Posting belongs\_to :stream belongs\_to :user User has\_many :streams has\_many :postings Each Posting has a ‘created\_at’ attribute. I need to find…

---

## [\*\*\* PLEASE HELP! \*\*\* NoMethodError in AvatarController#upload](https://www.ruby-forum.com/t/please-help-nomethoderror-in-avatarcontroller-upload/178236)

<div class="topic-metadata">

**Author:** [@RubyonRails\_newbie](https://www.ruby-forum.com/u/RubyonRails_newbie)\
**Replies:** 10\
**Last updated:** [November 1, 2009, 9:04pm UTC](https://www.ruby-forum.com/t/please-help-nomethoderror-in-avatarcontroller-upload/178236 "2009-11-01T21:04:47Z")

</div>

Hi Everyone! I’m trying to add the avatar upload functionality in Ruby on rails following the railsspace book. Before I got the code and re-wrote it for my own needs, I wanted to make sure everything worked anyway, s…

---

## [What's your favorite thing about Rails?](https://www.ruby-forum.com/t/whats-your-favorite-thing-about-rails/178208)

<div class="topic-metadata">

**Author:** [@dustin](https://www.ruby-forum.com/u/dustin)\
**Replies:** 12\
**Last updated:** [November 1, 2009, 8:13pm UTC](https://www.ruby-forum.com/t/whats-your-favorite-thing-about-rails/178208 "2009-11-01T20:13:14Z")

</div>

What do seasoned developers really enjoy about Rails. How does it make your life easier? This is for favorites, not what you don’t like. Thanks, Dustin

---

## [Help me cut through auto-complete choices](https://www.ruby-forum.com/t/help-me-cut-through-auto-complete-choices/178249)

<div class="topic-metadata">

**Author:** [@snlsn](https://www.ruby-forum.com/u/snlsn)\
**Replies:** 4\
**Last updated:** [November 1, 2009, 7:42pm UTC](https://www.ruby-forum.com/t/help-me-cut-through-auto-complete-choices/178249 "2009-11-01T19:42:43Z")

</div>

Does anyone have any success stories they can share regarding implementing auto-complete in a Rails 2.3.2/jQuery environemnt? I’m not looking for “how to do it.” I’m seeking recommendations or pointers to gems or plug…

---

## [Belongs\_to with global cache](https://www.ruby-forum.com/t/belongs-to-with-global-cache/178228)

<div class="topic-metadata">

**Author:** [@notid](https://www.ruby-forum.com/u/notid)\
**Replies:** 2\
**Last updated:** [November 1, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/belongs-to-with-global-cache/178228 "2009-11-01T17:45:57Z")

</div>

Hi, I’m pretty new to active record, so I’m not sure if the way I’m trying to do this is wrong. I’ve trimmed down my example to as small as I can think of. Suppose I have something like this: class Person \< ActiveRec…

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

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