# Rails

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

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

---

## [Google adsense breaks render :partial =\>](https://www.ruby-forum.com/t/google-adsense-breaks-render-partial/166636)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 2:00am UTC](https://www.ruby-forum.com/t/google-adsense-breaks-render-partial/166636 "2009-04-28T02:00:18Z")

</div>

Hey everybody, i’ve got a control that returns a partial, no biggie. Except when that partial contains the javascript for my adsense account. Then the partial renders correctly, and then quickly replaces my page with …

---

## [Validators.rb breaks after update from Rails 2.2.2 to 2.3.2](https://www.ruby-forum.com/t/validators-rb-breaks-after-update-from-rails-2-2-2-to-2-3-2/166500)

<div class="topic-metadata">

**Author:** [@John\_Mackin](https://www.ruby-forum.com/u/John_Mackin)\
**Replies:** 1\
**Last updated:** [April 28, 2009, 1:18am UTC](https://www.ruby-forum.com/t/validators-rb-breaks-after-update-from-rails-2-2-2-to-2-3-2/166500 "2009-04-28T01:18:00Z")

</div>

I just updated my rails application from 2.2.2 to 2.3.2 and the following message is displayed while trying to start with ./script/ server: =\> Booting Mongrel =\> Rails 2.3.2 application starting on http://0.0.0.0:3000…

---

## [Submit form through GET requets](https://www.ruby-forum.com/t/submit-form-through-get-requets/166496)

<div class="topic-metadata">

**Author:** [@ciscor](https://www.ruby-forum.com/u/ciscor)\
**Replies:** 10\
**Last updated:** [April 28, 2009, 1:10am UTC](https://www.ruby-forum.com/t/submit-form-through-get-requets/166496 "2009-04-28T01:10:39Z")

</div>

I’m trying to create a form that a user can submit data into through the URL, using a get request. That is, they would go to something like http://localhost:3000/links/new?url=http://www.google.com and http://www.goo…

---

## [Different links after refresh](https://www.ruby-forum.com/t/different-links-after-refresh/166631)

<div class="topic-metadata">

**Author:** [@ciscor](https://www.ruby-forum.com/u/ciscor)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 1:07am UTC](https://www.ruby-forum.com/t/different-links-after-refresh/166631 "2009-04-28T01:07:18Z")

</div>

I have a couple of links that appear via Ajax. \<%= link\_to 'Edit', url\_for(:controller =\> :links, :action =\> "edit", :id =\> link.id) %\> | \<%= link\_to 'Destroy', url\_for(:controller =\> :links, :action =\> "destroy", :id =\>…

---

## [Too Many Rooms for Rubyconf](https://www.ruby-forum.com/t/too-many-rooms-for-rubyconf/197090)

<div class="topic-metadata">

**Author:** [@Marz](https://www.ruby-forum.com/u/Marz)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 12:15am UTC](https://www.ruby-forum.com/t/too-many-rooms-for-rubyconf/197090 "2009-04-28T00:15:56Z")

</div>

Booked 4 Rooms we aren’t going to use, walking distance to the Conference. Four nights: Sunday 5-3-09 through Wednesday 5-6-09. Willing to let them go for about HALF the price of the Hilton. Call Martin at 760-237-405…

---

## [NoMethodError In Production Mode](https://www.ruby-forum.com/t/nomethoderror-in-production-mode/166625)

<div class="topic-metadata">

**Author:** [@willclarkdesigns](https://www.ruby-forum.com/u/willclarkdesigns)\
**Replies:** 0\
**Last updated:** [April 28, 2009, 12:02am UTC](https://www.ruby-forum.com/t/nomethoderror-in-production-mode/166625 "2009-04-28T00:02:57Z")

</div>

I am working on an app using the Rails Engine plugin. In development mode, everything works fine. However, when I switch to production mode I get a NoMethodError for any of my methods in any of my models. I know there…

---

## [Passing multiple values with link\_to](https://www.ruby-forum.com/t/passing-multiple-values-with-link-to/166624)

<div class="topic-metadata">

**Author:** [@DVG](https://www.ruby-forum.com/u/DVG)\
**Replies:** 1\
**Last updated:** [April 28, 2009, 12:00am UTC](https://www.ruby-forum.com/t/passing-multiple-values-with-link-to/166624 "2009-04-28T00:00:42Z")

</div>

Okay, so I have a many-to-many relationship between Users and Groups. When looking at the Group, I have the user rows being rendered via a partial. I want to have a “Remove” link next to each user name in turn, which …

---

## [Error following the 15 minute blog with ROR Screen cast](https://www.ruby-forum.com/t/error-following-the-15-minute-blog-with-ror-screen-cast/166621)

<div class="topic-metadata">

**Author:** [@Tommo](https://www.ruby-forum.com/u/Tommo)\
**Replies:** 1\
**Last updated:** [April 27, 2009, 11:55pm UTC](https://www.ruby-forum.com/t/error-following-the-15-minute-blog-with-ror-screen-cast/166621 "2009-04-27T23:55:25Z")

</div>

Hello Everyone, I was following this screen cast: http://media.rubyonrails.org/video/rails\_blog\_2.mov and when I got to the part about making a new file, creating a template, and then rendering the partial, I receive…

---

## [Ruby on Rails Developers](https://www.ruby-forum.com/t/ruby-on-rails-developers/166623)

<div class="topic-metadata">

**Author:** [@irenka](https://www.ruby-forum.com/u/irenka)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 11:54pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-developers/166623 "2009-04-27T23:54:50Z")

</div>

Cubiware jest spó³ka zajmuj±ca siê tworzeniem oprogramowania dla urz±dzeñ interaktywnej telewizji cyfrowej oraz internetowej. Firma wspó³pracuje z klientami i partnerami zagranicznymi, a nasze oprogramowanie jest u¿yw…

---

## [Deprec problem](https://www.ruby-forum.com/t/deprec-problem/166618)

<div class="topic-metadata">

**Author:** [@mahmoud\_cs](https://www.ruby-forum.com/u/mahmoud_cs)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 10:53pm UTC](https://www.ruby-forum.com/t/deprec-problem/166618 "2009-04-27T22:53:52Z")

</div>

i deploy my rails application with capistrano and deprec2 to ubuntu the username is ‘mahmoud’ but when i deploy this message display " connection failed for: 10.0.0.8 (Net::SSH::AuthenticationFailed: mahmou…

---

## [Downgrade ruby from 1.8.7 to 1.8.6 under debian](https://www.ruby-forum.com/t/downgrade-ruby-from-1-8-7-to-1-8-6-under-debian/140653)

<div class="topic-metadata">

**Author:** [@ChandleWEi](https://www.ruby-forum.com/u/ChandleWEi)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 7:38pm UTC](https://www.ruby-forum.com/t/downgrade-ruby-from-1-8-7-to-1-8-6-under-debian/140653 "2009-04-27T19:38:31Z")

</div>

downgrade ruby from 1.8.7 to 1.8.6 http://snapshot.debian.net/archive/2008/03/22/debian/pool/main/r/ruby1.8/ download follow package and dpkg -i install all debian package irb1.8\_1.8.6.114-2\_all.deb libopenssl-ruby1.…

---

## [How to get acts\_as\_versioned able to delete only selected version](https://www.ruby-forum.com/t/how-to-get-acts-as-versioned-able-to-delete-only-selected-version/166604)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 7:27pm UTC](https://www.ruby-forum.com/t/how-to-get-acts-as-versioned-able-to-delete-only-selected-version/166604 "2009-04-27T19:27:46Z")

</div>

Hello everyone i’m working on uploading file by using attachment\_fu and acts\_as\_versioned so the problem is i can’t delete only selected version for example ; i have file a.txt and this file have 5 version each ver…

---

## [Routes, controllers, and intentions](https://www.ruby-forum.com/t/routes-controllers-and-intentions/166566)

<div class="topic-metadata">

**Author:** [@soldier.coder](https://www.ruby-forum.com/u/soldier.coder)\
**Replies:** 1\
**Last updated:** [April 27, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/routes-controllers-and-intentions/166566 "2009-04-27T19:21:56Z")

</div>

I have the following tables: courses, students, and rosters. The rosters table references the courses and students tables. With default routes in place, to list the students in a course I would use: http://localhost…

---

## [Renaming a file inside a zip](https://www.ruby-forum.com/t/renaming-a-file-inside-a-zip/166591)

<div class="topic-metadata">

**Author:** [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Replies:** 4\
**Last updated:** [April 27, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/renaming-a-file-inside-a-zip/166591 "2009-04-27T19:01:24Z")

</div>

Hello, Can anyone help me or give me any clue on how to rename a file (or folder) inside a zip file without having to unzip it first. I’m trying to do this using the rubyzip gem without luck. Thanks, Elías

---

## [How to get acts\_as\_versioned able to delete only selected ve](https://www.ruby-forum.com/t/how-to-get-acts-as-versioned-able-to-delete-only-selected-ve/166599)

<div class="topic-metadata">

**Author:** [@oz4899](https://www.ruby-forum.com/u/oz4899)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/how-to-get-acts-as-versioned-able-to-delete-only-selected-ve/166599 "2009-04-27T18:46:36Z")

</div>

Hello everyone i’m working on uploading file by using attachment\_fu and acts\_as\_versioned so the problem is i can’t delete only selected version for example ; i have file a.txt and this file have 5 version each ver…

---

## [Serving formats at named route?](https://www.ruby-forum.com/t/serving-formats-at-named-route/166594)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 6:31pm UTC](https://www.ruby-forum.com/t/serving-formats-at-named-route/166594 "2009-04-27T18:31:02Z")

</div>

I am using a named route, like /abc. I have put… respond\_to do |format| format.html format.json (render :json =\> @variable) end in method. But when I do /abc.json, it doesn’t work. Any hints? Thanks.

---

## [Legacy encryption function](https://www.ruby-forum.com/t/legacy-encryption-function/166588)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 2\
**Last updated:** [April 27, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/legacy-encryption-function/166588 "2009-04-27T17:49:44Z")

</div>

Hello everyone, I have an old Java authentication web service that I must use in my rails development. The service takes a username and an encrypted password. I’m having trouble reproducing the same encryption algorit…

---

## [Adding and validating with has\_many :through](https://www.ruby-forum.com/t/adding-and-validating-with-has-many-through/166587)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 4:59pm UTC](https://www.ruby-forum.com/t/adding-and-validating-with-has-many-through/166587 "2009-04-27T16:59:12Z")

</div>

I don’t have a full grasp on has\_many :through associations. I’ve detailed my models below and am trying to figure out how to do the following in the proper manner. Add the selected software (only one selectable) to…

---

## [Creating & Validating w/ has\_many :through](https://www.ruby-forum.com/t/creating-validating-w-has-many-through/166586)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/creating-validating-w-has-many-through/166586 "2009-04-27T16:58:17Z")

</div>

I don’t have a full grasp on has\_many :through associations. I’ve detailed my models below and am trying to figure out how to do the following in the proper manner. Add the selected software (only one selectable) to…

---

## [Reset\_sessions how to?](https://www.ruby-forum.com/t/reset-sessions-how-to/166544)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [April 27, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/reset-sessions-how-to/166544 "2009-04-27T16:46:17Z")

</div>

Hi, I am maintaining sessions for storing user informations. When i logout i clear the session using reset\_session. Will the session be available if i kill the rails server? If yes, Why does this happen and how can i …

---

## [Modern Form Tutorials?](https://www.ruby-forum.com/t/modern-form-tutorials/166568)

<div class="topic-metadata">

**Author:** [@DVG](https://www.ruby-forum.com/u/DVG)\
**Replies:** 1\
**Last updated:** [April 27, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/modern-form-tutorials/166568 "2009-04-27T16:43:20Z")

</div>

Does anyone have a link to a good, modern, tutorial on using forms other than the form\_for helper? Basically, I’m looking for a good How To on setting up a Ajax form that sits at the bottom of a list members of a grou…

---

## [Rails on amazon EC2](https://www.ruby-forum.com/t/rails-on-amazon-ec2/166574)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/rails-on-amazon-ec2/166574 "2009-04-27T15:40:21Z")

</div>

Dear all, Is there anyone that deploys their Rails apps on amazon EC2? I read from AWS website that they have Rails on EC2. Can anyone that use Amazon services share their experience with Rails on EC2? Thank you very…

---

## [Engines VS rails3](https://www.ruby-forum.com/t/engines-vs-rails3/166540)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 27, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/engines-vs-rails3/166540 "2009-04-27T14:58:33Z")

</div>

So in the recent doubleshot http://afreshcup.com/2009/04/24/double-shot-438/ there is the comment “Tips for writing your own Rails engine … I’d wait for Rails 3 if I could myself.” What is planned for Rails3 that is …

---

## [Routing: Unescape urls](https://www.ruby-forum.com/t/routing-unescape-urls/166563)

<div class="topic-metadata">

**Author:** [@edbond](https://www.ruby-forum.com/u/edbond)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/routing-unescape-urls/166563 "2009-04-27T13:06:36Z")

</div>

Hello All, How to make rails unescape incoming urls? I want to use russian chars in routes, like: map.city URI.escape(“/ëÁÒÔÁ–:title–:id”), :controller =\> “cities”, :action =\> “show” It seems to works (page loads) bu…

---

## [\[Rake\] Parse XML File, recursive function](https://www.ruby-forum.com/t/rake-parse-xml-file-recursive-function/166564)

<div class="topic-metadata">

**Author:** [@MickaSSSSl\_Allain](https://www.ruby-forum.com/u/MickaSSSSl_Allain)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/rake-parse-xml-file-recursive-function/166564 "2009-04-27T13:06:01Z")

</div>

Hi everybody, I’m taking time to post message here because, i have a problem which making me crazy. I’m trying to design a Rake Task which parse XML file and create some drill down on products categories. To begin…

---

## [ActiveRecord::Errors best practices?](https://www.ruby-forum.com/t/activerecord-errors-best-practices/166562)

<div class="topic-metadata">

**Author:** [@joachimgross](https://www.ruby-forum.com/u/joachimgross)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 1:05pm UTC](https://www.ruby-forum.com/t/activerecord-errors-best-practices/166562 "2009-04-27T13:05:16Z")

</div>

I’m currently reviewing some old code from Rails 1.x times and found this: ActiveRecord::Errors.default\_error\_messages = { :inclusion =\> “inclusion|”, :exclusion =\> “exclusion|”, :invalid =\> “invalid|”, :confirmati…

---

## [How to compare 2 string object and display the differences](https://www.ruby-forum.com/t/how-to-compare-2-string-object-and-display-the-differences/166561)

<div class="topic-metadata">

**Author:** [@Geekyra](https://www.ruby-forum.com/u/Geekyra)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 1:01pm UTC](https://www.ruby-forum.com/t/how-to-compare-2-string-object-and-display-the-differences/166561 "2009-04-27T13:01:19Z")

</div>

Hello, what is the best choice to compare 2 string/text in Ruby ? For example i have 2 model that each of it have a “content” column, the question is i like to compare the content of the model and display the differen…

---

## [Will\_Paginate error](https://www.ruby-forum.com/t/will-paginate-error/165907)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 27, 2009, 12:57pm UTC](https://www.ruby-forum.com/t/will-paginate-error/165907 "2009-04-27T12:57:48Z")

</div>

Hi, I would really appreciate if you could please help me to get the pagination working. I’ve spent a lot of time but I couldn’t find a solution for this problem that could make this working. some details: ruby 1.8.6 …

---

## [Monitoring daemon in monitrc](https://www.ruby-forum.com/t/monitoring-daemon-in-monitrc/166558)

<div class="topic-metadata">

**Author:** [@chunkyslink](https://www.ruby-forum.com/u/chunkyslink)\
**Replies:** 0\
**Last updated:** [April 27, 2009, 12:47pm UTC](https://www.ruby-forum.com/t/monitoring-daemon-in-monitrc/166558 "2009-04-27T12:47:59Z")

</div>

Would anyone know which is the correct start / stop monitrc configuration for a daemon running on the ‘daemons’ gem (as seen in the Custom Daemons Railscast)? check process reminder\_mailer with pidfile /var/www/notip…

---

## [How to pass a variable from a model method to a controller](https://www.ruby-forum.com/t/how-to-pass-a-variable-from-a-model-method-to-a-controller/166453)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 5\
**Last updated:** [April 27, 2009, 10:34am UTC](https://www.ruby-forum.com/t/how-to-pass-a-variable-from-a-model-method-to-a-controller/166453 "2009-04-27T10:34:56Z")

</div>

Hi there, how can I pass a variable from a model method to the controller that calls this method? In the below code, I tried by placing “return @errormessage” in the model method and then trying to retrieve it in the…

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

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