# Rails

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

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

---

## [Resizing images in rails?](https://www.ruby-forum.com/t/resizing-images-in-rails/147013)

<div class="topic-metadata">

**Author:** [@ravikanth](https://www.ruby-forum.com/u/ravikanth)\
**Replies:** 1\
**Last updated:** [August 27, 2008, 5:17pm UTC](https://www.ruby-forum.com/t/resizing-images-in-rails/147013 "2008-08-27T17:17:43Z")

</div>

Hi, how to resize the images in rails app? i want 400X300 size images to display in my app.But if user enter 600X800 how to resize the image without effect on clarity? now i am using this code image = Magick::Image…

---

## [How to send mail with multiple attachments](https://www.ruby-forum.com/t/how-to-send-mail-with-multiple-attachments/147004)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 1\
**Last updated:** [August 27, 2008, 5:09pm UTC](https://www.ruby-forum.com/t/how-to-send-mail-with-multiple-attachments/147004 "2008-08-27T17:09:30Z")

</div>

i am sending mail with single attachment now i want to send mail with multiple attachments please help me on this.

---

## [Builder doesn't play well with IDEs](https://www.ruby-forum.com/t/builder-doesnt-play-well-with-ides/146928)

<div class="topic-metadata">

**Author:** [@Mike\_Travers](https://www.ruby-forum.com/u/Mike_Travers)\
**Replies:** 2\
**Last updated:** [August 27, 2008, 4:26pm UTC](https://www.ruby-forum.com/t/builder-doesnt-play-well-with-ides/146928 "2008-08-27T16:26:08Z")

</div>

I have been doing some stuff with the XML Builder, and running into problems whenever I try to debug it with an IDE (trying both Eclipse and Netbeans). I believe the problem is that the Builder classes remove all the…

---

## [Execute Scripts from a Controller](https://www.ruby-forum.com/t/execute-scripts-from-a-controller/146910)

<div class="topic-metadata">

**Author:** [@Jorg\_L](https://www.ruby-forum.com/u/Jorg_L)\
**Replies:** 9\
**Last updated:** [August 27, 2008, 4:10pm UTC](https://www.ruby-forum.com/t/execute-scripts-from-a-controller/146910 "2008-08-27T16:10:51Z")

</div>

Is there an easy way to runs things like script/generate and db:migrate from within a controller?

---

## [Query problem](https://www.ruby-forum.com/t/query-problem/146995)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 6\
**Last updated:** [August 27, 2008, 4:07pm UTC](https://www.ruby-forum.com/t/query-problem/146995 "2008-08-27T16:07:54Z")

</div>

Hi I have a following query in my code. GroupUser.find\_by\_sql \[“select user\_id from group\_users where group\_id =?”,6\] and is return me \[#\<GroupUser:0x835c5d4 @attributes={“user\_id”=\>“1”}\>, #\<GroupUser:0x835c5ac @att…

---

## [Using ActionView helpers elsewhere](https://www.ruby-forum.com/t/using-actionview-helpers-elsewhere/147011)

<div class="topic-metadata">

**Author:** [@Ben\_Wagaman](https://www.ruby-forum.com/u/Ben_Wagaman)\
**Replies:** 0\
**Last updated:** [August 27, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/using-actionview-helpers-elsewhere/147011 "2008-08-27T15:48:31Z")

</div>

I am working on a reporting library (perhaps a gem someday). It’s coming along pretty well thus far, though I could use some collective intelligence on something. I would like ActionView::Base (particularly the helpe…

---

## [Undefined method](https://www.ruby-forum.com/t/undefined-method/146946)

<div class="topic-metadata">

**Author:** [@iga](https://www.ruby-forum.com/u/iga)\
**Replies:** 3\
**Last updated:** [August 27, 2008, 3:22pm UTC](https://www.ruby-forum.com/t/undefined-method/146946 "2008-08-27T15:22:07Z")

</div>

I’m trying to pass a method to another object/method as a variable. Example one, login 1 works just fine. def login1 @driver.Login(username, password) end However, if I try to pass “Login” to the driver as an argume…

---

## [Open / Close Connection](https://www.ruby-forum.com/t/open-close-connection/147009)

<div class="topic-metadata">

**Author:** [@CreativeEmbassy](https://www.ruby-forum.com/u/CreativeEmbassy)\
**Replies:** 0\
**Last updated:** [August 27, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/open-close-connection/147009 "2008-08-27T15:11:35Z")

</div>

So I’m introducing Rails to my workplace (enterprise! woo woo), and I’m nearly finished with my first application. Because we’re using SQL Server, I’m now getting zombie state errors. Then I saw this post: http://bla…

---

## [Calculate percentage in Rails/Ruby](https://www.ruby-forum.com/t/calculate-percentage-in-rails-ruby/146980)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 5\
**Last updated:** [August 27, 2008, 2:24pm UTC](https://www.ruby-forum.com/t/calculate-percentage-in-rails-ruby/146980 "2008-08-27T14:24:33Z")

</div>

Hi, i have unique visitors and transactions in my database, wich are showed through an swf-graph. This works fine. Now i want to calculate the conversion-ratio in percentage: visitors/transactions\*100= ratio in perce…

---

## [Several images view](https://www.ruby-forum.com/t/several-images-view/146538)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 1\
**Last updated:** [August 27, 2008, 2:08pm UTC](https://www.ruby-forum.com/t/several-images-view/146538 "2008-08-27T14:08:48Z")

</div>

Hi is there any plugin to view several images that belong to a product for instance I am looking for a simple one that reads the images and support next and forward I looked in github and googl, I did not really fin…

---

## [:order =\>](https://www.ruby-forum.com/t/order/146779)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [August 27, 2008, 1:48pm UTC](https://www.ruby-forum.com/t/order/146779 "2008-08-27T13:48:20Z")

</div>

SELECT \* FROM messages match(caption, message) against (‘Rails’)) ORDER BY caption!=‘Rails’, caption, message How it will looks like in Ruby? This doesn’t work: @word = “Rails” @results = Blogs.paginate(:all, :order…

---

## [How to send mail with multiple attachments](https://www.ruby-forum.com/t/how-to-send-mail-with-multiple-attachments/147001)

<div class="topic-metadata">

**Author:** [@srijith](https://www.ruby-forum.com/u/srijith)\
**Replies:** 0\
**Last updated:** [August 27, 2008, 1:24pm UTC](https://www.ruby-forum.com/t/how-to-send-mail-with-multiple-attachments/147001 "2008-08-27T13:24:36Z")

</div>

i am sending mail with single attachment now i want to send mail with multiple attachments please help me on this.

---

## [Drag and Drop :complete](https://www.ruby-forum.com/t/drag-and-drop-complete/146918)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 5\
**Last updated:** [August 27, 2008, 1:22pm UTC](https://www.ruby-forum.com/t/drag-and-drop-complete/146918 "2008-08-27T13:22:29Z")

</div>

I’ve successfully setup some drag-and-drop categorization in a new app I’m working on, though I’m getting tripped up by Prototype accessors it seems. On complete of the drag and drop process, I want to change the bac…

---

## [How to Execute html code in text area](https://www.ruby-forum.com/t/how-to-execute-html-code-in-text-area/146988)

<div class="topic-metadata">

**Author:** [@srijith](https://www.ruby-forum.com/u/srijith)\
**Replies:** 1\
**Last updated:** [August 27, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/how-to-execute-html-code-in-text-area/146988 "2008-08-27T12:35:31Z")

</div>

i am giving text area like this showing below, in that i am rendering one page now that page is showing in text area but html code is not executing in text area,its showing as it is html tags in that text area \<%=tex…

---

## [How to get a Rails job?](https://www.ruby-forum.com/t/how-to-get-a-rails-job/146983)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 5\
**Last updated:** [August 27, 2008, 12:35pm UTC](https://www.ruby-forum.com/t/how-to-get-a-rails-job/146983 "2008-08-27T12:35:31Z")

</div>

Hi, I have a question about getting a job. I have a strong passion about web programming, but I find it quite difficult to get a job. Here’s my background: No CS background. I was an English major. (English is not m…

---

## [Getting error information from XML Schema validation](https://www.ruby-forum.com/t/getting-error-information-from-xml-schema-validation/146987)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 1\
**Last updated:** [August 27, 2008, 12:00pm UTC](https://www.ruby-forum.com/t/getting-error-information-from-xml-schema-validation/146987 "2008-08-27T12:00:16Z")

</div>

Hi I am using libxml2 to validate an XML file using a Schema. Like this: schema = XML::Schema.from\_string(schema\_string) parser = XML::Parser.new parser.string = xml doc = parser.parse result = doc.validate\_schema(…

---

## [How to generate a PDF from html.erb file](https://www.ruby-forum.com/t/how-to-generate-a-pdf-from-html-erb-file/146785)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 3\
**Last updated:** [August 27, 2008, 11:25am UTC](https://www.ruby-forum.com/t/how-to-generate-a-pdf-from-html-erb-file/146785 "2008-08-27T11:25:02Z")

</div>

Hello friends, I have a task in which i need to generate a pdf file from the html.erb file. and seriously i don’t have any clue. So pleas help me out… Thanks abhishek

---

## [Edit & Email an Excel Spreadsheet in Rails 2.0](https://www.ruby-forum.com/t/edit-email-an-excel-spreadsheet-in-rails-2-0/146981)

<div class="topic-metadata">

**Author:** [@Walter\_Lockhart](https://www.ruby-forum.com/u/Walter_Lockhart)\
**Replies:** 0\
**Last updated:** [August 27, 2008, 9:08am UTC](https://www.ruby-forum.com/t/edit-email-an-excel-spreadsheet-in-rails-2-0/146981 "2008-08-27T09:08:29Z")

</div>

Dear Group, I hope someone out there can help me with this. I am building a Rails 2.0 application for a customer. The customer has a number of Excel spreadsheets which he would like his customers to open and complet…

---

## [Re: in\_place\_editor\_field doesn't work with Float column](https://www.ruby-forum.com/t/re-in-place-editor-field-doesnt-work-with-float-column/146974)

<div class="topic-metadata">

**Author:** [@palani](https://www.ruby-forum.com/u/palani)\
**Replies:** 0\
**Last updated:** [August 27, 2008, 7:48am UTC](https://www.ruby-forum.com/t/re-in-place-editor-field-doesnt-work-with-float-column/146974 "2008-08-27T07:48:18Z")

</div>

Hi Anyone please help me to solve in\_place\_editor\_field . Its working for me with Integers and Strings, but I get an error on Float fields. It says Undefined method \`size’ for 0.03:Float It does change the value in …

---

## [Commercial ERP Application using ROR?](https://www.ruby-forum.com/t/commercial-erp-application-using-ror/146973)

<div class="topic-metadata">

**Author:** [@erptool](https://www.ruby-forum.com/u/erptool)\
**Replies:** 0\
**Last updated:** [August 27, 2008, 7:47am UTC](https://www.ruby-forum.com/t/commercial-erp-application-using-ror/146973 "2008-08-27T07:47:42Z")

</div>

Hi All, I am a 17 yr veteran of high end databases and applications (Oracle Database and ERP 10.6 to 11i) and have worked with nearly every other technology under the Sun. I work freelance as a Sr. Program Manager an…

---

## [Implementing open\_id with acts\_as\_authentication](https://www.ruby-forum.com/t/implementing-open-id-with-acts-as-authentication/146764)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 4\
**Last updated:** [August 27, 2008, 6:29am UTC](https://www.ruby-forum.com/t/implementing-open-id-with-acts-as-authentication/146764 "2008-08-27T06:29:01Z")

</div>

hi ! i am very new to ror i am impressed with open id plugin ! previously i installed acts\_as\_authentication now i want to merge it with open id login system ! i have installed gem ruby-openid 2.1.2 . when page lodes …

---

## [I18n simplified](https://www.ruby-forum.com/t/i18n-simplified/146962)

<div class="topic-metadata">

**Author:** [@simonr](https://www.ruby-forum.com/u/simonr)\
**Replies:** 0\
**Last updated:** [August 27, 2008, 3:20am UTC](https://www.ruby-forum.com/t/i18n-simplified/146962 "2008-08-27T03:20:53Z")

</div>

We’ve released new i18n tool that supports variety of programming technologies including Ruby on Rails. The web site has really good support for Ruby on Rails. We support GetText and YML based translations so you can …

---

## [Two Noob Questions](https://www.ruby-forum.com/t/two-noob-questions/146952)

<div class="topic-metadata">

**Author:** [@trope](https://www.ruby-forum.com/u/trope)\
**Replies:** 3\
**Last updated:** [August 27, 2008, 2:22am UTC](https://www.ruby-forum.com/t/two-noob-questions/146952 "2008-08-27T02:22:33Z")

</div>

I am building my first application, and have a couple of quick questions. Hopefully someone can point me in the right direction. When I created my model , I noticed a field named “created\_at” , which comes in handy.…

---

## [Rails Testing Framework lacking documentation](https://www.ruby-forum.com/t/rails-testing-framework-lacking-documentation/196790)

<div class="topic-metadata">

**Author:** [@dracko](https://www.ruby-forum.com/u/dracko)\
**Replies:** 7\
**Last updated:** [August 27, 2008, 1:35am UTC](https://www.ruby-forum.com/t/rails-testing-framework-lacking-documentation/196790 "2008-08-27T01:35:11Z")

</div>

It’s said that Rails promotes testing. But it lacks in properly documentation. I’m trying to learn how to write test units in Rails 2.1, but the documentation is unusable. Take for instance, this case: In API, it is…

---

## [Stopped Upload kills my Apache/Passenger app](https://www.ruby-forum.com/t/stopped-upload-kills-my-apache-passenger-app/141787)

<div class="topic-metadata">

**Author:** [@vulpesfurvus](https://www.ruby-forum.com/u/vulpesfurvus)\
**Replies:** 1\
**Last updated:** [August 27, 2008, 1:16am UTC](https://www.ruby-forum.com/t/stopped-upload-kills-my-apache-passenger-app/141787 "2008-08-27T01:16:28Z")

</div>

Hi, I’m having a big problem with stoped uploads killing my app. I simply have a restfull controller and as follows, my view and models are: View new.html.erb: New Image \<%= error\_messages\_for :image %\> \<% form\_for(…

---

## [Problem: has\_many, (belongs\_to, has\_one) creating a many\_to\_many](https://www.ruby-forum.com/t/problem-has-many-belongs-to-has-one-creating-a-many-to-many/146943)

<div class="topic-metadata">

**Author:** [@kmiller](https://www.ruby-forum.com/u/kmiller)\
**Replies:** 1\
**Last updated:** [August 27, 2008, 12:14am UTC](https://www.ruby-forum.com/t/problem-has-many-belongs-to-has-one-creating-a-many-to-many/146943 "2008-08-27T00:14:27Z")

</div>

I’m very much a rookie with Rails so feel free to clue me in :slight\_smile: I have two tables: Series, Paintings I’m trying to set this one\_to\_many up so that I have many paintings within a series i.e Series: italy …

---

## [Best practices to get DB-agnostic datetime comparisons?](https://www.ruby-forum.com/t/best-practices-to-get-db-agnostic-datetime-comparisons/146937)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [August 27, 2008, 12:11am UTC](https://www.ruby-forum.com/t/best-practices-to-get-db-agnostic-datetime-comparisons/146937 "2008-08-27T00:11:31Z")

</div>

All, I have some simple filtering that I would like to do by date. I’m currently running against MySQL, but will likely be running this app. in production against Oracle. Currently, I have a condition like the follo…

---

## [How to apply the :group\_by option in ferret search](https://www.ruby-forum.com/t/how-to-apply-the-group-by-option-in-ferret-search/136151)

<div class="topic-metadata">

**Author:** [@vicky](https://www.ruby-forum.com/u/vicky)\
**Replies:** 1\
**Last updated:** [August 27, 2008, 12:03am UTC](https://www.ruby-forum.com/t/how-to-apply-the-group-by-option-in-ferret-search/136151 "2008-08-27T00:03:00Z")

</div>

Please help its urgent.

---

## [How do you rewrite this with the :group option?](https://www.ruby-forum.com/t/how-do-you-rewrite-this-with-the-group-option/146902)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [August 26, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/how-do-you-rewrite-this-with-the-group-option/146902 "2008-08-26T23:49:50Z")

</div>

Hello, I would like to rewrite this find\_by\_sql query in terms of :group, :limit, etc. options. I don’t know how to handle the count(\*) as count part though. Does anybody know how to make a more Ruby-like implement…

---

## [May have to use Cake PHP](https://www.ruby-forum.com/t/may-have-to-use-cake-php/146923)

<div class="topic-metadata">

**Author:** [@Joe\_K](https://www.ruby-forum.com/u/Joe_K)\
**Replies:** 2\
**Last updated:** [August 26, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/may-have-to-use-cake-php/146923 "2008-08-26T23:37:30Z")

</div>

I am normally a rails dev, but I have a project coming up where I think I am going to be restricted to php. Does anyone know of some sort of “Cake PHP for Rails devs” tutorial? I would like to read a book first, but …

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

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