# Rails

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

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

---

## [Timeout error](https://www.ruby-forum.com/t/timeout-error/195713)

<div class="topic-metadata">

**Author:** [@Creative\_Technologi](https://www.ruby-forum.com/u/Creative_Technologi)\
**Replies:** 0\
**Last updated:** [September 28, 2010, 11:26pm UTC](https://www.ruby-forum.com/t/timeout-error/195713 "2010-09-28T23:26:59Z")

</div>

Hi, Could anyone help with an error I’m getting when running the following code, it works on smaller sites but when I run it on a larger site it times out… doc = open("http://"+@theurl) { |f| Hpricot(f) } I’ve found…

---

## [Exception Notification](https://www.ruby-forum.com/t/exception-notification/195554)

<div class="topic-metadata">

**Author:** [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Replies:** 3\
**Last updated:** [September 28, 2010, 11:25pm UTC](https://www.ruby-forum.com/t/exception-notification/195554 "2010-09-28T23:25:49Z")

</div>

I am using the the exception notification plugin for rails version 2.3 This is what I have in my environment.rb file ExceptionNotification::Notifier.exception\_recipients = %w(removed\_email\_address@domain.invalid) In …

---

## [Cleaning up migrations](https://www.ruby-forum.com/t/cleaning-up-migrations/195707)

<div class="topic-metadata">

**Author:** [@trapper](https://www.ruby-forum.com/u/trapper)\
**Replies:** 7\
**Last updated:** [September 28, 2010, 10:41pm UTC](https://www.ruby-forum.com/t/cleaning-up-migrations/195707 "2010-09-28T22:41:26Z")

</div>

My project has a lot of migrations, that ar not all necessary on my new server, since the database has been copied. For installation, I simply removed these migrations on the the server, before executing, but that no …

---

## [Rails3 validate email format](https://www.ruby-forum.com/t/rails3-validate-email-format/195603)

<div class="topic-metadata">

**Author:** [@Nadal](https://www.ruby-forum.com/u/Nadal)\
**Replies:** 20\
**Last updated:** [September 28, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/rails3-validate-email-format/195603 "2010-09-28T20:43:03Z")

</div>

I am working on a rails3 project. Is there a tool to validate the format of email address. It does not have to be fancy regex. Just a few simple validations. However I don’t want to reinvent the wheel?

---

## [Very basic question](https://www.ruby-forum.com/t/very-basic-question/195666)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 9\
**Last updated:** [September 28, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/very-basic-question/195666 "2010-09-28T20:23:08Z")

</div>

I know this may be a very basic question, but confusing me. If I write the following for example in the controller: @x = App.new(params\[:x\]) I know that I’m trying to create a new object here, but how can I read the …

---

## [Uploading photos](https://www.ruby-forum.com/t/uploading-photos/195655)

<div class="topic-metadata">

**Author:** [@sprsquish](https://www.ruby-forum.com/u/sprsquish)\
**Replies:** 7\
**Last updated:** [September 28, 2010, 5:08pm UTC](https://www.ruby-forum.com/t/uploading-photos/195655 "2010-09-28T17:08:32Z")

</div>

Hi all, Learning RoR (and loving it!) to develop a website. A requirement of the website is enabling users to upload photos to be made viewable (dynamically) on the website. Is this something I can develop with RoR? T…

---

## [Requirement](https://www.ruby-forum.com/t/requirement/195698)

<div class="topic-metadata">

**Author:** [@vijay\_kumar](https://www.ruby-forum.com/u/vijay_kumar)\
**Replies:** 2\
**Last updated:** [September 28, 2010, 5:04pm UTC](https://www.ruby-forum.com/t/requirement/195698 "2010-09-28T17:04:44Z")

</div>

Guys i need the following candidates with the mentioned expertise pl…Ruby on Rails developer familiar with BDD using Cucumber and RSpec. Preferred experience on relevant technologies should be 3-4 years. Experience w…

---

## [Unitialized constant controller](https://www.ruby-forum.com/t/unitialized-constant-controller/195686)

<div class="topic-metadata">

**Author:** [@binbash-x](https://www.ruby-forum.com/u/binbash-x)\
**Replies:** 4\
**Last updated:** [September 28, 2010, 4:19pm UTC](https://www.ruby-forum.com/t/unitialized-constant-controller/195686 "2010-09-28T16:19:46Z")

</div>

Hey guys, Here’s an error I get after I hit the submit button on the editing page: NameError in ClassifiedsController#update uninitialized constant ClassifiedsController Help would be appreciated. Thanks

---

## [Integrate Authorize .net with rails](https://www.ruby-forum.com/t/integrate-authorize-net-with-rails/195700)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 2\
**Last updated:** [September 28, 2010, 3:06pm UTC](https://www.ruby-forum.com/t/integrate-authorize-net-with-rails/195700 "2010-09-28T15:06:20Z")

</div>

Hi, In an upcoming project I have to integrate the authorize .net payment gateway. Can anyone have any idea about how to achieve this integration? Is there any gem/plugin available? Thanks, Mike

---

## [Problem in using xsendfile apche+mongrel](https://www.ruby-forum.com/t/problem-in-using-xsendfile-apche-mongrel/195629)

<div class="topic-metadata">

**Author:** [@amit-singh](https://www.ruby-forum.com/u/amit-singh)\
**Replies:** 12\
**Last updated:** [September 28, 2010, 2:50pm UTC](https://www.ruby-forum.com/t/problem-in-using-xsendfile-apche-mongrel/195629 "2010-09-28T14:50:32Z")

</div>

Hii All, i loaded mod\_xsendfile.so in apche , i added few line in httpd.conf files LoadModule xsendfile\_module modules/mod\_xsendfile.so XSendFile on XSendFileAllowAbove on \<VirtualHost \* localhost:80\> ServerName sr…

---

## [2 levels nested form with a polymorphic association](https://www.ruby-forum.com/t/2-levels-nested-form-with-a-polymorphic-association/195701)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 0\
**Last updated:** [September 28, 2010, 1:15pm UTC](https://www.ruby-forum.com/t/2-levels-nested-form-with-a-polymorphic-association/195701 "2010-09-28T13:15:52Z")

</div>

Hi, I’m trying to build a complex nested form for the model ‘page’, which has a polymorphic association with different component types. Unfortunately it does not seem to work properly. model “Page” : has\_many :compo…

---

## [Design decision](https://www.ruby-forum.com/t/design-decision/195634)

<div class="topic-metadata">

**Author:** [@ssmithstone](https://www.ruby-forum.com/u/ssmithstone)\
**Replies:** 3\
**Last updated:** [September 28, 2010, 1:08pm UTC](https://www.ruby-forum.com/t/design-decision/195634 "2010-09-28T13:08:04Z")

</div>

Trying to make my controllers as skinny as possible , so come across a design issue if I want to send out an email when a model is created would I put this functionality on the after\_create method or inside of the con…

---

## [Coexisting Engine Css with main Css](https://www.ruby-forum.com/t/coexisting-engine-css-with-main-css/174730)

<div class="topic-metadata">

**Author:** [@kingston](https://www.ruby-forum.com/u/kingston)\
**Replies:** 2\
**Last updated:** [September 28, 2010, 10:42am UTC](https://www.ruby-forum.com/t/coexisting-engine-css-with-main-css/174730 "2010-09-28T10:42:38Z")

</div>

hello to all, I wanted to know can the application exported to engine using engine plugin have it own css other if yes the how to go about it where to place the images and stylesheet folder thanks anyway

---

## [Named scope in named scope?](https://www.ruby-forum.com/t/named-scope-in-named-scope/195497)

<div class="topic-metadata">

**Author:** [@korn900](https://www.ruby-forum.com/u/korn900)\
**Replies:** 6\
**Last updated:** [September 28, 2010, 10:39am UTC](https://www.ruby-forum.com/t/named-scope-in-named-scope/195497 "2010-09-28T10:39:53Z")

</div>

Hi, I would like to return a combination of named scopes in a named scope : For example, I have a named scope filter and I want to add a named scope eval\_filters like Product.eval\_filters(\[‘x’,‘y’,‘z’\]) is equivalen…

---

## [Rails 2.3.9 i18n - multiple yml files](https://www.ruby-forum.com/t/rails-2-3-9-i18n-multiple-yml-files/195670)

<div class="topic-metadata">

**Author:** [@kimptoc](https://www.ruby-forum.com/u/kimptoc)\
**Replies:** 2\
**Last updated:** [September 28, 2010, 10:37am UTC](https://www.ruby-forum.com/t/rails-2-3-9-i18n-multiple-yml-files/195670 "2010-09-28T10:37:32Z")

</div>

Hi, Have been following the i18n guide ( ) Things are working in a basic way, using the simple backend, with my en.yml and pt.yml locale files. I got the core Rails Portuguese localisation from the rails-i18n proj…

---

## [Problem with the "detail"-method](https://www.ruby-forum.com/t/problem-with-the-detail-method/195387)

<div class="topic-metadata">

**Author:** [@Sven\_W](https://www.ruby-forum.com/u/Sven_W)\
**Replies:** 26\
**Last updated:** [September 28, 2010, 8:43am UTC](https://www.ruby-forum.com/t/problem-with-the-detail-method/195387 "2010-09-28T08:43:21Z")

</div>

Hey, i am very new with handling Ruby on Rails, so i did the Video-Tutorial of “video2brain”. They use an older Version of Rails (1.8… - i guess) and in an controller-file they want me to do the following: class For…

---

## [Aws::s3 to replace mysql blobs](https://www.ruby-forum.com/t/aws-s3-to-replace-mysql-blobs/195676)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 3\
**Last updated:** [September 28, 2010, 4:56am UTC](https://www.ruby-forum.com/t/aws-s3-to-replace-mysql-blobs/195676 "2010-09-28T04:56:19Z")

</div>

Hi, I have used attachment\_fu before with no real problems but I’m not sure if it is what I need now… I have an application that stores blobs (word documents, scanned documents etc) in the database. I want to conver…

---

## [How long should Yard take to build documentation for gems?](https://www.ruby-forum.com/t/how-long-should-yard-take-to-build-documentation-for-gems/195680)

<div class="topic-metadata">

**Author:** [@walterdavis](https://www.ruby-forum.com/u/walterdavis)\
**Replies:** 0\
**Last updated:** [September 28, 2010, 4:01am UTC](https://www.ruby-forum.com/t/how-long-should-yard-take-to-build-documentation-for-gems/195680 "2010-09-28T04:01:54Z")

</div>

I just installed Yard latest and am trying out the yard server with yard server --gems. I get a nice list of all my installed gems pretty much immediately, but no matter which one I click on, I get a spinny thing that…

---

## [Changing app from Rails 3 RC to final](https://www.ruby-forum.com/t/changing-app-from-rails-3-rc-to-final/195598)

<div class="topic-metadata">

**Author:** [@spncrgr](https://www.ruby-forum.com/u/spncrgr)\
**Replies:** 3\
**Last updated:** [September 28, 2010, 3:42am UTC](https://www.ruby-forum.com/t/changing-app-from-rails-3-rc-to-final/195598 "2010-09-28T03:42:35Z")

</div>

Hi, I have a question that I feel should be really easy to figure out, but I’m very new to Rails and Googling hasn’t really produced anything of consequence. I started an app using the first release candidate of Rail…

---

## [Rails 3 - Creating a comment and then returning the Partial with JUST the new comment](https://www.ruby-forum.com/t/rails-3-creating-a-comment-and-then-returning-the-partial-with-just-the-new-comment/195626)

<div class="topic-metadata">

**Author:** [@nobosh](https://www.ruby-forum.com/u/nobosh)\
**Replies:** 9\
**Last updated:** [September 28, 2010, 2:42am UTC](https://www.ruby-forum.com/t/rails-3-creating-a-comment-and-then-returning-the-partial-with-just-the-new-comment/195626 "2010-09-28T02:42:19Z")

</div>

Here’s the flow I have… First, jquery posts the new comment to the server: $.post(this.action,$(this).serialize(),null,'script'); Then in the comments controller: def create @comment = lots of stuff going on …

---

## [How do you get realtime visitor stats in RoR?](https://www.ruby-forum.com/t/how-do-you-get-realtime-visitor-stats-in-ror/195613)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 3\
**Last updated:** [September 28, 2010, 12:41am UTC](https://www.ruby-forum.com/t/how-do-you-get-realtime-visitor-stats-in-ror/195613 "2010-09-28T00:41:42Z")

</div>

I have found some projects as http://www.railstat.com/ but seem not updated. I have used Google Analytics too, but it is not realtime and it do not give some important information as IP address.

---

## [Why doesn't the content show up](https://www.ruby-forum.com/t/why-doesnt-the-content-show-up/195674)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 0\
**Last updated:** [September 28, 2010, 12:17am UTC](https://www.ruby-forum.com/t/why-doesnt-the-content-show-up/195674 "2010-09-28T00:17:09Z")

</div>

Following this tutorial on uploading a file: http://www.dizzy.co.uk/ruby\_on\_rails/contents/store-file-uploads-in-database#rendering\_an\_image\_stored\_in\_the\_database I reached: “3. Rendering an image stored in the databa…

---

## [Freelancers: small site implementation](https://www.ruby-forum.com/t/freelancers-small-site-implementation/195633)

<div class="topic-metadata">

**Author:** [@Didde\_B](https://www.ruby-forum.com/u/Didde_B)\
**Replies:** 1\
**Last updated:** [September 27, 2010, 11:43pm UTC](https://www.ruby-forum.com/t/freelancers-small-site-implementation/195633 "2010-09-27T23:43:10Z")

</div>

Hi everyone, We’re looking for an independent, driven and capable freelancer willing to help implement a small site using RoR. A CMS is required and among the candidates we like Typus the most, but can be flexible in …

---

## [Question RE: ActionController::Base.session and ActionController::Base.session\_store](https://www.ruby-forum.com/t/question-re-actioncontroller-base-session-and-actioncontroller-base-session-store/195662)

<div class="topic-metadata">

**Author:** [@khagimoto](https://www.ruby-forum.com/u/khagimoto)\
**Replies:** 3\
**Last updated:** [September 27, 2010, 10:26pm UTC](https://www.ruby-forum.com/t/question-re-actioncontroller-base-session-and-actioncontroller-base-session-store/195662 "2010-09-27T22:26:30Z")

</div>

I had been using the cookie-based session until recently, then switched to using active\_record\_store (db) as it said: Use the database for sessions instead of the cookie-based default, which shouldn’t be used to store …

---

## [How to print](https://www.ruby-forum.com/t/how-to-print/195656)

<div class="topic-metadata">

**Author:** [@msan](https://www.ruby-forum.com/u/msan)\
**Replies:** 3\
**Last updated:** [September 27, 2010, 10:11pm UTC](https://www.ruby-forum.com/t/how-to-print/195656 "2010-09-27T22:11:57Z")

</div>

A submit action shows me the show.html.erb page. How to print this page to a printer? I have to use javascript print() method?

---

## [Problem with set\_sequence\_name please help](https://www.ruby-forum.com/t/problem-with-set-sequence-name-please-help/195665)

<div class="topic-metadata">

**Author:** [@cyberjom](https://www.ruby-forum.com/u/cyberjom)\
**Replies:** 0\
**Last updated:** [September 27, 2010, 9:39pm UTC](https://www.ruby-forum.com/t/problem-with-set-sequence-name-please-help/195665 "2010-09-27T21:39:49Z")

</div>

I’m building rails 3 with legacy oracle 10g db. which it’s sequence is non rails convension. I have try this. class AdCourt \< ActiveRecord::Base set\_sequence\_name ‘COURT\_SEQ’ end with rails console : AdCourt.seque…

---

## [STI, xml/xslt, or ? for many custom forms/templates](https://www.ruby-forum.com/t/sti-xml-xslt-or-for-many-custom-forms-templates/195640)

<div class="topic-metadata">

**Author:** [@AppleII717](https://www.ruby-forum.com/u/AppleII717)\
**Replies:** 5\
**Last updated:** [September 27, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/sti-xml-xslt-or-for-many-custom-forms-templates/195640 "2010-09-27T21:29:09Z")

</div>

I’m considering porting an application to RoR. The application is basically a “Order Entry” type system for the Interior Designer vertical market. The existing application has a table with over 400 column! (not my des…

---

## [SSL on Rails 3](https://www.ruby-forum.com/t/ssl-on-rails-3/195661)

<div class="topic-metadata">

**Author:** [@ntk](https://www.ruby-forum.com/u/ntk)\
**Replies:** 0\
**Last updated:** [September 27, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/ssl-on-rails-3/195661 "2010-09-27T20:59:51Z")

</div>

Been looking at different pages on google about using SSL on Rails 3. I have been using ssl\_requirement prior to Rails 3. Wondering if ssl\_requirement will still work on Rails 3 (anyone used)? Or whether to go the wa…

---

## [Polymorphic Associations](https://www.ruby-forum.com/t/polymorphic-associations/195561)

<div class="topic-metadata">

**Author:** [@orientfang](https://www.ruby-forum.com/u/orientfang)\
**Replies:** 3\
**Last updated:** [September 27, 2010, 7:46pm UTC](https://www.ruby-forum.com/t/polymorphic-associations/195561 "2010-09-27T19:46:41Z")

</div>

Hi, I’m following the Polymorphic Associations testï¼Œ issue as following. class Product \< ActiveRecord::Base has\_many :images, :as=\>:imageable end class User \< ActiveRecord::Base has\_many :images, :as=\>:imageable …

---

## [Rails 3 + jQuery ; How to show error messages](https://www.ruby-forum.com/t/rails-3-jquery-how-to-show-error-messages/195639)

<div class="topic-metadata">

**Author:** [@mrpink](https://www.ruby-forum.com/u/mrpink)\
**Replies:** 6\
**Last updated:** [September 27, 2010, 5:50pm UTC](https://www.ruby-forum.com/t/rails-3-jquery-how-to-show-error-messages/195639 "2010-09-27T17:50:12Z")

</div>

Hi guys, can anyone explain how to show error\_messages\_on (like back in Rails 2 , without Ajax) fields that didnt’ pass the validation the jquery way. I googled for about 2 hours now and found nothing. Jquery works f…

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

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