# Rails

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

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

---

## [Error Send Message](https://www.ruby-forum.com/t/error-send-message/163940)

<div class="topic-metadata">

**Author:** [@ponlork](https://www.ruby-forum.com/u/ponlork)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/error-send-message/163940 "2009-05-15T18:11:13Z")

</div>

Hello, I’m trying to make my rails app send mail. so it’s can’t send it’s error. I’m using the following configuration in environment.rb: Rails::Initializer.run do |config| … config.action\_mailer.delivery\_method = :…

---

## [Has\_many through](https://www.ruby-forum.com/t/has-many-through/167993)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/has-many-through/167993 "2009-05-15T18:11:13Z")

</div>

I have a User model defined as following : has\_many :memberships, :class\_name =\> ‘Member’, :include =\> \[ :group \] has\_many :members, :dependent =\> :delete\_all has\_many :groups, :through =\> :memberships and a Group mo…

---

## [Smtp\_tls and SMTP/NET required failing](https://www.ruby-forum.com/t/smtp-tls-and-smtp-net-required-failing/163955)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 2\
**Last updated:** [May 15, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/smtp-tls-and-smtp-net-required-failing/163955 "2009-05-15T18:05:22Z")

</div>

I am trying to use the smtp\_tls plugin to support gmail smtp servers. I have plugin directory smtp\_tls. There is a file smtp\_tls.rb in the directory. So I am not sure why this is failing. I my config I have a requir…

---

## [Inserting into database problem](https://www.ruby-forum.com/t/inserting-into-database-problem/168081)

<div class="topic-metadata">

**Author:** [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Replies:** 3\
**Last updated:** [May 15, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/inserting-into-database-problem/168081 "2009-05-15T17:35:26Z")

</div>

Hi, I have this problem I have been working on ours and can’t find the proper solution i have two tables User\_Info : columns {:id, :name, :address} Access\_Info : columsn {:id, :username, :password, :user\_info\_fkey, …

---

## [Undefined method \`rescue\_responses' for ActionController::Base:Class in Rails Edge](https://www.ruby-forum.com/t/undefined-method-rescue-responses-for-actioncontroller-class-in-rails-edge/168087)

<div class="topic-metadata">

**Author:** [@blacknight](https://www.ruby-forum.com/u/blacknight)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 5:33pm UTC](https://www.ruby-forum.com/t/undefined-method-rescue-responses-for-actioncontroller-class-in-rails-edge/168087 "2009-05-15T17:33:05Z")

</div>

Greetings. I just started a new rails project basing off the edge.1 I prefer to unpack my gems, but when I did so, I received the error below. Anybody else encounter this and have a suggestion? $ rake gems:unpack (in…

---

## [\[ANN\] snailgun: speeding up process startup](https://www.ruby-forum.com/t/ann-snailgun-speeding-up-process-startup/168056)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 5:03pm UTC](https://www.ruby-forum.com/t/ann-snailgun-speeding-up-process-startup/168056 "2009-05-15T17:03:03Z")

</div>

snailgun is an attempt to speed up Ruby command-line startup for applications which require large number of libraries (like Rails). It preloads the libraries into a process, then forks that process each time a new ins…

---

## [\`load\_missing\_constant': uninitialized constant Rails::Gener](https://www.ruby-forum.com/t/load-missing-constant-uninitialized-constant-rails-gener/167740)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 1:55pm UTC](https://www.ruby-forum.com/t/load-missing-constant-uninitialized-constant-rails-gener/167740 "2009-05-15T13:55:57Z")

</div>

Hello, I’m probably missing something pretty basic here as a rails newbie but I’m trying to write a plugin and I am trying to get my generator to work. I am trying to call the manifest method in my vendor/plugins/me…

---

## [Upload jpg as non-progressive for flash](https://www.ruby-forum.com/t/upload-jpg-as-non-progressive-for-flash/168065)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/upload-jpg-as-non-progressive-for-flash/168065 "2009-05-15T12:40:09Z")

</div>

i am using paperclip how to upload jpg as non-progressive files ?

---

## [Expected x to define y](https://www.ruby-forum.com/t/expected-x-to-define-y/168058)

<div class="topic-metadata">

**Author:** [@irishfighter](https://www.ruby-forum.com/u/irishfighter)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 12:27pm UTC](https://www.ruby-forum.com/t/expected-x-to-define-y/168058 "2009-05-15T12:27:27Z")

</div>

Hi all, I’m getting this error. Does anyone have any idead what’s going on? I searched around and many people are having this error in controllers, but this one is in ht helpers directory for me. Expected C:/work/tru…

---

## [Watir Problem](https://www.ruby-forum.com/t/watir-problem/168064)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:17pm UTC](https://www.ruby-forum.com/t/watir-problem/168064 "2009-05-15T12:17:08Z")

</div>

Hi All, I had written a program to open a url and fill the textfields in that site automatically. I used Watir to open url and fill the textfields. I had given a link on view page, when someone clicks on it, desired u…

---

## [Has\_many / belongs\_to issues](https://www.ruby-forum.com/t/has-many-belongs-to-issues/167456)

<div class="topic-metadata">

**Author:** [@p-b](https://www.ruby-forum.com/u/p-b)\
**Replies:** 2\
**Last updated:** [May 15, 2009, 12:16pm UTC](https://www.ruby-forum.com/t/has-many-belongs-to-issues/167456 "2009-05-15T12:16:15Z")

</div>

Hi, I just faced this problem today. I have a site which will have a USER model and a SUBMISSION model. Apart from the cosmetics parts, each user will be able to have multiple submissions, while each submission could …

---

## [Intergrate Jasper report to Ruby on Rails Application](https://www.ruby-forum.com/t/intergrate-jasper-report-to-ruby-on-rails-application/168060)

<div class="topic-metadata">

**Author:** [@velu](https://www.ruby-forum.com/u/velu)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:11pm UTC](https://www.ruby-forum.com/t/intergrate-jasper-report-to-ruby-on-rails-application/168060 "2009-05-15T12:11:35Z")

</div>

Hi All, Im followed this link “http://oldwiki.rubyonrails.org/rails/pages/ howtointegratejasperreports” to intergrate jasper report with ruby on rails. Im getting blank pdf report and i tried rtf also giving blank. …

---

## [Parse rss feeds with multiple enclosures per item](https://www.ruby-forum.com/t/parse-rss-feeds-with-multiple-enclosures-per-item/168057)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 11:40am UTC](https://www.ruby-forum.com/t/parse-rss-feeds-with-multiple-enclosures-per-item/168057 "2009-05-15T11:40:28Z")

</div>

Hi, Does anybody know how I may parse an rss feed with multiple enclosures per item. I ve tried the ruby build in rss class, but that one only seems to support one enclosure per item? Thanks a lot in advance… Volke…

---

## [Switching to RoR with database](https://www.ruby-forum.com/t/switching-to-ror-with-database/168054)

<div class="topic-metadata">

**Author:** [@shinkaku](https://www.ruby-forum.com/u/shinkaku)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 11:09am UTC](https://www.ruby-forum.com/t/switching-to-ror-with-database/168054 "2009-05-15T11:09:13Z")

</div>

Hi, I’m trying to figure out how to switch to ruby on rails, but I want to keep the tables and i do not care about the values inside the tables, just the schema. I have export my mysql database to a .sql file but i g…

---

## [Edit message property in messages list](https://www.ruby-forum.com/t/edit-message-property-in-messages-list/168053)

<div class="topic-metadata">

**Author:** [@term](https://www.ruby-forum.com/u/term)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 10:45am UTC](https://www.ruby-forum.com/t/edit-message-property-in-messages-list/168053 "2009-05-15T10:45:50Z")

</div>

I’m writing a web-based organizer of email messages. Let’s say I have boolean “Marked as Important” property for each message. I display it with an icon in the list of messages (for each message in list). And I want …

---

## [Datetime to\_s(:option) not working](https://www.ruby-forum.com/t/datetime-to-s-option-not-working/168038)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 10:11am UTC](https://www.ruby-forum.com/t/datetime-to-s-option-not-working/168038 "2009-05-15T10:11:47Z")

</div>

I added a migration to add a datetime object column to my database. It all works great, and I can edit it and everything using the select\_date helper for forms. BUT when I try to format the date using gallery.gallery\_…

---

## [Cms/wysiwyg editor with simple photo upload](https://www.ruby-forum.com/t/cms-wysiwyg-editor-with-simple-photo-upload/168000)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 2\
**Last updated:** [May 15, 2009, 10:10am UTC](https://www.ruby-forum.com/t/cms-wysiwyg-editor-with-simple-photo-upload/168000 "2009-05-15T10:10:02Z")

</div>

I developed a site for a client who wants to be able to edit his own content and be able to upload photos to his pages. Does anybody know any good editors with a simple uploader specifically for rails? I have been sea…

---

## [Rails GoDaddy payment gateway setup](https://www.ruby-forum.com/t/rails-godaddy-payment-gateway-setup/137046)

<div class="topic-metadata">

**Author:** [@mike](https://www.ruby-forum.com/u/mike)\
**Replies:** 1\
**Last updated:** [May 15, 2009, 8:22am UTC](https://www.ruby-forum.com/t/rails-godaddy-payment-gateway-setup/137046 "2009-05-15T08:22:53Z")

</div>

Hi I have a ruby on rails ecommerce application that uses authorize.net to process credit card information. I have the application setup on GoDaddy shared server but I can’t seem to connect with the payment gateway t…

---

## [Payment Gem Error](https://www.ruby-forum.com/t/payment-gem-error/95572)

<div class="topic-metadata">

**Author:** [@willclarkdesigns](https://www.ruby-forum.com/u/willclarkdesigns)\
**Replies:** 6\
**Last updated:** [May 15, 2009, 8:17am UTC](https://www.ruby-forum.com/t/payment-gem-error/95572 "2009-05-15T08:17:40Z")

</div>

I am learning how to use the payment gem to process credit cards. I think I have everything up and running correctly but I get this error: undefined method \`use\_ssl=' for #\<Net::HTTP secure.authorize.net:443 open=fals…

---

## [Capistrano-ext](https://www.ruby-forum.com/t/capistrano-ext/168039)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 6:41am UTC](https://www.ruby-forum.com/t/capistrano-ext/168039 "2009-05-15T06:41:02Z")

</div>

Hi In my application config/deploy.rb I have set :stages, %w(dev testing) set :default\_stage, “dev” require ‘capistrano/ext/multistage’ -----etc after “deploy”, “deploy:migrate” Now in config/deply/dev.rb role :ap…

---

## [Pdf-writer and new page sizes](https://www.ruby-forum.com/t/pdf-writer-and-new-page-sizes/168028)

<div class="topic-metadata">

**Author:** [@sijomo](https://www.ruby-forum.com/u/sijomo)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 5:25am UTC](https://www.ruby-forum.com/t/pdf-writer-and-new-page-sizes/168028 "2009-05-15T05:25:18Z")

</div>

Hi all, We are creating pdf documents using pdf-writer, and are pretty happy with the results. The only sticking point is we need to create pages of different sizes. Does anyone have any idea of whether this can be d…

---

## [Multiple file upload w/Rails 2.x](https://www.ruby-forum.com/t/multiple-file-upload-w-rails-2-x/168016)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 10\
**Last updated:** [May 15, 2009, 4:09am UTC](https://www.ruby-forum.com/t/multiple-file-upload-w-rails-2-x/168016 "2009-05-15T04:09:54Z")

</div>

Been searching forever. I need to create a multiple file uploader. I can do single files, but I want to do multiple. I think flash is my only option. But my problem is I can’t get flash to communicate. May be somethin…

---

## [Include path update\_rubygems](https://www.ruby-forum.com/t/include-path-update-rubygems/168023)

<div class="topic-metadata">

**Author:** [@fmiguelf](https://www.ruby-forum.com/u/fmiguelf)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 3:34am UTC](https://www.ruby-forum.com/t/include-path-update-rubygems/168023 "2009-05-15T03:34:10Z")

</div>

in my host cpanel, i trying to update my rubygems, but there is the following message \>\> You will need to add /home/querub/ruby/gems to the include path. You can do this by adding the following code to your script: $…

---

## [Setting flash notice via javascript?](https://www.ruby-forum.com/t/setting-flash-notice-via-javascript/167911)

<div class="topic-metadata">

**Author:** [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Replies:** 4\
**Last updated:** [May 15, 2009, 2:58am UTC](https://www.ruby-forum.com/t/setting-flash-notice-via-javascript/167911 "2009-05-15T02:58:45Z")

</div>

I am using a javascript to redirect to another action. Is there a way to set the flash \[:notice\] in the javascript? So when the javascript redirects, the new action/view picks up the flash\[:notice\]? (I suspect I may …

---

## [Nested attributes, fields\_for](https://www.ruby-forum.com/t/nested-attributes-fields-for/167426)

<div class="topic-metadata">

**Author:** [@kostas](https://www.ruby-forum.com/u/kostas)\
**Replies:** 3\
**Last updated:** [May 15, 2009, 2:30am UTC](https://www.ruby-forum.com/t/nested-attributes-fields-for/167426 "2009-05-15T02:30:40Z")

</div>

Hello, My ignorance in Rails should be evident from my wording perhaps, however I couldn’t resolve the following w/o tinkering with action\_view/helpers/form\_builder.rb a bit. Please give me some pointers if possible. …

---

## [Custom Helper Using Block](https://www.ruby-forum.com/t/custom-helper-using-block/168019)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 0\
**Last updated:** [May 15, 2009, 12:45am UTC](https://www.ruby-forum.com/t/custom-helper-using-block/168019 "2009-05-15T00:45:22Z")

</div>

Hi :slight\_smile: What should I do to try to create a contact form that works like this: \<%= contact\_form do |f| %\> Employer: \<%= f.text\_field :employer %\> \<% end %\> The problem so far is that I seem to have a toug…

---

## [Linux and file permissions - newb linux user](https://www.ruby-forum.com/t/linux-and-file-permissions-newb-linux-user/167952)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 4\
**Last updated:** [May 15, 2009, 12:09am UTC](https://www.ruby-forum.com/t/linux-and-file-permissions-newb-linux-user/167952 "2009-05-15T00:09:01Z")

</div>

Hi Ive been googling around but cant get anything concrete on this. Whenever I create a rails project or use a generate command I have to use use the sudo command otherwise ubuntu complains about permissions. However …

---

## [Generated test files and bad require 'test\_helper'](https://www.ruby-forum.com/t/generated-test-files-and-bad-require-test-helper/168005)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 6\
**Last updated:** [May 14, 2009, 11:56pm UTC](https://www.ruby-forum.com/t/generated-test-files-and-bad-require-test-helper/168005 "2009-05-14T23:56:06Z")

</div>

Why do the generated test files have: require ‘test\_helper’ It cannot obviously find the file because it’s located in a subdirectory. That’s annoying.

---

## [Getting acquainted with REST](https://www.ruby-forum.com/t/getting-acquainted-with-rest/168011)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 1\
**Last updated:** [May 14, 2009, 11:12pm UTC](https://www.ruby-forum.com/t/getting-acquainted-with-rest/168011 "2009-05-14T23:12:45Z")

</div>

I’ve been using RoR since 2.0 came out, and I’ve made several small scale sites. Recently I’ve started trying to get into better habits, so I’m now using rspec and cucumber with BDD to create my sites. Another thing I…

---

## [Ruby variable = javascript variable?](https://www.ruby-forum.com/t/ruby-variable-javascript-variable/167983)

<div class="topic-metadata">

**Author:** [@semi](https://www.ruby-forum.com/u/semi)\
**Replies:** 2\
**Last updated:** [May 14, 2009, 10:48pm UTC](https://www.ruby-forum.com/t/ruby-variable-javascript-variable/167983 "2009-05-14T22:48:41Z")

</div>

Is there a way to store the value of a js variable in a ruby variable? The reason I ask is because, for example, when a google maps api returns the result of let’s say the location on the map, it returns it in a js va…

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

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