# Rails

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

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

---

## [Send email](https://www.ruby-forum.com/t/send-email/156423)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 0\
**Last updated:** [December 27, 2008, 6:09am UTC](https://www.ruby-forum.com/t/send-email/156423 "2008-12-27T06:09:54Z")

</div>

hi all in my project i have to send image as signaturre templeate by using action mailer as like we send from gmail or any other. is it possible to send like that. if hw to do it please help me.

---

## [Best way to create a route that only accepts one format](https://www.ruby-forum.com/t/best-way-to-create-a-route-that-only-accepts-one-format/156420)

<div class="topic-metadata">

**Author:** [@joshua-asem](https://www.ruby-forum.com/u/joshua-asem)\
**Replies:** 0\
**Last updated:** [December 27, 2008, 4:34am UTC](https://www.ruby-forum.com/t/best-way-to-create-a-route-that-only-accepts-one-format/156420 "2008-12-27T04:34:38Z")

</div>

Hey guys, I haven’t done this before so I thought I’d ping the mailing list to see if anyone has any better ideas than what I’ve come up with. I want to create a route that looks something like this: url.com/counter/…

---

## [How to get one columns as an array from database](https://www.ruby-forum.com/t/how-to-get-one-columns-as-an-array-from-database/156372)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 12\
**Last updated:** [December 27, 2008, 4:25am UTC](https://www.ruby-forum.com/t/how-to-get-one-columns-as-an-array-from-database/156372 "2008-12-27T04:25:25Z")

</div>

I have a table named “Projects” which has a column “name”. I want to get a string array to represent all the name values. In the controller, I can use this code “@projects = Project.find(:all)” to get all the projects…

---

## [Making a Little Application](https://www.ruby-forum.com/t/making-a-little-application/156370)

<div class="topic-metadata">

**Author:** [@Pierce](https://www.ruby-forum.com/u/Pierce)\
**Replies:** 6\
**Last updated:** [December 27, 2008, 3:32am UTC](https://www.ruby-forum.com/t/making-a-little-application/156370 "2008-12-27T03:32:17Z")

</div>

Hi everyone. I am really new to Ruby on Rails, so I apologize if this is a really simple question but I just can’t think of how I could do this. I want there to be a button that will add a drop down menu to the scree…

---

## [Recommend an upmarket host](https://www.ruby-forum.com/t/recommend-an-upmarket-host/156414)

<div class="topic-metadata">

**Author:** [@newbee-robert](https://www.ruby-forum.com/u/newbee-robert)\
**Replies:** 1\
**Last updated:** [December 27, 2008, 1:35am UTC](https://www.ruby-forum.com/t/recommend-an-upmarket-host/156414 "2008-12-27T01:35:21Z")

</div>

I have limited scaling experience and I’m expending too much energy keeping my servers up. Fortunately now I can afford to pay more. Here’s what I want: tools to easily manage multiple servers tools to easily cluster…

---

## [Live preview with rails 2.2.2](https://www.ruby-forum.com/t/live-preview-with-rails-2-2-2/156416)

<div class="topic-metadata">

**Author:** [@suman\_gurung](https://www.ruby-forum.com/u/suman_gurung)\
**Replies:** 0\
**Last updated:** [December 27, 2008, 12:47am UTC](https://www.ruby-forum.com/t/live-preview-with-rails-2-2-2/156416 "2008-12-27T00:47:24Z")

</div>

Hi all, i was trying to get the ‘live preview’ to work but i couldn’t get it running. I am following the ‘recipe’ from chad fowler’s book “rails recipes” published in 2006. I know it is kinda old… lol Did anyone try …

---

## [Rake db:migrate behaving different for different environments](https://www.ruby-forum.com/t/rake-db-migrate-behaving-different-for-different-environments/156405)

<div class="topic-metadata">

**Author:** [@gourav](https://www.ruby-forum.com/u/gourav)\
**Replies:** 6\
**Last updated:** [December 27, 2008, 12:43am UTC](https://www.ruby-forum.com/t/rake-db-migrate-behaving-different-for-different-environments/156405 "2008-12-27T00:43:18Z")

</div>

I am wondering in my application for past few days, why the rake db:migrate is behaving differently for different environments. Any clue is appreciated Application name : project Database name : project\_my\_own Envir…

---

## [Seperate Date and Time strings into DateTime format](https://www.ruby-forum.com/t/seperate-date-and-time-strings-into-datetime-format/156406)

<div class="topic-metadata">

**Author:** [@Ruby\_on\_RailsS\_Talk](https://www.ruby-forum.com/u/Ruby_on_RailsS_Talk)\
**Replies:** 3\
**Last updated:** [December 26, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/seperate-date-and-time-strings-into-datetime-format/156406 "2008-12-26T23:41:49Z")

</div>

Hi I have a database with a seperate Date and Time fields. I’m trying to work out how to search, return and combine the two, turning them into one DateTime value so that I can then compare it to the current date and …

---

## [Non Default :primary\_key doesnt get updated](https://www.ruby-forum.com/t/non-default-primary-key-doesnt-get-updated/156308)

<div class="topic-metadata">

**Author:** [@sudhakar\_m](https://www.ruby-forum.com/u/sudhakar_m)\
**Replies:** 8\
**Last updated:** [December 26, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/non-default-primary-key-doesnt-get-updated/156308 "2008-12-26T23:28:57Z")

</div>

Hi, I have to use non default primary key in one of my projects. If i save the record, the primary key is not getting updated. For example, consider post.rb class Post \< ActiveRecord::Base set\_primary\_key :ida2a2 …

---

## [Ror plugins - in\_place\_editing and acts\_as-textiled - install error](https://www.ruby-forum.com/t/ror-plugins-in-place-editing-and-acts-as-textiled-install-error/156189)

<div class="topic-metadata">

**Author:** [@suman\_gurung](https://www.ruby-forum.com/u/suman_gurung)\
**Replies:** 7\
**Last updated:** [December 26, 2008, 9:48pm UTC](https://www.ruby-forum.com/t/ror-plugins-in-place-editing-and-acts-as-textiled-install-error/156189 "2008-12-26T21:48:02Z")

</div>

Hello everyone, I was trying to install these in\_place\_editing and acts\_as\_textiled plugins in my rails application version 2.2.2, running on windows XP but i came across some problems when doing so. When i was tryin…

---

## [No Configuration! WHAT?!](https://www.ruby-forum.com/t/no-configuration-what/156305)

<div class="topic-metadata">

**Author:** [@orokusaki](https://www.ruby-forum.com/u/orokusaki)\
**Replies:** 27\
**Last updated:** [December 26, 2008, 9:44pm UTC](https://www.ruby-forum.com/t/no-configuration-what/156305 "2008-12-26T21:44:11Z")

</div>

So, I came from PHP, and CodeIgniter (which is nice, but restrictive with no ORM)I spent the last 9 months trying to understand Ruby on Rails, and I love it. The only problems are that it takes so long to learn fully,…

---

## [How to get the value of dropdown box selected using collect\_select()?](https://www.ruby-forum.com/t/how-to-get-the-value-of-dropdown-box-selected-using-collect-select/156401)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 1\
**Last updated:** [December 26, 2008, 8:52pm UTC](https://www.ruby-forum.com/t/how-to-get-the-value-of-dropdown-box-selected-using-collect-select/156401 "2008-12-26T20:52:18Z")

</div>

Hi, I am trying to get the value of ‘contenttype\_id’ value from the ‘streams’ table like: \<%= collection\_select (:stream, :contenttype\_id,@contenttypes,:id,:name),{},{onchange =\> “switchdiv(value)”;}%\> here i want …

---

## [Rails-1.2.3 to 2.1.1 give memcache-client error](https://www.ruby-forum.com/t/rails-1-2-3-to-2-1-1-give-memcache-client-error/150081)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [December 26, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/rails-1-2-3-to-2-1-1-give-memcache-client-error/150081 "2008-12-26T20:50:01Z")

</div>

my old project is in rails-1.2.3 i installed rails-2.1.1.gem i changed RAILS\_GEM\_VERSION=‘2.1.1’ in environment.rb i started script/server webrick everything is fine when i checked in browser http://localhost:3000 …

---

## [Calss method CSV](https://www.ruby-forum.com/t/calss-method-csv/156402)

<div class="topic-metadata">

**Author:** [@amarime](https://www.ruby-forum.com/u/amarime)\
**Replies:** 0\
**Last updated:** [December 26, 2008, 6:58pm UTC](https://www.ruby-forum.com/t/calss-method-csv/156402 "2008-12-26T18:58:00Z")

</div>

how can i create a class method to read CSV and save them ito DB?

---

## [Net::SMTPUnknownError](https://www.ruby-forum.com/t/net-smtpunknownerror/156391)

<div class="topic-metadata">

**Author:** [@tanker](https://www.ruby-forum.com/u/tanker)\
**Replies:** 1\
**Last updated:** [December 26, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/net-smtpunknownerror/156391 "2008-12-26T16:02:04Z")

</div>

when i’m trying to send mail i got this error Net::SMTPUnknownError (relaylock: Unable to connect to Plesk Database: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) ): and it do no…

---

## [DIY -\> HOW TO make own Rails server \[4 dummies\]](https://www.ruby-forum.com/t/diy-how-to-make-own-rails-server-4-dummies/156390)

<div class="topic-metadata">

**Author:** [@Bartosz\_Wais](https://www.ruby-forum.com/u/Bartosz_Wais)\
**Replies:** 4\
**Last updated:** [December 26, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/diy-how-to-make-own-rails-server-4-dummies/156390 "2008-12-26T15:40:01Z")

</div>

Hi guyz, I got idea to build over lazy Christmas period dedicated rails server for rails just for home use… so instead wasting that time for trying maybe somebody can give me a hint what is the easiest… or quickest w…

---

## [Best way to keep DRY](https://www.ruby-forum.com/t/best-way-to-keep-dry/156392)

<div class="topic-metadata">

**Author:** [@Franz\_S](https://www.ruby-forum.com/u/Franz_S)\
**Replies:** 0\
**Last updated:** [December 26, 2008, 2:46pm UTC](https://www.ruby-forum.com/t/best-way-to-keep-dry/156392 "2008-12-26T14:46:44Z")

</div>

Hello folks, I have models called Address and Cart and both have their needed RESTful actions in place. Now there’s a third model called Despatch which assigns the Cart’s contents to a chosen Address. Ideally then, …

---

## [How to set onclick function for select\_tag?](https://www.ruby-forum.com/t/how-to-set-onclick-function-for-select-tag/156374)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 5\
**Last updated:** [December 26, 2008, 2:39pm UTC](https://www.ruby-forum.com/t/how-to-set-onclick-function-for-select-tag/156374 "2008-12-26T14:39:07Z")

</div>

I want to use select\_tag helper but how to set a onclick function? where should I define this function? thanks.

---

## [Ruby webApp that requires NO database](https://www.ruby-forum.com/t/ruby-webapp-that-requires-no-database/156388)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [December 26, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/ruby-webapp-that-requires-no-database/156388 "2008-12-26T13:09:34Z")

</div>

HI I am a newbie to ruby. I am creating a webApp which will dynamically take data from the API of a search engine and display it, also I need to display some data directly from internet like a person’s blog. For this…

---

## [Single table inheritance](https://www.ruby-forum.com/t/single-table-inheritance/156389)

<div class="topic-metadata">

**Author:** [@luma](https://www.ruby-forum.com/u/luma)\
**Replies:** 1\
**Last updated:** [December 26, 2008, 12:11pm UTC](https://www.ruby-forum.com/t/single-table-inheritance/156389 "2008-12-26T12:11:01Z")

</div>

hi, I have the models: order\_item.rb: class OrderItem \< ActiveRecord::Base end foreign\_item.rb: class ForeignItem \< OrderItem has\_many :purchased\_items end retailler1\_item.rb class Retailer1Item \< ForeignItem …

---

## [Video gallery in rails](https://www.ruby-forum.com/t/video-gallery-in-rails/156383)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 2\
**Last updated:** [December 26, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/video-gallery-in-rails/156383 "2008-12-26T12:03:24Z")

</div>

Dear all, Iam in process of creating video gallery like youtube, please suggesst plugins i should install and best suits fro my application. My requirements are Huge file uploading to upload videos creating thumbnai…

---

## [No such file to load -- sqlite3](https://www.ruby-forum.com/t/no-such-file-to-load-sqlite3/156384)

<div class="topic-metadata">

**Author:** [@gavvin](https://www.ruby-forum.com/u/gavvin)\
**Replies:** 0\
**Last updated:** [December 26, 2008, 10:54am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-sqlite3/156384 "2008-12-26T10:54:30Z")

</div>

Hi, I keep getting this error “no such file to load – sqlite3” unless I explicitly add config.gem “sqlite3-ruby”, :lib =\> “sqlite3” to my environment.rb. I’ve tried reinstalling the gems, but no luck. Any ideas?

---

## [Deploying Radiant - why can't anything ever just work?](https://www.ruby-forum.com/t/deploying-radiant-why-cant-anything-ever-just-work/196865)

<div class="topic-metadata">

**Author:** [@ryanoverton](https://www.ruby-forum.com/u/ryanoverton)\
**Replies:** 3\
**Last updated:** [December 26, 2008, 9:29am UTC](https://www.ruby-forum.com/t/deploying-radiant-why-cant-anything-ever-just-work/196865 "2008-12-26T09:29:25Z")

</div>

So I have been tinkering with Rails all week - I’m a designer, not a developer, but I’m looking to expand my knowledge. I created an instance of Radiant, the cms, and am looking to fiddle with it and then try putting …

---

## [Rake doc:rails -- fails](https://www.ruby-forum.com/t/rake-doc-rails-fails/156353)

<div class="topic-metadata">

**Author:** [@kenwei](https://www.ruby-forum.com/u/kenwei)\
**Replies:** 2\
**Last updated:** [December 26, 2008, 8:16am UTC](https://www.ruby-forum.com/t/rake-doc-rails-fails/156353 "2008-12-26T08:16:07Z")

</div>

rake doc:rails fails with: Don’t know how to build task ‘vendor/rails/railties/CHANGELOG’ How to fix? Rails 2.2.2, Rake 0.8.3. Thanks, Ken

---

## [Shifting query from Controller to Model](https://www.ruby-forum.com/t/shifting-query-from-controller-to-model/156315)

<div class="topic-metadata">

**Author:** [@shahroon\_ali](https://www.ruby-forum.com/u/shahroon_ali)\
**Replies:** 2\
**Last updated:** [December 26, 2008, 8:11am UTC](https://www.ruby-forum.com/t/shifting-query-from-controller-to-model/156315 "2008-12-26T08:11:03Z")

</div>

Hi All, I want to shift my Method from Controller to Model, I have a controller with no Model because there is no table. Now I want to shift my Method from Controller to Model. The code is here… //////////Da…

---

## [How to execute multiple queries in one report of iReports?](https://www.ruby-forum.com/t/how-to-execute-multiple-queries-in-one-report-of-ireports/156376)

<div class="topic-metadata">

**Author:** [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Replies:** 0\
**Last updated:** [December 26, 2008, 6:49am UTC](https://www.ruby-forum.com/t/how-to-execute-multiple-queries-in-one-report-of-ireports/156376 "2008-12-26T06:49:58Z")

</div>

Hi All, Can anyone tell me how to execute multiple queries in one report of iReports?

---

## [Calling render\_to\_string from DRB, or a Rake task?](https://www.ruby-forum.com/t/calling-render-to-string-from-drb-or-a-rake-task/125326)

<div class="topic-metadata">

**Author:** [@subimage](https://www.ruby-forum.com/u/subimage)\
**Replies:** 1\
**Last updated:** [December 26, 2008, 6:45am UTC](https://www.ruby-forum.com/t/calling-render-to-string-from-drb-or-a-rake-task/125326 "2008-12-26T06:45:48Z")

</div>

Has anyone accomplished this magical feat and have code they’d like to share? I’m trying to offload some of my PDF generation stuff into DRB, and generate some PDFs from Rake tasks. Of course, these PDFs are driven u…

---

## [Get the last row](https://www.ruby-forum.com/t/get-the-last-row/156371)

<div class="topic-metadata">

**Author:** [@Ishara\_G](https://www.ruby-forum.com/u/Ishara_G)\
**Replies:** 1\
**Last updated:** [December 26, 2008, 6:16am UTC](https://www.ruby-forum.com/t/get-the-last-row/156371 "2008-12-26T06:16:29Z")

</div>

i want to add a data to already data added row,can any one send methe code.

---

## [Proper way to manage a collection of existing objects](https://www.ruby-forum.com/t/proper-way-to-manage-a-collection-of-existing-objects/156373)

<div class="topic-metadata">

**Author:** [@mcampbell](https://www.ruby-forum.com/u/mcampbell)\
**Replies:** 0\
**Last updated:** [December 26, 2008, 4:01am UTC](https://www.ruby-forum.com/t/proper-way-to-manage-a-collection-of-existing-objects/156373 "2008-12-26T04:01:21Z")

</div>

Hello, I’ve been looking for a pattern to implement managing a collection of exiting objects, and haven’t had much luck. For example, if I have REST controllers for users, and for groups, what would be a good way to …

---

## [Comparison of String with 0 failed](https://www.ruby-forum.com/t/comparison-of-string-with-0-failed/156362)

<div class="topic-metadata">

**Author:** [@bouldr-matt](https://www.ruby-forum.com/u/bouldr-matt)\
**Replies:** 8\
**Last updated:** [December 26, 2008, 1:06am UTC](https://www.ruby-forum.com/t/comparison-of-string-with-0-failed/156362 "2008-12-26T01:06:01Z")

</div>

I’ve got an application that is supposed to track takings of events for a charity I work with. I totally overlooked the fact that the takings would be floats not integers and I’m now fixing that. Unfortunately I’ve ru…

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

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