# Rails

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

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

---

## [Problem with switching rails 2.2.2. application to production](https://www.ruby-forum.com/t/problem-with-switching-rails-2-2-2-application-to-production/171627)

<div class="topic-metadata">

**Author:** [@sultan](https://www.ruby-forum.com/u/sultan)\
**Replies:** 4\
**Last updated:** [July 10, 2009, 4:47pm UTC](https://www.ruby-forum.com/t/problem-with-switching-rails-2-2-2-application-to-production/171627 "2009-07-10T16:47:15Z")

</div>

Problem with switching rails 2.2.2. application to production: When I uncomment the following two statements or only the first one from environment.rb, ###ENV\[‘RAILS\_ENV’\] = ‘production’ ###RAILS\_ENV = ENV\[‘RAILS\_ENV…

---

## [Render a whole HTML page after an Ajax request: possible?](https://www.ruby-forum.com/t/render-a-whole-html-page-after-an-ajax-request-possible/171865)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 3\
**Last updated:** [July 10, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/render-a-whole-html-page-after-an-ajax-request-possible/171865 "2009-07-10T14:55:13Z")

</div>

Hi there, Suppose: ‘action A’ was launched by an Ajax request Question: Is it possible to somehow render a whole HTML page (not only return a part of the page), or redirect (within ‘action A’) to an ‘action B’ (whic…

---

## [An implementation question](https://www.ruby-forum.com/t/an-implementation-question/171864)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [July 10, 2009, 2:29pm UTC](https://www.ruby-forum.com/t/an-implementation-question/171864 "2009-07-10T14:29:53Z")

</div>

Hi This is an implementation question. I have various reports to be generated in my application like PDF reports, Excel reports etc So I tried like a main class Application report and all the other report types its s…

---

## [(Jobs) Technical Ruby Engineers/Developers - Would you like to be recognized for your contributions](https://www.ruby-forum.com/t/jobs-technical-ruby-engineers-developers-would-you-like-to-be-recognized-for-your-contributions/171870)

<div class="topic-metadata">

**Author:** [@Marta](https://www.ruby-forum.com/u/Marta)\
**Replies:** 0\
**Last updated:** [July 10, 2009, 2:25pm UTC](https://www.ruby-forum.com/t/jobs-technical-ruby-engineers-developers-would-you-like-to-be-recognized-for-your-contributions/171870 "2009-07-10T14:25:12Z")

</div>

Hi, One of my client companies is looking for 3 Ruby Engineers – one entry level (front end) plus 1 – 2 yrs of experience, one senior level ruby engineer (front- end) and one senior engineer (backend). I’m looking …

---

## [Problem installing system\_timer in windows](https://www.ruby-forum.com/t/problem-installing-system-timer-in-windows/171860)

<div class="topic-metadata">

**Author:** [@shakor](https://www.ruby-forum.com/u/shakor)\
**Replies:** 2\
**Last updated:** [July 10, 2009, 1:04pm UTC](https://www.ruby-forum.com/t/problem-installing-system-timer-in-windows/171860 "2009-07-10T13:04:34Z")

</div>

Hi, I recently started working on an existing Ruby On Rails application which production environment is linux. However we are trying to create a dev. platform with Eclipse in Windows and everything was working fine u…

---

## [How to use partition](https://www.ruby-forum.com/t/how-to-use-partition/171863)

<div class="topic-metadata">

**Author:** [@dnstevenson](https://www.ruby-forum.com/u/dnstevenson)\
**Replies:** 1\
**Last updated:** [July 10, 2009, 12:03pm UTC](https://www.ruby-forum.com/t/how-to-use-partition/171863 "2009-07-10T12:03:11Z")

</div>

Hi Folks, Real easy one for you probably. I’m just trying to split an array in half into 2 separate arrays that I can loop through and have seen the Partition method. Can anyone give me an example of how to use this, …

---

## [Can I pass parameter in redirect\_to](https://www.ruby-forum.com/t/can-i-pass-parameter-in-redirect-to/171859)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 1\
**Last updated:** [July 10, 2009, 11:12am UTC](https://www.ruby-forum.com/t/can-i-pass-parameter-in-redirect-to/171859 "2009-07-10T11:12:21Z")

</div>

I use redirect\_to to another action. Can I pass parameters to this action?

---

## [Different version of RoR on server](https://www.ruby-forum.com/t/different-version-of-ror-on-server/171770)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 14\
**Last updated:** [July 10, 2009, 9:34am UTC](https://www.ruby-forum.com/t/different-version-of-ror-on-server/171770 "2009-07-10T09:34:18Z")

</div>

I use rails 2.3.2. The server use 2.1.1. What do I do? Make a new app on my side based on 2.1.1? If yes, how do I do that?

---

## [Problems delete record using attachment\_fu](https://www.ruby-forum.com/t/problems-delete-record-using-attachment-fu/171858)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 0\
**Last updated:** [July 10, 2009, 9:02am UTC](https://www.ruby-forum.com/t/problems-delete-record-using-attachment-fu/171858 "2009-07-10T09:02:21Z")

</div>

Hello, I’m having problems deleteing records that doesn’t have attachments even though the model supports them. When I create a record with a attachment I can delete it without problems but when it comes to deleting a…

---

## [A Mongrel of an Error](https://www.ruby-forum.com/t/a-mongrel-of-an-error/171818)

<div class="topic-metadata">

**Author:** [@shusseina](https://www.ruby-forum.com/u/shusseina)\
**Replies:** 4\
**Last updated:** [July 10, 2009, 5:43am UTC](https://www.ruby-forum.com/t/a-mongrel-of-an-error/171818 "2009-07-10T05:43:34Z")

</div>

I’m a Rails newbie (and a Ruby newbie for that matter). I am working my way through the book href=“http://www.amazon.com/Simply-Rails-2- Patrick-Lenz/dp/0980455200/ref=sr\_1\_1? ie=UTF8&s=books&qid=1247152951&sr=8-1”\>“…

---

## [Observe\_field value in controller](https://www.ruby-forum.com/t/observe-field-value-in-controller/171832)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 2\
**Last updated:** [July 10, 2009, 2:10am UTC](https://www.ruby-forum.com/t/observe-field-value-in-controller/171832 "2009-07-10T02:10:13Z")

</div>

how do I access the value of the field referenced in observe\_field from within my controller for the action specified? I have a select with id “channelnotes” on it, to which I have an observe\_field that correctly work…

---

## [Managing and presenting large amounts of up-to-date data...?](https://www.ruby-forum.com/t/managing-and-presenting-large-amounts-of-up-to-date-data/171837)

<div class="topic-metadata">

**Author:** [@dezrtdude](https://www.ruby-forum.com/u/dezrtdude)\
**Replies:** 1\
**Last updated:** [July 10, 2009, 1:56am UTC](https://www.ruby-forum.com/t/managing-and-presenting-large-amounts-of-up-to-date-data/171837 "2009-07-10T01:56:48Z")

</div>

Hi All, I’m in the midst of a Rails application that produces line,bar, and pie charts for constantly accumulated data. That said, I’m looking for some quality ways in which to deal with presenting the large amounts…

---

## [RuntimeError (JPEG marker not found!):](https://www.ruby-forum.com/t/runtimeerror-jpeg-marker-not-found/171788)

<div class="topic-metadata">

**Author:** [@Madhu\_kanikanti](https://www.ruby-forum.com/u/Madhu_kanikanti)\
**Replies:** 2\
**Last updated:** [July 10, 2009, 12:28am UTC](https://www.ruby-forum.com/t/runtimeerror-jpeg-marker-not-found/171788 "2009-07-10T00:28:36Z")

</div>

Hi, while generating the PDF file , i am getting following error… please help for me. RuntimeError (JPEG marker not found!): C:/Ruby/lib/ruby/gems/1.8/gems/pdf-writer-1.1.8/lib/pdf/writer/ graphics/imageinfo.rb:176:…

---

## [Got the problam in installation](https://www.ruby-forum.com/t/got-the-problam-in-installation/171836)

<div class="topic-metadata">

**Author:** [@rajendra](https://www.ruby-forum.com/u/rajendra)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 11:07pm UTC](https://www.ruby-forum.com/t/got-the-problam-in-installation/171836 "2009-07-09T23:07:59Z")

</div>

hi, i installed ruby 1.8.6, installed gems 1.3.4. when i am going install rails by using the following command, gem install rails -v 2.0.2 it installs 2.3.2, i can’t understand why this installs 2.3.2, eventhough i m…

---

## [Seeking optimization help - overridden to\_xml()](https://www.ruby-forum.com/t/seeking-optimization-help-overridden-to-xml/171831)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 10:31pm UTC](https://www.ruby-forum.com/t/seeking-optimization-help-overridden-to-xml/171831 "2009-07-09T22:31:45Z")

</div>

Howdy. I’ve got an overridden to\_xml() function in one of my models that appears to be very slow. As a relative Ruby novice, I would love to hear suggestions on how to improve the performance. Incidentally, I was u…

---

## [Escaping special characters](https://www.ruby-forum.com/t/escaping-special-characters/171797)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/escaping-special-characters/171797 "2009-07-09T21:07:00Z")

</div>

Hi, I have to remove the speial symbols from list of names. But I want to remain the dot(.) in the name itself. I use ommunity\_org\_review.name.downcase.strip.squeeze(" “).gsub(/\[’^’’&’’!’\]/, ‘-’).squeeze(”-").chomp(…

---

## [Can't return a result set in the given context:](https://www.ruby-forum.com/t/cant-return-a-result-set-in-the-given-context/171713)

<div class="topic-metadata">

**Author:** [@tiburcio777](https://www.ruby-forum.com/u/tiburcio777)\
**Replies:** 2\
**Last updated:** [July 9, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/cant-return-a-result-set-in-the-given-context/171713 "2009-07-09T21:06:25Z")

</div>

Hello all, I would like to know if there is a way to return a resultset from a MySQL stored procedure to rails, I’ve tryied many things but I always get the same error, I found that I need to patch the MySQL connecto…

---

## [\[JOBS\] RoR Developer for full-time contract work](https://www.ruby-forum.com/t/jobs-ror-developer-for-full-time-contract-work/171829)

<div class="topic-metadata">

**Author:** [@DoScott](https://www.ruby-forum.com/u/DoScott)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/jobs-ror-developer-for-full-time-contract-work/171829 "2009-07-09T20:59:59Z")

</div>

DoStuff Media (dostuffmedia.com) is looking for an experienced Ruby on Rails developer to help with building out our festival and city guide platforms. See the platforms in use here: Do512.com 2009.lollapalooza.com 2…

---

## [BDD / Rails Workshop](https://www.ruby-forum.com/t/bdd-rails-workshop/171826)

<div class="topic-metadata">

**Author:** [@djmook](https://www.ruby-forum.com/u/djmook)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/bdd-rails-workshop/171826 "2009-07-09T19:49:09Z")

</div>

I haven’t posted about Rails Underground here before, because I guess it falls under ‘commercial’ and is therefore against the rules… However, we’re holding a free half-day workshop the day before the conference, open…

---

## [Modal dialog box](https://www.ruby-forum.com/t/modal-dialog-box/171813)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/modal-dialog-box/171813 "2009-07-09T18:22:07Z")

</div>

How, typically, do you manage, say, what would be a modal-type dialog box on a non-Rails application? How do you handle that type of thing in Rails? (I don’t want to fo off on some wild tangent in my code, but want to…

---

## [Nested forms, dynamic elements and valid xhtml/DOM ids](https://www.ruby-forum.com/t/nested-forms-dynamic-elements-and-valid-xhtml-dom-ids/171819)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/nested-forms-dynamic-elements-and-valid-xhtml-dom-ids/171819 "2009-07-09T18:11:00Z")

</div>

Hi, I would like to know if anyone has been able to implement correctly 2.3 nested forms and create dynamically (javascript) a bunch of nested elements with their correct DOM ids. I’ve seen Complex forms Railcasts bu…

---

## [Link\_to\_unless\_current fails when processing forms with error messages in it with restful routes](https://www.ruby-forum.com/t/link-to-unless-current-fails-when-processing-forms-with-error-messages-in-it-with-restful-routes/171811)

<div class="topic-metadata">

**Author:** [@LpLpLp](https://www.ruby-forum.com/u/LpLpLp)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/link-to-unless-current-fails-when-processing-forms-with-error-messages-in-it-with-restful-routes/171811 "2009-07-09T16:53:15Z")

</div>

Hello, does anyone know how to prevent the failing mechanism of link\_to\_unless\_current? f.e.: I have my page navigation with link\_to\_unless\_current “new task”, new\_task\_path When I click on the link, i come to the n…

---

## [AJAX: getting a label to act like its field](https://www.ruby-forum.com/t/ajax-getting-a-label-to-act-like-its-field/171808)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 3\
**Last updated:** [July 9, 2009, 4:36pm UTC](https://www.ruby-forum.com/t/ajax-getting-a-label-to-act-like-its-field/171808 "2009-07-09T16:36:18Z")

</div>

Hi, I have a check\_box and on activating it, I want an extra field to show up. I thought I’d do this by calling a remote\_function called “toggle” in :onchange. In toggle.rjs, I’d do something like page.toggle and ha…

---

## [Using ffmpeg to downsize mp3s](https://www.ruby-forum.com/t/using-ffmpeg-to-downsize-mp3s/171810)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/using-ffmpeg-to-downsize-mp3s/171810 "2009-07-09T16:31:02Z")

</div>

I’m using ffmpeg to downsize mp3s and it works great. The only problem I am having is that if the original mp3 has meta information (e.g. album art), its lost during the conversion. Does anyone know a way around thi…

---

## [Button\_to\_remote and control values](https://www.ruby-forum.com/t/button-to-remote-and-control-values/171798)

<div class="topic-metadata">

**Author:** [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Replies:** 3\
**Last updated:** [July 9, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/button-to-remote-and-control-values/171798 "2009-07-09T16:18:45Z")

</div>

I have a partial that has a button\_to\_remote on it wherein a method in my controller is appropriately executed. In the same partial, but not in any I have a select box with the id of “notesboxselect.” Is there any wa…

---

## [Link\_to, how do you combine url options and html\_options?](https://www.ruby-forum.com/t/link-to-how-do-you-combine-url-options-and-html-options/171700)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 11\
**Last updated:** [July 9, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/link-to-how-do-you-combine-url-options-and-html-options/171700 "2009-07-09T14:58:22Z")

</div>

I have a link-to that I wish to look somewhat like this: link\_to “link here”, new\_object\_path, :method =\> :post, :confirm =\> ‘Press OK’, #url options :class =\> “css\_class”, :id =\> “css\_id” #html options In any c…

---

## [Rails/Ruby Style Guideline?](https://www.ruby-forum.com/t/rails-ruby-style-guideline/171782)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 2:53pm UTC](https://www.ruby-forum.com/t/rails-ruby-style-guideline/171782 "2009-07-09T14:53:12Z")

</div>

Hi, I’m trying to have a Ruby (and Rails) style guide for me and possibly for my team. I have found the following resources so far. http://www.pathf.com/blogs/2008/10/elements-of-ruby-style/ Insight: Medical Device …

---

## [Generating random odd integer](https://www.ruby-forum.com/t/generating-random-odd-integer/171800)

<div class="topic-metadata">

**Author:** [@miss\_moviestar](https://www.ruby-forum.com/u/miss_moviestar)\
**Replies:** 1\
**Last updated:** [July 9, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/generating-random-odd-integer/171800 "2009-07-09T13:33:09Z")

</div>

hi how can i generate random odd integers? i want it to refer to user.id thanks

---

## [Cache expiration with format not working as expected](https://www.ruby-forum.com/t/cache-expiration-with-format-not-working-as-expected/171799)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 0\
**Last updated:** [July 9, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/cache-expiration-with-format-not-working-as-expected/171799 "2009-07-09T12:38:14Z")

</div>

Hi all, In my OrdersController, I have two actions completed and incomplete that respond\_to HTML and CSV. Im also action caching these actions … caches\_action :completed, :incomplete … def completed @orders = Ord…

---

## [Rake db:migrate confusion following Cucumber upgrade](https://www.ruby-forum.com/t/rake-db-migrate-confusion-following-cucumber-upgrade/171796)

<div class="topic-metadata">

**Author:** [@mikej](https://www.ruby-forum.com/u/mikej)\
**Replies:** 2\
**Last updated:** [July 9, 2009, 12:20pm UTC](https://www.ruby-forum.com/t/rake-db-migrate-confusion-following-cucumber-upgrade/171796 "2009-07-09T12:20:40Z")

</div>

I recently upgraded Cucumber gem from 0.1.16 to 0.3.11. I ran ruby script/generate cucumber. When I ran rake features I received an error telling me I had pending migrations and should run rake db:migrate. I ran rak…

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

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