# Rails

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

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

---

## [Rack(Warden) woes](https://www.ruby-forum.com/t/rack-warden-woes/184331)

<div class="topic-metadata">

**Author:** [@Ed\_Howland](https://www.ruby-forum.com/u/Ed_Howland)\
**Replies:** 0\
**Last updated:** [March 1, 2010, 2:54am UTC](https://www.ruby-forum.com/t/rack-warden-woes/184331 "2010-03-01T02:54:58Z")

</div>

Hi, I’m trying to use the Warden gem via RailsWarden. It is not working, but I guess I don’t understand a few things. How do you access a Rack thing from a method in your controller? env\[:warden\] fails with a method …

---

## [Ruby on Rails install problem in Linux Mint - please help a newbie](https://www.ruby-forum.com/t/ruby-on-rails-install-problem-in-linux-mint-please-help-a-newbie/184217)

<div class="topic-metadata">

**Author:** [@lavezarez](https://www.ruby-forum.com/u/lavezarez)\
**Replies:** 2\
**Last updated:** [March 1, 2010, 12:38am UTC](https://www.ruby-forum.com/t/ruby-on-rails-install-problem-in-linux-mint-please-help-a-newbie/184217 "2010-03-01T00:38:26Z")

</div>

Hi, I have just started to study Ruby on Rails, downloaded Ruby 1.8.7, and compiled it from source, RubyGems 1.3.6, and ran “ruby setup.rb”, and installed Rails by “sudo gem install rails” But when I do the following…

---

## [Persisting an object](https://www.ruby-forum.com/t/persisting-an-object/184323)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 4\
**Last updated:** [February 28, 2010, 11:51pm UTC](https://www.ruby-forum.com/t/persisting-an-object/184323 "2010-02-28T23:51:48Z")

</div>

ok this is really basic rails question, but how do I keep an object alive between controller action? I thought I could create an object and it would remain alive, but I am guessing the controller object gets recreated…

---

## [Cucumber/webrat field issue](https://www.ruby-forum.com/t/cucumber-webrat-field-issue/184313)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 4\
**Last updated:** [February 28, 2010, 9:55pm UTC](https://www.ruby-forum.com/t/cucumber-webrat-field-issue/184313 "2010-02-28T21:55:22Z")

</div>

This may be a bit off topic but when running my cucumber tests for clearance, webrat said it cannot find the password confirmation field. Could not find field: “Confirm password” (Webrat::NotFoundError) (eval):2:in fi…

---

## [Rails 3 on debian](https://www.ruby-forum.com/t/rails-3-on-debian/184264)

<div class="topic-metadata">

**Author:** [@kenfc](https://www.ruby-forum.com/u/kenfc)\
**Replies:** 6\
**Last updated:** [February 28, 2010, 7:29pm UTC](https://www.ruby-forum.com/t/rails-3-on-debian/184264 "2010-02-28T19:29:03Z")

</div>

Rails 3 requires bundler to be installed, but bundler can’t be installed on Debian lenny because the gem version 1.2 is too old, an attempt update is also failed, any idea? gem update --system ERROR: While executing …

---

## [Problem with render in helper methods](https://www.ruby-forum.com/t/problem-with-render-in-helper-methods/184298)

<div class="topic-metadata">

**Author:** [@johnlester](https://www.ruby-forum.com/u/johnlester)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 7:02pm UTC](https://www.ruby-forum.com/t/problem-with-render-in-helper-methods/184298 "2010-02-28T19:02:56Z")

</div>

I have a helper that renders a partial. The partial may or may not exist. If it does not exist then a different partial is rendered instead. Like this: def render\_my\_partial my\_partial begin render :partial =\> “fold…

---

## [Find and include problem](https://www.ruby-forum.com/t/find-and-include-problem/184311)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/find-and-include-problem/184311 "2010-02-28T18:45:10Z")

</div>

Hi, I’m trying to reduce my queries to the database so i use includes, but there is produced a query every time and i can’t see an improvement. What does i’m doing wrong? In controller: @matches = @stage.matches.fin…

---

## [Rails Seralized My Object One Way & Refuses to Change](https://www.ruby-forum.com/t/rails-seralized-my-object-one-way-refuses-to-change/184198)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 7\
**Last updated:** [February 28, 2010, 6:43pm UTC](https://www.ruby-forum.com/t/rails-seralized-my-object-one-way-refuses-to-change/184198 "2010-02-28T18:43:59Z")

</div>

I have a rails class that serializes one attribute. class Statistic \< ActiveRecord::Base serialize :userlist end When a statistic object is loaded and it’s userlist changed from a String to an Array userlist always …

---

## [Nested partials parameters](https://www.ruby-forum.com/t/nested-partials-parameters/184304)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/nested-partials-parameters/184304 "2010-02-28T16:35:49Z")

</div>

Hi I have presently the following view : \<%= f.label :tz\_area, I18n.t("label.form.tz\_area") %\> \<%= f.label :timezone, I18n.t("label.form.timezone") %\> \<%= f.time\_zone\_select :…

---

## [Nested model form javascript question (re Ryan Bates's Railscasts #196-7)](https://www.ruby-forum.com/t/nested-model-form-javascript-question-re-ryan-batess-railscasts-196-7/184300)

<div class="topic-metadata">

**Author:** [@Grary](https://www.ruby-forum.com/u/Grary)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 3:53pm UTC](https://www.ruby-forum.com/t/nested-model-form-javascript-question-re-ryan-batess-railscasts-196-7/184300 "2010-02-28T15:53:41Z")

</div>

Hi, I might guess there are some loyal fans of Ryan B.'s Railscasts out there. For those who might be familiar with his two casts on nested model forms (#196-7), I had a question… How do I modify one (or both) of the…

---

## [How to access id passed to link\_to function in controller?](https://www.ruby-forum.com/t/how-to-access-id-passed-to-link-to-function-in-controller/226060)

<div class="topic-metadata">

**Author:** [@manish\_belsare](https://www.ruby-forum.com/u/manish_belsare)\
**Replies:** 14\
**Last updated:** [February 28, 2010, 3:30pm UTC](https://www.ruby-forum.com/t/how-to-access-id-passed-to-link-to-function-in-controller/226060 "2010-02-28T15:30:55Z")

</div>

\<% if logged\_in? and post.match?(post.id) %\> \<%= $n = post.id %\> \<%= link\_to “Answer this Query!”, :controller =\> “answers”, :action =\> “new”, :idd =\> post.id %\> Hello sir, In the example given above, i am calling…

---

## [DRY question](https://www.ruby-forum.com/t/dry-question/184277)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 5\
**Last updated:** [February 28, 2010, 2:48pm UTC](https://www.ruby-forum.com/t/dry-question/184277 "2010-02-28T14:48:43Z")

</div>

I need to have the exact same method available in all controllers and in all views. Right now, I have it repeated in app/controllers/ application\_controller.rb and app/helpers/application\_helper.rb. In DRY tradition…

---

## [Couldn't find User without an ID](https://www.ruby-forum.com/t/couldnt-find-user-without-an-id/184289)

<div class="topic-metadata">

**Author:** [@ashu](https://www.ruby-forum.com/u/ashu)\
**Replies:** 3\
**Last updated:** [February 28, 2010, 2:45pm UTC](https://www.ruby-forum.com/t/couldnt-find-user-without-an-id/184289 "2010-02-28T14:45:12Z")

</div>

users\_controller :– def show @user = User.find(params\[:id\]) end show.html.erb :– Showing user Name: \<%=h @user.name%\> Role: \<%=h @user.role%\> Password: \<%=h @user.password%\> Confirmation Password: \<%=h @user.con…

---

## [\<%= %\> Interpolation question](https://www.ruby-forum.com/t/interpolation-question/184260)

<div class="topic-metadata">

**Author:** [@Dudebot](https://www.ruby-forum.com/u/Dudebot)\
**Replies:** 17\
**Last updated:** [February 28, 2010, 2:45pm UTC](https://www.ruby-forum.com/t/interpolation-question/184260 "2010-02-28T14:45:12Z")

</div>

Is there a way to get a Rails view to interpolate inside \<%= %\>? E.g. if foo = ‘\<%= bar %\>’ and bar = ‘2’, to have some variant of \<%= foo %\> in app/views/whatever/ whatever.html.erb display ‘2’ rather than ‘\<%= bar %\>…

---

## [Undefined method error appears in erb but not haml](https://www.ruby-forum.com/t/undefined-method-error-appears-in-erb-but-not-haml/184294)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 2:19pm UTC](https://www.ruby-forum.com/t/undefined-method-error-appears-in-erb-but-not-haml/184294 "2010-02-28T14:19:26Z")

</div>

Hey all, All I wanted to do was convert a haml file to erb. After doing so, i get an undefined method \`render\_sequence\_nav’ error message. Even though no such error happened when it was in haml format. I believe the c…

---

## [Paperclip upload fails sometimes](https://www.ruby-forum.com/t/paperclip-upload-fails-sometimes/184269)

<div class="topic-metadata">

**Author:** [@SSshaan](https://www.ruby-forum.com/u/SSshaan)\
**Replies:** 2\
**Last updated:** [February 28, 2010, 9:22am UTC](https://www.ruby-forum.com/t/paperclip-upload-fails-sometimes/184269 "2010-02-28T09:22:08Z")

</div>

Hello, My application is a rails-postgresql application which uses paperclip (“ImageMagick-6.5.4-10-Q16-windows-dll.exe” installed on WinXP). The application’s image uploading feature works consistently right on my d…

---

## [Please Help: Accessing Ruby app brings up Apache test page](https://www.ruby-forum.com/t/please-help-accessing-ruby-app-brings-up-apache-test-page/184172)

<div class="topic-metadata">

**Author:** [@rezilient](https://www.ruby-forum.com/u/rezilient)\
**Replies:** 4\
**Last updated:** [February 28, 2010, 7:22am UTC](https://www.ruby-forum.com/t/please-help-accessing-ruby-app-brings-up-apache-test-page/184172 "2010-02-28T07:22:45Z")

</div>

Hello. I finally got Ruby, Gem and Passenger installed without any glaring errors. ruby 1.8.6 (2010-02-05 patchlevel 399) \[x86\_64-linux\] gem 1.3.5 I added the following lines to my httpd.conf: LoadModule passenger\_…

---

## [SEO friendly routing](https://www.ruby-forum.com/t/seo-friendly-routing/184284)

<div class="topic-metadata">

**Author:** [@avanetix](https://www.ruby-forum.com/u/avanetix)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 4:17am UTC](https://www.ruby-forum.com/t/seo-friendly-routing/184284 "2010-02-28T04:17:50Z")

</div>

Hi all! I’m moving to Ruby on Rails from PHP/ZendFramework. And i cannot understand how to make such routing model: I am trying to develop articles site from scratch, so i have article model with fields: id, title, s…

---

## [Rails 3 - rails runner doesn't work here](https://www.ruby-forum.com/t/rails-3-rails-runner-doesnt-work-here/184268)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [February 28, 2010, 3:37am UTC](https://www.ruby-forum.com/t/rails-3-rails-runner-doesnt-work-here/184268 "2010-02-28T03:37:27Z")

</div>

Hi, I’m currently playing with Rails 3 (I’m new to rails, coming from PHP background). Everything works good so far, until yesterday, when I tried to setup a cronjob. The most common way to starting regular jobs seem…

---

## [Emptying cart](https://www.ruby-forum.com/t/emptying-cart/184278)

<div class="topic-metadata">

**Author:** [@alexpescara](https://www.ruby-forum.com/u/alexpescara)\
**Replies:** 0\
**Last updated:** [February 28, 2010, 1:11am UTC](https://www.ruby-forum.com/t/emptying-cart/184278 "2010-02-28T01:11:24Z")

</div>

hi. i’m new to ruby on rails I have a big problem I’m writing a program wich has a Product class(active record) wich contains the product I want to sell…and a Cart class where i save the Products I want to buy…each …

---

## [Model validation dependent upon session data being set?](https://www.ruby-forum.com/t/model-validation-dependent-upon-session-data-being-set/184267)

<div class="topic-metadata">

**Author:** [@robo](https://www.ruby-forum.com/u/robo)\
**Replies:** 5\
**Last updated:** [February 27, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/model-validation-dependent-upon-session-data-being-set/184267 "2010-02-27T20:26:10Z")

</div>

Ok so I have a few models that need to interact with each other - Blog, Post, and User. I’ll get their relationships out of the way: Blog has\_many :posts has\_and\_belongs\_to\_many :users (by way of a join table, a blo…

---

## [Desktop sharing software for linux fedora 10?](https://www.ruby-forum.com/t/desktop-sharing-software-for-linux-fedora-10/184251)

<div class="topic-metadata">

**Author:** [@shyam\_mohan](https://www.ruby-forum.com/u/shyam_mohan)\
**Replies:** 2\
**Last updated:** [February 27, 2010, 7:50pm UTC](https://www.ruby-forum.com/t/desktop-sharing-software-for-linux-fedora-10/184251 "2010-02-27T19:50:27Z")

</div>

HI all please tell me if there in any Desktop sharing software for linux fedora 10? Regards, Shyam +91-9716-18-9650

---

## [Can a server make a post to itself?](https://www.ruby-forum.com/t/can-a-server-make-a-post-to-itself/184218)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 2\
**Last updated:** [February 27, 2010, 7:39pm UTC](https://www.ruby-forum.com/t/can-a-server-make-a-post-to-itself/184218 "2010-02-27T19:39:20Z")

</div>

Hi- I have a rails app where a form gets submitted, and that data from the form has to be validated. It’s a widget app, so other sites will use the validation routine, but I also want to use it myself, from the same…

---

## [Inconsistent auto generated fixture IDs](https://www.ruby-forum.com/t/inconsistent-auto-generated-fixture-ids/184206)

<div class="topic-metadata">

**Author:** [@blim8183](https://www.ruby-forum.com/u/blim8183)\
**Replies:** 5\
**Last updated:** [February 27, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/inconsistent-auto-generated-fixture-ids/184206 "2010-02-27T19:33:29Z")

</div>

I’m having an issue where the auto generated IDs in the fixtures are inconsistent from my machine to that of the other developers working on the project. The main difference between between the machines is that I’m ru…

---

## [Automatic link generator based on keyword](https://www.ruby-forum.com/t/automatic-link-generator-based-on-keyword/184270)

<div class="topic-metadata">

**Author:** [@perezda](https://www.ruby-forum.com/u/perezda)\
**Replies:** 0\
**Last updated:** [February 27, 2010, 7:18pm UTC](https://www.ruby-forum.com/t/automatic-link-generator-based-on-keyword/184270 "2010-02-27T19:18:51Z")

</div>

Hello, I have an site similar to a wiki, where there is a lot of content displayed per page. I was wondering if there was a plugin that would automatically add link\_to tags on keywords that I specified and link them…

---

## [Rails instalation under Windows - problem](https://www.ruby-forum.com/t/rails-instalation-under-windows-problem/184234)

<div class="topic-metadata">

**Author:** [@halfbyte](https://www.ruby-forum.com/u/halfbyte)\
**Replies:** 13\
**Last updated:** [February 27, 2010, 4:42pm UTC](https://www.ruby-forum.com/t/rails-instalation-under-windows-problem/184234 "2010-02-27T16:42:35Z")

</div>

Hello, I’m trying to install Rails (command: gem install rails) after I instaled Ruby in to Windows. Unfortunately, I encounter this error message (temporary disc space is set in to C: HDD): ERROR: While executing ge…

---

## [Fallback and ActiveRecord backends together](https://www.ruby-forum.com/t/fallback-and-activerecord-backends-together/182729)

<div class="topic-metadata">

**Author:** [@pietro\_ferrari](https://www.ruby-forum.com/u/pietro_ferrari)\
**Replies:** 1\
**Last updated:** [February 27, 2010, 3:49pm UTC](https://www.ruby-forum.com/t/fallback-and-activerecord-backends-together/182729 "2010-02-27T15:49:20Z")

</div>

Hi all, I’m trying to use the Fallback and ActiveRecord backends together. I created a initializer that has: I18n.backend = I18n::Backend::ActiveRecord.new I18n::Backend::ActiveRecord.send(:include, I18n::Backend::Fa…

---

## [Help! Invalid character in IE](https://www.ruby-forum.com/t/help-invalid-character-in-ie/184250)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [February 27, 2010, 3:11pm UTC](https://www.ruby-forum.com/t/help-invalid-character-in-ie/184250 "2010-02-27T15:11:53Z")

</div>

Hi, folks, I have been wrestling with this for a couple of days now. Everything works great on all browsers except IE! IE keeps giving errors like “Invalid character …line 2 character 1” when an AJAX call is submitt…

---

## [How to generate this URL](https://www.ruby-forum.com/t/how-to-generate-this-url/184257)

<div class="topic-metadata">

**Author:** [@east](https://www.ruby-forum.com/u/east)\
**Replies:** 1\
**Last updated:** [February 27, 2010, 1:45pm UTC](https://www.ruby-forum.com/t/how-to-generate-this-url/184257 "2010-02-27T13:45:52Z")

</div>

I’m stumped trying to generate an URL for a working route. I’ve this route definition: map.connect ‘foo/:foo\_id/propose\_something/:zap\_id’, :controller =\> “foo”, :action =\> “propose\_something” When I browse to this…

---

## [Cucumber directories not working](https://www.ruby-forum.com/t/cucumber-directories-not-working/184222)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 3\
**Last updated:** [February 27, 2010, 12:23pm UTC](https://www.ruby-forum.com/t/cucumber-directories-not-working/184222 "2010-02-27T12:23:41Z")

</div>

I am organizing a directory structure under the features directory but when I run cucumber it is still trying to look for the \*.feature files in the main directory. How do I get cucumber to look in other directories? …

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

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