# Rails

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

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

---

## [Check\_Box Validation Script doesn't work](https://www.ruby-forum.com/t/check-box-validation-script-doesnt-work/192518)

<div class="topic-metadata">

**Author:** [@pcortes](https://www.ruby-forum.com/u/pcortes)\
**Replies:** 1\
**Last updated:** [August 2, 2010, 4:12pm UTC](https://www.ruby-forum.com/t/check-box-validation-script-doesnt-work/192518 "2010-08-02T16:12:26Z")

</div>

Hello, I’m a complete newbie to Rails, and am trying to jump in and add something to my application. I’m trying to have users check a checkbox, accepting our terms of service, prior to registering. I have validation …

---

## [Stdin/stdout/stderr problem in g++ and rails](https://www.ruby-forum.com/t/stdin-stdout-stderr-problem-in-g-and-rails/192492)

<div class="topic-metadata">

**Author:** [@silver-spoon](https://www.ruby-forum.com/u/silver-spoon)\
**Replies:** 1\
**Last updated:** [August 2, 2010, 4:01pm UTC](https://www.ruby-forum.com/t/stdin-stdout-stderr-problem-in-g-and-rails/192492 "2010-08-02T16:01:19Z")

</div>

In my rails controller, I am doing the following : @output = g++ j.cpp -o "prog" && ./prog This gives the output in the @output variable which i can display in my view. But the above works only if the j.cpp is correct…

---

## [Rails Strives For DRY. A Lot of REST Routes, Not So DRY](https://www.ruby-forum.com/t/rails-strives-for-dry-a-lot-of-rest-routes-not-so-dry/192570)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 1\
**Last updated:** [August 2, 2010, 3:28pm UTC](https://www.ruby-forum.com/t/rails-strives-for-dry-a-lot-of-rest-routes-not-so-dry/192570 "2010-08-02T15:28:29Z")

</div>

Most in the Rails community seem stick with 1 controller per resource when using RESTfull routes. This makes sense for a resource with one scope and one view, but once a resource is used with multiple scopes and/or vi…

---

## [Average Memory A Normal Ruby On Rails Site Consumes](https://www.ruby-forum.com/t/average-memory-a-normal-ruby-on-rails-site-consumes/192577)

<div class="topic-metadata">

**Author:** [@hari\_bhat](https://www.ruby-forum.com/u/hari_bhat)\
**Replies:** 0\
**Last updated:** [August 2, 2010, 2:57pm UTC](https://www.ruby-forum.com/t/average-memory-a-normal-ruby-on-rails-site-consumes/192577 "2010-08-02T14:57:28Z")

</div>

Hi Guys…!! I wanted to know how much, average CPU memory a normal ruby on rails site consumes. I have a site on ruby on rails, hosted on a VPS Server, which is consuming a heavy CPU memory usage, due to which my othe…

---

## [Handle exception in ajax call](https://www.ruby-forum.com/t/handle-exception-in-ajax-call/192523)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 6\
**Last updated:** [August 2, 2010, 2:11pm UTC](https://www.ruby-forum.com/t/handle-exception-in-ajax-call/192523 "2010-08-02T14:11:25Z")

</div>

sorry to bother to help me again.I invoke create action using ajax.The variant and it’s associations are put in a transaction.When both are saved successfully,render create\_variant using ajax.When anyone unsuccessfull…

---

## [\`require\_frameworks': no such file to load -- openssl (RuntimeError)](https://www.ruby-forum.com/t/require-frameworks-no-such-file-to-load-openssl-runtimeerror/192572)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 1\
**Last updated:** [August 2, 2010, 1:33pm UTC](https://www.ruby-forum.com/t/require-frameworks-no-such-file-to-load-openssl-runtimeerror/192572 "2010-08-02T13:33:10Z")

</div>

I got this error:\`require\_frameworks’: no such file to load – openssl (RuntimeError) My OS is Fedora Core 13 I installed openssl, try compile extconf.rb,but this not help. If i compile extconf.rb, i got this error: …

---

## [Dynamic select(so annoying)](https://www.ruby-forum.com/t/dynamic-select-so-annoying/192571)

<div class="topic-metadata">

**Author:** [@fujianloverails](https://www.ruby-forum.com/u/fujianloverails)\
**Replies:** 0\
**Last updated:** [August 2, 2010, 12:46pm UTC](https://www.ruby-forum.com/t/dynamic-select-so-annoying/192571 "2010-08-02T12:46:11Z")

</div>

Hi, guys, I am a rookie in rails, I’d like to make two dynamic selects connecting with the database: in select 1 I have some countries(US,CA,UK) and I already built a table in my database called food: id food\_name f…

---

## [How to test DELETE :destroy with Shoulda](https://www.ruby-forum.com/t/how-to-test-delete-destroy-with-shoulda/192463)

<div class="topic-metadata">

**Author:** [@arigo](https://www.ruby-forum.com/u/arigo)\
**Replies:** 1\
**Last updated:** [August 2, 2010, 12:21pm UTC](https://www.ruby-forum.com/t/how-to-test-delete-destroy-with-shoulda/192463 "2010-08-02T12:21:11Z")

</div>

Hi, I tried to find some help in Shoulda list without a positive result. I am able to test DELETE :destroy with Test::Unit but I cannot with Shoulda because instead of a 302 (redirect) I get 200. Do you have a basic …

---

## [Authlogic and controlling the resources users can access](https://www.ruby-forum.com/t/authlogic-and-controlling-the-resources-users-can-access/192533)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 1\
**Last updated:** [August 2, 2010, 11:26am UTC](https://www.ruby-forum.com/t/authlogic-and-controlling-the-resources-users-can-access/192533 "2010-08-02T11:26:28Z")

</div>

question re authlogic, all set up but now i’d ike to control access to a resource so only users who own that resource can control it, I figure I put this in the Advert controller - is this approach sound ? http://past…

---

## ["gem install mygem" does not install the gem](https://www.ruby-forum.com/t/gem-install-mygem-does-not-install-the-gem/192438)

<div class="topic-metadata">

**Author:** [@CUBRID](https://www.ruby-forum.com/u/CUBRID)\
**Replies:** 4\
**Last updated:** [August 2, 2010, 11:24am UTC](https://www.ruby-forum.com/t/gem-install-mygem-does-not-install-the-gem/192438 "2010-08-02T11:24:59Z")

</div>

Hi, I am encountering an odd behavior of gem install function. Can anyone explain me what “gem install” actually does? I have several C code and header files, and one extconf.rb file, + mygem.gemspec file. So, when I…

---

## [RC routing error that was not in Beta4](https://www.ruby-forum.com/t/rc-routing-error-that-was-not-in-beta4/192529)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 2, 2010, 10:02am UTC](https://www.ruby-forum.com/t/rc-routing-error-that-was-not-in-beta4/192529 "2010-08-02T10:02:26Z")

</div>

In beta4 I could do this: resources :sections do get :new, :on=\>:member end But not with RC If I change “new” to be something else, I can do that So it seems that “new” is now treated like a reserved word of sorts? …

---

## [Virtual rails\>\>still learning](https://www.ruby-forum.com/t/virtual-rails-still-learning/192553)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [August 2, 2010, 9:47am UTC](https://www.ruby-forum.com/t/virtual-rails-still-learning/192553 "2010-08-02T09:47:47Z")

</div>

I am running windows vista on my lap top. I installed virtual box and virtual rails on this laptop and it is running linux. I am very new at learning rails. So far the only thing I have done is create a blog applica…

---

## [Uninitialized constant User::Authentication](https://www.ruby-forum.com/t/uninitialized-constant-user-authentication/144624)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 15\
**Last updated:** [August 2, 2010, 8:15am UTC](https://www.ruby-forum.com/t/uninitialized-constant-user-authentication/144624 "2010-08-02T08:15:39Z")

</div>

Hi there, I just ran the generator for Restful Authentication, and when I visit localhost:3000/users/new, I get the error: uninitialized constant User::Authentication The error comes from these lines in my user.rb mo…

---

## [POST and GET](https://www.ruby-forum.com/t/post-and-get/192560)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 5\
**Last updated:** [August 2, 2010, 8:01am UTC](https://www.ruby-forum.com/t/post-and-get/192560 "2010-08-02T08:01:15Z")

</div>

HEY Guys, Im new to rails. Can someone help explain POST and GET inrails, and maybe give an example? When is it used? Im learning rails via Agile web Development with Rails, and soon to download peepcode video’s, are …

---

## [\[JOB\] contract work, San Francisco area](https://www.ruby-forum.com/t/job-contract-work-san-francisco-area/192306)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 5\
**Last updated:** [August 2, 2010, 6:53am UTC](https://www.ruby-forum.com/t/job-contract-work-san-francisco-area/192306 "2010-08-02T06:53:32Z")

</div>

Our startup is about to leave the hushed darkness of the lab and step into the light by launching a web-based application. Our team has written the core “secret sauce”, but we need a fast and accurate RoR development…

---

## [Question about sqlite3-ruby on linux](https://www.ruby-forum.com/t/question-about-sqlite3-ruby-on-linux/192528)

<div class="topic-metadata">

**Author:** [@hywhy](https://www.ruby-forum.com/u/hywhy)\
**Replies:** 1\
**Last updated:** [August 2, 2010, 4:25am UTC](https://www.ruby-forum.com/t/question-about-sqlite3-ruby-on-linux/192528 "2010-08-02T04:25:52Z")

</div>

first sorry for my poor english.I have a question about sqlite3-ruby on linux. I have compiled and installed the ruby 1.9.1, sqlite3 and sqlite3-ruby on redhat enterprise version. but when I use irb and import the s…

---

## [\[JOB\] contract work San Francisco area \[reposted with cause\]](https://www.ruby-forum.com/t/job-contract-work-san-francisco-area-reposted-with-cause/192559)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 0\
**Last updated:** [August 2, 2010, 3:54am UTC](https://www.ruby-forum.com/t/job-contract-work-san-francisco-area-reposted-with-cause/192559 "2010-08-02T03:54:51Z")

</div>

\[Forgive the repost, but readers have pointed out that readers receiving this forum via Google G. can’t see the private message link. Fixed here…\] Our startup is about to leave the hushed darkness of the lab and step …

---

## [Std. IO streams in Ruby](https://www.ruby-forum.com/t/std-io-streams-in-ruby/197143)

<div class="topic-metadata">

**Author:** [@silver-spoon](https://www.ruby-forum.com/u/silver-spoon)\
**Replies:** 3\
**Last updated:** [August 2, 2010, 1:34am UTC](https://www.ruby-forum.com/t/std-io-streams-in-ruby/197143 "2010-08-02T01:34:22Z")

</div>

In my rails controller, I am doing the following : @output = g++ j.cpp -o "prog" && ./prog This gives the output in the @output variable which i can display in my view. But the above works only if the j.cpp is correct…

---

## [Recaptcha verification failture](https://www.ruby-forum.com/t/recaptcha-verification-failture/192552)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 0\
**Last updated:** [August 2, 2010, 12:26am UTC](https://www.ruby-forum.com/t/recaptcha-verification-failture/192552 "2010-08-02T00:26:27Z")

</div>

I am using the rails ambethia-recaptcha gem My recaptcha verification fails in production, the same code works just fine in development. I made sure the public and private keys are correct and the correct keys load in…

---

## [ActionMailer Caching](https://www.ruby-forum.com/t/actionmailer-caching/192549)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 0\
**Last updated:** [August 1, 2010, 9:53pm UTC](https://www.ruby-forum.com/t/actionmailer-caching/192549 "2010-08-01T21:53:18Z")

</div>

Hi everyone I’ve a big problem with sending a mail over ActionMailer::Base (HTML mail). I deploy my app with capistrano (2.5.9) and use passenger (2.2.15) / apache as webserver. But sometimes, when a send a mail, it …

---

## [Order by newid()](https://www.ruby-forum.com/t/order-by-newid/192546)

<div class="topic-metadata">

**Author:** [@markh](https://www.ruby-forum.com/u/markh)\
**Replies:** 0\
**Last updated:** [August 1, 2010, 9:14pm UTC](https://www.ruby-forum.com/t/order-by-newid/192546 "2010-08-01T21:14:08Z")

</div>

I want to get a set of records in random order. Will Car.order(‘newid()’) work? Is there a better way to do this? Rails 3.

---

## [Bundler 1.0.0.rc.2 not working with rails3 and jruby 1.5.1](https://www.ruby-forum.com/t/bundler-1-0-0-rc-2-not-working-with-rails3-and-jruby-1-5-1/192544)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 0\
**Last updated:** [August 1, 2010, 8:30pm UTC](https://www.ruby-forum.com/t/bundler-1-0-0-rc-2-not-working-with-rails3-and-jruby-1-5-1/192544 "2010-08-01T20:30:35Z")

</div>

I can’t get a multiplatform bundler Gemfile to work in JRuby with a simple raisl3 app. See: JRuby "bundle install" choking on gem from other platform · Issue #502 · rubygems/bundler · GitHub for more details. The on…

---

## [Ror broken links in docs](https://www.ruby-forum.com/t/ror-broken-links-in-docs/192537)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 0\
**Last updated:** [August 1, 2010, 6:52pm UTC](https://www.ruby-forum.com/t/ror-broken-links-in-docs/192537 "2010-08-01T18:52:49Z")

</div>

Is someone aware that the rails complete api doc has broken links? http://api.rubyonrails.org/ if I click on actionpack/readme (top right) then off the main page I click ‘learn more’ for ‘Helpers for forms, dates, act…

---

## [Engine routes](https://www.ruby-forum.com/t/engine-routes/192536)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 1\
**Last updated:** [August 1, 2010, 6:05pm UTC](https://www.ruby-forum.com/t/engine-routes/192536 "2010-08-01T18:05:24Z")

</div>

Hi all, I have a small question regarding Rails 3 / engines en routes file. At this point, I start my routes file with the following line: Rails.application.routes.draw do |map| But, since Rails 3 RC 1, I got depreca…

---

## [Exception: can't dup Symbol](https://www.ruby-forum.com/t/exception-cant-dup-symbol/192498)

<div class="topic-metadata">

**Author:** [@noloman](https://www.ruby-forum.com/u/noloman)\
**Replies:** 4\
**Last updated:** [August 1, 2010, 2:38pm UTC](https://www.ruby-forum.com/t/exception-cant-dup-symbol/192498 "2010-08-01T14:38:32Z")

</div>

Hey everybody, I’m trying to test a little piece of code I wrote, and I get the following error: Exception: can’t dup Symbol It happens in the following line: try\_to\_login @valid\_user, :remember\_me =\> “1”, where th…

---

## [Fields\_for can not group its params when ajax](https://www.ruby-forum.com/t/fields-for-can-not-group-its-params-when-ajax/192535)

<div class="topic-metadata">

**Author:** [@hong107yan](https://www.ruby-forum.com/u/hong107yan)\
**Replies:** 0\
**Last updated:** [August 1, 2010, 1:15pm UTC](https://www.ruby-forum.com/t/fields-for-can-not-group-its-params-when-ajax/192535 "2010-08-01T13:15:51Z")

</div>

hi book and page is one\_to\_many relationship.I want to create them in a single form.But when clicking create button,the submitted params for pages are not grouped correctly, i want “book”=\>{“new\_pages”=\>\[{“name”=\>""…

---

## [About ActiveRecord callback](https://www.ruby-forum.com/t/about-activerecord-callback/192497)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 2\
**Last updated:** [August 1, 2010, 7:26am UTC](https://www.ruby-forum.com/t/about-activerecord-callback/192497 "2010-08-01T07:26:52Z")

</div>

The callback after\_update() doc is following: ####### after\_update() Is called after Base.save on existing objects that have a record. Note that this callback is still wrapped in the transaction around save. For exa…

---

## [How to understand callback and validate\_associated](https://www.ruby-forum.com/t/how-to-understand-callback-and-validate-associated/192462)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 7\
**Last updated:** [August 1, 2010, 4:07am UTC](https://www.ruby-forum.com/t/how-to-understand-callback-and-validate-associated/192462 "2010-08-01T04:07:19Z")

</div>

1 after\_update callback is wrapped in transaction means:no matter exception occurs during saving an existing record, or in the after\_update method body,both the existing record and record manipulation in the after\_upd…

---

## [App won't recognise action\_mailer\_tls plugin](https://www.ruby-forum.com/t/app-wont-recognise-action-mailer-tls-plugin/192520)

<div class="topic-metadata">

**Author:** [@srkinz84](https://www.ruby-forum.com/u/srkinz84)\
**Replies:** 0\
**Last updated:** [August 1, 2010, 3:01am UTC](https://www.ruby-forum.com/t/app-wont-recognise-action-mailer-tls-plugin/192520 "2010-08-01T03:01:12Z")

</div>

Hi, I’m running Ubuntu 10.04 and am trying to send mail through my Gmail account for testing. I’ve installed the ‘action\_mailer\_tls’ plugin using the ‘sudo gem install action\_mailer\_tls’ plugin and can confirm that …

---

## [Multiple inserts in ActiveRecord](https://www.ruby-forum.com/t/multiple-inserts-in-activerecord/192495)

<div class="topic-metadata">

**Author:** [@judofyr](https://www.ruby-forum.com/u/judofyr)\
**Replies:** 1\
**Last updated:** [August 1, 2010, 12:30am UTC](https://www.ruby-forum.com/t/multiple-inserts-in-activerecord/192495 "2010-08-01T00:30:08Z")

</div>

Hey rails-talk, I have a little question: How do you handle multiple inserts like these in ActiveRecord? It’s for a little Camping app that skylerrichter is writing, but it’s just plain, simple ActiveRecord, so it sho…

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

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