# Rails

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

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

---

## [.html/.html.erb/.rhtml to PDF](https://www.ruby-forum.com/t/html-html-erb-rhtml-to-pdf/172000)

<div class="topic-metadata">

**Author:** [@san2821](https://www.ruby-forum.com/u/san2821)\
**Replies:** 12\
**Last updated:** [September 1, 2009, 11:07am UTC](https://www.ruby-forum.com/t/html-html-erb-rhtml-to-pdf/172000 "2009-09-01T11:07:14Z")

</div>

Hello All, I wanted to convert .html file into .pdf. is there any rails plugin ?? Thanks, Sandip R~ – Ruby on Rails Developer

---

## [How to call method declared in one model](https://www.ruby-forum.com/t/how-to-call-method-declared-in-one-model/174670)

<div class="topic-metadata">

**Author:** [@karthik](https://www.ruby-forum.com/u/karthik)\
**Replies:** 16\
**Last updated:** [September 1, 2009, 11:04am UTC](https://www.ruby-forum.com/t/how-to-call-method-declared-in-one-model/174670 "2009-09-01T11:04:42Z")

</div>

hi guys I need to know how to call one method declared in one model to another controller or another model e.g model1.rb def check1 puts “check1” end model2.rb def check2 puts “check2” end i need to access ch…

---

## [Expected response to be a \<:success\>,but was \<500\>](https://www.ruby-forum.com/t/expected-response-to-be-a-success-but-was-500/174655)

<div class="topic-metadata">

**Author:** [@fireflyman](https://www.ruby-forum.com/u/fireflyman)\
**Replies:** 11\
**Last updated:** [September 1, 2009, 9:04am UTC](https://www.ruby-forum.com/t/expected-response-to-be-a-success-but-was-500/174655 "2009-09-01T09:04:04Z")

</div>

Hi,Man I write some integration test,like follow require "#{File.dirname(\_\_FILE\_\_)}/../test\_helper" class BrowsingAndSearchingTest \< ActionController::IntegrationTest fixtures :publishers, :authors, :books, :authors\_…

---

## [Create a Zip with Kernel.system](https://www.ruby-forum.com/t/create-a-zip-with-kernel-system/174725)

<div class="topic-metadata">

**Author:** [@Geoffroy\_G](https://www.ruby-forum.com/u/Geoffroy_G)\
**Replies:** 0\
**Last updated:** [September 1, 2009, 8:32am UTC](https://www.ruby-forum.com/t/create-a-zip-with-kernel-system/174725 "2009-09-01T08:32:25Z")

</div>

Hey, I’m trying to create a zipfile containing a lots of pictures that where uploaded using attachement\_fu. I used rubyzip, and everything worked great until I used it to compress a lot of files, then it produced a R…

---

## [Netsted each loops](https://www.ruby-forum.com/t/netsted-each-loops/174672)

<div class="topic-metadata">

**Author:** [@brianp](https://www.ruby-forum.com/u/brianp)\
**Replies:** 2\
**Last updated:** [September 1, 2009, 7:54am UTC](https://www.ruby-forum.com/t/netsted-each-loops/174672 "2009-09-01T07:54:21Z")

</div>

Hey, So I keep getting “undefined method \`each’ for #\<Definition: 0x28fa154\>”. The call that gets made returns 1 word object with 2 definition objects. I can verify both definition objects get returned with all there…

---

## [Emails - html not rendering](https://www.ruby-forum.com/t/emails-html-not-rendering/174564)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 7\
**Last updated:** [September 1, 2009, 6:00am UTC](https://www.ruby-forum.com/t/emails-html-not-rendering/174564 "2009-09-01T06:00:10Z")

</div>

Hi, i am using ruby 1.8.7 and rails 2.3.3 i can send emails using gmail smtp my config is: ActionMailer::Base.raise\_delivery\_errors = true ActionMailer::Base.perform\_deliveries = true ActionMailer::Base.delivery\_me…

---

## [Should I use Passenger for development?](https://www.ruby-forum.com/t/should-i-use-passenger-for-development/174641)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 9\
**Last updated:** [September 1, 2009, 5:59am UTC](https://www.ruby-forum.com/t/should-i-use-passenger-for-development/174641 "2009-09-01T05:59:35Z")

</div>

Hi, I will deploy my sites with Passenger. I develop on windows with Instantrails so I should now use vmware if I want to have passenger also used during development. But is it really needed? Does it make much differ…

---

## [Has HAML gone "mainstream"?](https://www.ruby-forum.com/t/has-haml-gone-mainstream/174581)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 7\
**Last updated:** [September 1, 2009, 5:18am UTC](https://www.ruby-forum.com/t/has-haml-gone-mainstream/174581 "2009-09-01T05:18:00Z")

</div>

I’ve been looking for a new gig lately, and have noticed that an alarming (to me, since I don’t yet speak HAML) number of the openings mention HAML as a required or desired skill. I noticed HAML out of the corner of m…

---

## [Anything but Aptana](https://www.ruby-forum.com/t/anything-but-aptana/174350)

<div class="topic-metadata">

**Author:** [@RVince](https://www.ruby-forum.com/u/RVince)\
**Replies:** 28\
**Last updated:** [September 1, 2009, 4:18am UTC](https://www.ruby-forum.com/t/anything-but-aptana/174350 "2009-09-01T04:18:52Z")

</div>

Not trying to get into a “What’s a good IDE” here, BUT…On Windows…RadRails never cut it. Under Aptana, it’s a terrible joke, and I’m sick of losing so much time waiting not only for this thing to initialize, but the h…

---

## [Rake file created not recognized by rake -T](https://www.ruby-forum.com/t/rake-file-created-not-recognized-by-rake-t/174658)

<div class="topic-metadata">

**Author:** [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Replies:** 3\
**Last updated:** [September 1, 2009, 2:14am UTC](https://www.ruby-forum.com/t/rake-file-created-not-recognized-by-rake-t/174658 "2009-09-01T02:14:44Z")

</div>

I am trying to write a custom rake task for my app. But however simple my rake task is, rake -T still does not list it. Here’s my file in /lib/tasks called try.rake: desc “try rake” task :one do puts “task one” e…

---

## [ActiveRecord finder using :group?](https://www.ruby-forum.com/t/activerecord-finder-using-group/174718)

<div class="topic-metadata">

**Author:** [@coolmenu](https://www.ruby-forum.com/u/coolmenu)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/activerecord-finder-using-group/174718 "2009-08-31T22:49:11Z")

</div>

I’m trying to gather and display some simple statistical data. I want to display the number of Products created over the last month, grouped by the day they were created. Am I on the right track as far as the Active…

---

## [Show div on selection from dropdown](https://www.ruby-forum.com/t/show-div-on-selection-from-dropdown/174715)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 10:13pm UTC](https://www.ruby-forum.com/t/show-div-on-selection-from-dropdown/174715 "2009-08-31T22:13:19Z")

</div>

This might be more of an HTML general question, but I have been trying to find a “rails” way to do this and have come up short. What I want to do is to have a div appear if a certain selection from a drop-down is sele…

---

## [Multivariable linear regression](https://www.ruby-forum.com/t/multivariable-linear-regression/174683)

<div class="topic-metadata">

**Author:** [@trivial](https://www.ruby-forum.com/u/trivial)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 10:04pm UTC](https://www.ruby-forum.com/t/multivariable-linear-regression/174683 "2009-08-31T22:04:41Z")

</div>

Hi, I need to do some multivariable linear regression from RoR. I have found one possible solution: Install R on my host (Dreamhost) Use the “R for Ruby” gem Using a complex statistical package such as R seems a bit…

---

## [NameError: undefined local variable or method \`testapp' for main:Object](https://www.ruby-forum.com/t/nameerror-undefined-local-variable-or-method-testapp-for-main-object/174702)

<div class="topic-metadata">

**Author:** [@maddy](https://www.ruby-forum.com/u/maddy)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 10:02pm UTC](https://www.ruby-forum.com/t/nameerror-undefined-local-variable-or-method-testapp-for-main-object/174702 "2009-08-31T22:02:55Z")

</div>

Hi, I am new to Ruby on Rails. Recently, I downloaded and installed the InstantRails in the D:\\ drive of my system. Now I wanted to try some small examples in ‘irb’, so I created a file “testapp.rb” and in that paste…

---

## [Nil object problem](https://www.ruby-forum.com/t/nil-object-problem/174714)

<div class="topic-metadata">

**Author:** [@acgreen](https://www.ruby-forum.com/u/acgreen)\
**Replies:** 4\
**Last updated:** [August 31, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/nil-object-problem/174714 "2009-08-31T21:49:27Z")

</div>

This is a repost as I had zero replies to my first email. This problem is driving me mad but it has to be a simple solution that I just can;t see. Can someone please tell me what the difference is between the followin…

---

## [Logging in using current Windows user information](https://www.ruby-forum.com/t/logging-in-using-current-windows-user-information/174675)

<div class="topic-metadata">

**Author:** [@wanyixue](https://www.ruby-forum.com/u/wanyixue)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 9:22pm UTC](https://www.ruby-forum.com/t/logging-in-using-current-windows-user-information/174675 "2009-08-31T21:22:07Z")

</div>

is it possible to fetch the current logged in window user information for authentication / log in purposes ?

---

## [Why can't I post in the JRuby mailing list?](https://www.ruby-forum.com/t/why-cant-i-post-in-the-jruby-mailing-list/174526)

<div class="topic-metadata">

**Author:** [@AlwaysCharging](https://www.ruby-forum.com/u/AlwaysCharging)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 9:10pm UTC](https://www.ruby-forum.com/t/why-cant-i-post-in-the-jruby-mailing-list/174526 "2009-08-31T21:10:49Z")

</div>

Man I know this is in the wrong forum, so first let me apologize. However, I can’t figure out why I am unable to post in the JRuby google group. I have tried on two separate occasions (12 hours apart) and it’s now ap…

---

## [Dynamic drop-downs in a form\_for using AJAX remote\_function - Help](https://www.ruby-forum.com/t/dynamic-drop-downs-in-a-form-for-using-ajax-remote-function-help/173548)

<div class="topic-metadata">

**Author:** [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Replies:** 5\
**Last updated:** [August 31, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/dynamic-drop-downs-in-a-form-for-using-ajax-remote-function-help/173548 "2009-08-31T21:07:18Z")

</div>

Hello - I am fairly new to Ruby on Rails, but feel like I am learning quick. I have what seems to be a fairly unique issue as I cannot find much out there that describes what I’m seeing. Hopefully it’s a very simple…

---

## [Jobs](https://www.ruby-forum.com/t/jobs/174716)

<div class="topic-metadata">

**Author:** [@Miriam\_Ryan](https://www.ruby-forum.com/u/Miriam_Ryan)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/jobs/174716 "2009-08-31T21:07:18Z")

</div>

Overview The Company The best of both worlds. We are an internet start-up incubated within a leading global information services company,. We enjoy the strength and resources of an established organization coupled wi…

---

## [Getting this error](https://www.ruby-forum.com/t/getting-this-error/174669)

<div class="topic-metadata">

**Author:** [@hunt](https://www.ruby-forum.com/u/hunt)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 8:23pm UTC](https://www.ruby-forum.com/t/getting-this-error/174669 "2009-08-31T20:23:24Z")

</div>

HI friends, After updating ruby 1.8 to ruby1.9.1…& on firing script/server to start a server, I am getting the following errror… /home/HUNT/WEBlog/config/boot.rb:86:in load\_rubygems': undefined method\>=’ for nil:NilC…

---

## [Paperclip gives an strange error message](https://www.ruby-forum.com/t/paperclip-gives-an-strange-error-message/174706)

<div class="topic-metadata">

**Author:** [@gorter9](https://www.ruby-forum.com/u/gorter9)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/paperclip-gives-an-strange-error-message/174706 "2009-08-31T18:41:32Z")

</div>

I installed my railsapp on my server and now i get a strange error when i tried to upload a photo. On my macbook it works well but on the server i got next error when i create a new post Photo /tmp/stream.22042.1 is …

---

## [Beginners partials question](https://www.ruby-forum.com/t/beginners-partials-question/174708)

<div class="topic-metadata">

**Author:** [@newtoror](https://www.ruby-forum.com/u/newtoror)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 6:35pm UTC](https://www.ruby-forum.com/t/beginners-partials-question/174708 "2009-08-31T18:35:27Z")

</div>

I have an observe field for a select field. \<%= f.label :type\_id%\> \<%= f.select :type\_id,RuleType.all.collect{|c| \[c.description,c.id\]} %\> \<%= observe\_field 'type\_id', :url =\> { :controller =\> …

---

## [How to: Reduce nbr of processes (Ruby, Apache, BackgroundRB)](https://www.ruby-forum.com/t/how-to-reduce-nbr-of-processes-ruby-apache-backgroundrb/174704)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 6:14pm UTC](https://www.ruby-forum.com/t/how-to-reduce-nbr-of-processes-ruby-apache-backgroundrb/174704 "2009-08-31T18:14:27Z")

</div>

Hi there, I’m currently trying to cut back on memory usage on my production server. I have noticed that I have 2 ruby processes running on my server: “ruby” and “ruby1.8”. Is this normal? If not, how do I get rid of …

---

## [Checking something in update action before saving](https://www.ruby-forum.com/t/checking-something-in-update-action-before-saving/174700)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 1\
**Last updated:** [August 31, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/checking-something-in-update-action-before-saving/174700 "2009-08-31T17:43:00Z")

</div>

This errors as I can’t jump out of the action with render multiple times. “Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per…

---

## [Rails 3.0](https://www.ruby-forum.com/t/rails-3-0/174449)

<div class="topic-metadata">

**Author:** [@RORock](https://www.ruby-forum.com/u/RORock)\
**Replies:** 8\
**Last updated:** [August 31, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/rails-3-0/174449 "2009-08-31T16:23:22Z")

</div>

can some tell me where i can find rails 3.0 ebooks for free? Thanks MNT

---

## [Thumbnails in Rails](https://www.ruby-forum.com/t/thumbnails-in-rails/174667)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 4\
**Last updated:** [August 31, 2009, 3:42pm UTC](https://www.ruby-forum.com/t/thumbnails-in-rails/174667 "2009-08-31T15:42:26Z")

</div>

Hi Champs, Actually, i am uploading a file to my server… Now suppose if i uploads the file of more than 1Mb… then its taking a lot of space… And also taking a lot of time in showing that image … Just like thumbnails ……

---

## [Migration - wrong SQL statement is created](https://www.ruby-forum.com/t/migration-wrong-sql-statement-is-created/174691)

<div class="topic-metadata">

**Author:** [@heyho](https://www.ruby-forum.com/u/heyho)\
**Replies:** 3\
**Last updated:** [August 31, 2009, 3:41pm UTC](https://www.ruby-forum.com/t/migration-wrong-sql-statement-is-created/174691 "2009-08-31T15:41:58Z")

</div>

Hi, I am doing my first steps with RoR and I have the following problem: I execute my migration file with the following content on a MySQL-database via Rake: class CreateUsers \< ActiveRecord::Migration def self.up…

---

## [Java like ear / Cache / Class in Ruby?](https://www.ruby-forum.com/t/java-like-ear-cache-class-in-ruby/174688)

<div class="topic-metadata">

**Author:** [@Ritvvij](https://www.ruby-forum.com/u/Ritvvij)\
**Replies:** 4\
**Last updated:** [August 31, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/java-like-ear-cache-class-in-ruby/174688 "2009-08-31T15:40:38Z")

</div>

Hi, We are facing a very weird situation. We do not face the problem in our local but face it on the web service where we hosted. Seems like the kinda of issues we have in java where either code stayed in cache and n…

---

## [Controllers / Helpers from shared Directory outside of application directory](https://www.ruby-forum.com/t/controllers-helpers-from-shared-directory-outside-of-application-directory/174694)

<div class="topic-metadata">

**Author:** [@mgpowers](https://www.ruby-forum.com/u/mgpowers)\
**Replies:** 0\
**Last updated:** [August 31, 2009, 3:29pm UTC](https://www.ruby-forum.com/t/controllers-helpers-from-shared-directory-outside-of-application-directory/174694 "2009-08-31T15:29:30Z")

</div>

Is there any way to have rails find controllers/helpers in additional directories outside the main applicaton directory ? Thanks!

---

## [Finding data which, when tweaked, matches](https://www.ruby-forum.com/t/finding-data-which-when-tweaked-matches/174559)

<div class="topic-metadata">

**Author:** [@trevoke](https://www.ruby-forum.com/u/trevoke)\
**Replies:** 5\
**Last updated:** [August 31, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/finding-data-which-when-tweaked-matches/174559 "2009-08-31T14:53:50Z")

</div>

Say I have a string : “012345678”. I have a column in a table which also stores strings. I want to find all rows which match that string of numbers in that order. That is, “012345678” will match, but “012-34-5678” wil…

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

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