# Rails

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

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

---

## [Exporting images to Excel sheets](https://www.ruby-forum.com/t/exporting-images-to-excel-sheets/159827)

<div class="topic-metadata">

**Author:** [@ashwinsm](https://www.ruby-forum.com/u/ashwinsm)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 9:23am UTC](https://www.ruby-forum.com/t/exporting-images-to-excel-sheets/159827 "2009-02-09T09:23:22Z")

</div>

Hi, I have generated bar graphs using Gruff. There are around 30-35 graphs, now the problem is I want to export the bar graph images to excel and place each 1 of them in different sheets. Is this posiible? if yes plea…

---

## [Help with passing data between scaffolds](https://www.ruby-forum.com/t/help-with-passing-data-between-scaffolds/159783)

<div class="topic-metadata">

**Author:** [@thegoatboy](https://www.ruby-forum.com/u/thegoatboy)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 9:20am UTC](https://www.ruby-forum.com/t/help-with-passing-data-between-scaffolds/159783 "2009-02-09T09:20:34Z")

</div>

Hello everyone. Great forum you have here. I am pretty new to rails, and I am struggling getting an application up and running. My application is to have a photo gallery. I have two scaffolds, one for albums, and on…

---

## [Singular map.resource problem](https://www.ruby-forum.com/t/singular-map-resource-problem/159811)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 9:02am UTC](https://www.ruby-forum.com/t/singular-map-resource-problem/159811 "2009-02-09T09:02:58Z")

</div>

routes.rb map.resources :entries map.resource :home in entries show view \<%= link\_to ‘ca’, home\_path(2) %\> it has a error: You have a nil object when you didn’t expect it! The error occurred while evaluating nil.to\_…

---

## [Will\_paginate problem](https://www.ruby-forum.com/t/will-paginate-problem/159816)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 7:22am UTC](https://www.ruby-forum.com/t/will-paginate-problem/159816 "2009-02-09T07:22:50Z")

</div>

Hi All, I have implemented application for searching the streams from database.And tryng to implement the pagination on the result page. In my index page i have drop down boxes created using form tags .I can select …

---

## [Web service call help](https://www.ruby-forum.com/t/web-service-call-help/159818)

<div class="topic-metadata">

**Author:** [@zeba-momin](https://www.ruby-forum.com/u/zeba-momin)\
**Replies:** 0\
**Last updated:** [February 9, 2009, 7:15am UTC](https://www.ruby-forum.com/t/web-service-call-help/159818 "2009-02-09T07:15:01Z")

</div>

hi. I need to call a web service whose wsdl is as=\> \<xs:element name=“getRecordedMeetingsList”\> xs:complexType xs:sequence \<xs:element minOccurs=“0” name=“iMeetingId” type=“xs:int”/\> \</xs:sequence\> \</xs:complexTyp…

---

## [Strange IRB problem](https://www.ruby-forum.com/t/strange-irb-problem/159715)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 5:52am UTC](https://www.ruby-forum.com/t/strange-irb-problem/159715 "2009-02-09T05:52:13Z")

</div>

strange… I’m on Vista and updated to Rails 2.2.2 and rubygems 1.3.1 with the usual problem there. …but fixed that pretty easily …(it’s well documented)… everything was fine…but then I tried to use IRB. in every shel…

---

## [Some kind of polymorphism](https://www.ruby-forum.com/t/some-kind-of-polymorphism/159781)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 10\
**Last updated:** [February 9, 2009, 5:30am UTC](https://www.ruby-forum.com/t/some-kind-of-polymorphism/159781 "2009-02-09T05:30:35Z")

</div>

Hello out there, let’s assume, I’ve got an article model. An article always has an author and refers to it. But I’ve got several types of authors which all have theier own models. So a simple foreign key rather belong…

---

## [Newbie Question : else if](https://www.ruby-forum.com/t/newbie-question-else-if/159746)

<div class="topic-metadata">

**Author:** [@akira](https://www.ruby-forum.com/u/akira)\
**Replies:** 8\
**Last updated:** [February 9, 2009, 5:13am UTC](https://www.ruby-forum.com/t/newbie-question-else-if/159746 "2009-02-09T05:13:02Z")

</div>

Hello, i have started using ruby on rails, and searched the web for this information but found nothing! My problem is : i have main.html.rb and inside a conditional : \<% if controller.controller\_name == “main” %\> do …

---

## [Mongrel Socket read error on .pages (iWork) file](https://www.ruby-forum.com/t/mongrel-socket-read-error-on-pages-iwork-file/159808)

<div class="topic-metadata">

**Author:** [@Jeremy\_Olliver](https://www.ruby-forum.com/u/Jeremy_Olliver)\
**Replies:** 2\
**Last updated:** [February 9, 2009, 2:54am UTC](https://www.ruby-forum.com/t/mongrel-socket-read-error-on-pages-iwork-file/159808 "2009-02-09T02:54:24Z")

</div>

Hi, I’m having a quite peculiar problem that hopefully someone can help me with. I use attachment\_fu for image uploads, and found that uploads with any .pages files don’t work. The error I’m getting for my developmen…

---

## [Problem with instant rails](https://www.ruby-forum.com/t/problem-with-instant-rails/159758)

<div class="topic-metadata">

**Author:** [@priyankeshu](https://www.ruby-forum.com/u/priyankeshu)\
**Replies:** 4\
**Last updated:** [February 9, 2009, 1:31am UTC](https://www.ruby-forum.com/t/problem-with-instant-rails/159758 "2009-02-09T01:31:22Z")

</div>

hi thre i have just started learning ROR (following video tutorial by VTC) but on the video they were teaching on MAC, i thought i can follow along on window with instantrails… it was going fine i got the instantrails…

---

## [Ultrasphinx/TextHelper excerpt](https://www.ruby-forum.com/t/ultrasphinx-texthelper-excerpt/136856)

<div class="topic-metadata">

**Author:** [@Olek](https://www.ruby-forum.com/u/Olek)\
**Replies:** 1\
**Last updated:** [February 9, 2009, 12:49am UTC](https://www.ruby-forum.com/t/ultrasphinx-texthelper-excerpt/136856 "2009-02-09T00:49:55Z")

</div>

Hi guys, I have a problem with creating my views. I fetch results from Ultrasphinx::Search#excerpt (Evan Weaver fauna/ultrasphinx/classes/Ultrasphinx/Search.html#M000026). The problem is that this method only highlig…

---

## [Why does "rake db:drop" in prod environment give "Mysql::Error: Table 'equity\_production.accounts'](https://www.ruby-forum.com/t/why-does-rake-db-drop-in-prod-environment-give-mysql-table-equity-production-accounts/159760)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [February 8, 2009, 9:47pm UTC](https://www.ruby-forum.com/t/why-does-rake-db-drop-in-prod-environment-give-mysql-table-equity-production-accounts/159760 "2009-02-08T21:47:28Z")

</div>

Hi, Any ideas why (just trying to migrate a Rails app to the prod server) that “rake db:drop” & “rake db:migrate” etc aren’t working due to the below mentioned mysql error? Obviously this error shouldn’t be coming u…

---

## [Question abouot installing ruby on rail](https://www.ruby-forum.com/t/question-abouot-installing-ruby-on-rail/159782)

<div class="topic-metadata">

**Author:** [@thomas](https://www.ruby-forum.com/u/thomas)\
**Replies:** 0\
**Last updated:** [February 8, 2009, 6:45pm UTC](https://www.ruby-forum.com/t/question-abouot-installing-ruby-on-rail/159782 "2009-02-08T18:45:32Z")

</div>

Hello, We are supposed to host a web application which used ruby on rails. I ve to decided on which server we are going to install this application. So I did somes research and I’ve somes question. We use redhat f…

---

## [Instant Rails CookBook Into Full Ajax CookBook](https://www.ruby-forum.com/t/instant-rails-cookbook-into-full-ajax-cookbook/159780)

<div class="topic-metadata">

**Author:** [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Replies:** 0\
**Last updated:** [February 8, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/instant-rails-cookbook-into-full-ajax-cookbook/159780 "2009-02-08T18:44:06Z")

</div>

Hello everybody, are there any link in this world that pointed tutorial on how to convert Windows InstantRails CookBook app into a Full Ajax CookBook app, I mean by FULL here is when I need to create a new recipe the …

---

## [Rails/Wordpress/Apache/Passenger - not working with custom permalinks](https://www.ruby-forum.com/t/rails-wordpress-apache-passenger-not-working-with-custom-permalinks/159778)

<div class="topic-metadata">

**Author:** [@rzolkos](https://www.ruby-forum.com/u/rzolkos)\
**Replies:** 0\
**Last updated:** [February 8, 2009, 6:04pm UTC](https://www.ruby-forum.com/t/rails-wordpress-apache-passenger-not-working-with-custom-permalinks/159778 "2009-02-08T18:04:30Z")

</div>

Hi, I’m trying to get an installation of wordpress working in a blog directory under /public in a rails app. The webserver is Apache using phusion passenger. I’ve tried following the instructions in this blog post h…

---

## [Local variables passed to a view](https://www.ruby-forum.com/t/local-variables-passed-to-a-view/159777)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 0\
**Last updated:** [February 8, 2009, 5:41pm UTC](https://www.ruby-forum.com/t/local-variables-passed-to-a-view/159777 "2009-02-08T17:41:34Z")

</div>

experimenting, trying to understand local and instance vars and their relationship to views I have a controller with an index method. it sets a local variable like this: (of course I could just make it an instance va…

---

## [SocketError in EmailController#correspond](https://www.ruby-forum.com/t/socketerror-in-emailcontroller-correspond/159766)

<div class="topic-metadata">

**Author:** [@aoifeoz](https://www.ruby-forum.com/u/aoifeoz)\
**Replies:** 2\
**Last updated:** [February 8, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/socketerror-in-emailcontroller-correspond/159766 "2009-02-08T16:25:36Z")

</div>

SocketError in EmailController#correspond getaddrinfo: no address associated with hostname. Please see above, these are the errors i get when i try to email a user on my networking site. Can you help please. Actionma…

---

## [Collection\_select :selected (to get a default value into \<se](https://www.ruby-forum.com/t/collection-select-selected-to-get-a-default-value-into-se/159647)

<div class="topic-metadata">

**Author:** [@stevedogers](https://www.ruby-forum.com/u/stevedogers)\
**Replies:** 8\
**Last updated:** [February 8, 2009, 3:37pm UTC](https://www.ruby-forum.com/t/collection-select-selected-to-get-a-default-value-into-se/159647 "2009-02-08T15:37:07Z")

</div>

I’m getting murdered by this thing! For the life of me, I can’t figure it out. I’ve spent literally days on google. Here’s what I would like to do (in rails 2.2.2): \<% if params\[:cruise\_info\] %\> \<%= collection\_sele…

---

## [Locomotive: Can not install mysql gem](https://www.ruby-forum.com/t/locomotive-can-not-install-mysql-gem/121648)

<div class="topic-metadata">

**Author:** [@ronny](https://www.ruby-forum.com/u/ronny)\
**Replies:** 6\
**Last updated:** [February 8, 2009, 1:21pm UTC](https://www.ruby-forum.com/t/locomotive-can-not-install-mysql-gem/121648 "2009-02-08T13:21:16Z")

</div>

I’m using Locomotive on MacOSX 10.4, and I have installed mysql 5.0.45. To my surprise, the Ruby version included in Locomotive does not come with the mysql gem installed, so I tried to install it manually. According…

---

## [Scalable file uploads with Rails](https://www.ruby-forum.com/t/scalable-file-uploads-with-rails/159682)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 2\
**Last updated:** [February 8, 2009, 7:02am UTC](https://www.ruby-forum.com/t/scalable-file-uploads-with-rails/159682 "2009-02-08T07:02:38Z")

</div>

Hi, I’m involved in a project where I have to re-architect file uploads in a Rails application to make it scalable. Users will be uploading large XML files (approx. 1MB) with high probability of overlap (upload at th…

---

## [Use rails logger in a class without active record](https://www.ruby-forum.com/t/use-rails-logger-in-a-class-without-active-record/159737)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 2\
**Last updated:** [February 8, 2009, 6:02am UTC](https://www.ruby-forum.com/t/use-rails-logger-in-a-class-without-active-record/159737 "2009-02-08T06:02:26Z")

</div>

How do I use the regular rails logger in a rails app in a class that is does not inherit from active record?

---

## [\[ANN\] rails-dev-boost - make Rails in dev. mode 10x times faster](https://www.ruby-forum.com/t/ann-rails-dev-boost-make-rails-in-dev-mode-10x-times-faster/159748)

<div class="topic-metadata">

**Author:** [@thedarkone](https://www.ruby-forum.com/u/thedarkone)\
**Replies:** 0\
**Last updated:** [February 8, 2009, 6:01am UTC](https://www.ruby-forum.com/t/ann-rails-dev-boost-make-rails-in-dev-mode-10x-times-faster/159748 "2009-02-08T06:01:51Z")

</div>

Hey guys, I’m a coauthor of a Rails plugin that patches a few things to make development mode almost as fast as production mode (while still reloading classes and templates). Check it out on GitHub: GitHub - thedarko…

---

## [Confusing singleton resource](https://www.ruby-forum.com/t/confusing-singleton-resource/159721)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 2\
**Last updated:** [February 8, 2009, 5:19am UTC](https://www.ruby-forum.com/t/confusing-singleton-resource/159721 "2009-02-08T05:19:23Z")

</div>

I have a controller name homes, I would add the line map.resource :home so I like to return a url like /home/1, /home/2…etc but why I open up my browser http://127.0.0.1:3000/home/1 it appear the message like this: …

---

## [Restful-authentication and unit tests](https://www.ruby-forum.com/t/restful-authentication-and-unit-tests/159742)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 0\
**Last updated:** [February 8, 2009, 12:46am UTC](https://www.ruby-forum.com/t/restful-authentication-and-unit-tests/159742 "2009-02-08T00:46:07Z")

</div>

There are two unit tests in restful-authentication that fails for me as User.authenticate returns nil def test\_should\_reset\_password users(:quentin).update\_attributes(:password =\> ‘new\_password’, :password\_confirmati…

---

## [Application helper problema](https://www.ruby-forum.com/t/application-helper-problema/159694)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 6\
**Last updated:** [February 7, 2009, 10:38pm UTC](https://www.ruby-forum.com/t/application-helper-problema/159694 "2009-02-07T22:38:29Z")

</div>

I am calling a function I made in application\_helper but when I try to call it it keeps saying method undefined. If I put the function in the controller it runs just fine. any ideas?

---

## [Content\_for only works inside a yield?](https://www.ruby-forum.com/t/content-for-only-works-inside-a-yield/153949)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 7\
**Last updated:** [February 7, 2009, 9:39pm UTC](https://www.ruby-forum.com/t/content-for-only-works-inside-a-yield/153949 "2009-02-07T21:39:16Z")

</div>

I have a partial that has a couple of content\_for blocks in it. This works fine if I render it from a view that will in itself get rendered view yield :layout. But, if I try and render it directly from the application…

---

## [Using partials with form\_for](https://www.ruby-forum.com/t/using-partials-with-form-for/159611)

<div class="topic-metadata">

**Author:** [@Sahil\_D](https://www.ruby-forum.com/u/Sahil_D)\
**Replies:** 2\
**Last updated:** [February 7, 2009, 8:55pm UTC](https://www.ruby-forum.com/t/using-partials-with-form-for/159611 "2009-02-07T20:55:17Z")

</div>

hi all i was wondering whether it is possible to use partials along with form\_for and form\_field. following code is not working. is there some error or this case is impossible…?? #new.html.erb Enter Details for ne…

---

## [Improving this messy has\_many :through with :include](https://www.ruby-forum.com/t/improving-this-messy-has-many-through-with-include/196893)

<div class="topic-metadata">

**Author:** [@alan](https://www.ruby-forum.com/u/alan)\
**Replies:** 2\
**Last updated:** [February 7, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/improving-this-messy-has-many-through-with-include/196893 "2009-02-07T17:30:52Z")

</div>

I have a question about cleaning up a rather complex has\_many. I’ll describe the context in case it helps, but perhaps you can skip straight to the code below. I am designing a fantasy football type system. I am mode…

---

## [Grep-like search help](https://www.ruby-forum.com/t/grep-like-search-help/159683)

<div class="topic-metadata">

**Author:** [@toltec](https://www.ruby-forum.com/u/toltec)\
**Replies:** 4\
**Last updated:** [February 7, 2009, 4:44pm UTC](https://www.ruby-forum.com/t/grep-like-search-help/159683 "2009-02-07T16:44:28Z")

</div>

Hello, noob here. I have a table called ‘entries’ with lots of sentences, one per row (id). I need to find specific sentences that have the words I’m looking for anywhere in them. For example: The bird entered the…

---

## [Ruby EE: Problem with BigDecimal](https://www.ruby-forum.com/t/ruby-ee-problem-with-bigdecimal/159296)

<div class="topic-metadata">

**Author:** [@tuktuk](https://www.ruby-forum.com/u/tuktuk)\
**Replies:** 4\
**Last updated:** [February 7, 2009, 4:10pm UTC](https://www.ruby-forum.com/t/ruby-ee-problem-with-bigdecimal/159296 "2009-02-07T16:10:15Z")

</div>

I have a strange problem with my setup of Passenger and Ruby Enterprise Edition. Sometimes the loading of BigDecimals from the database and session fails (silently) and the variable containing the BigDecimal is just e…

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

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