# Rails

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

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

---

## [For technical contributors: Collect your web footprint on Mashedge and put on your resume](https://www.ruby-forum.com/t/for-technical-contributors-collect-your-web-footprint-on-mashedge-and-put-on-your-resume/170301)

<div class="topic-metadata">

**Author:** [@Kiran\_Achyutuni](https://www.ruby-forum.com/u/Kiran_Achyutuni)\
**Replies:** 0\
**Last updated:** [June 15, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/for-technical-contributors-collect-your-web-footprint-on-mashedge-and-put-on-your-resume/170301 "2009-06-15T19:00:13Z")

</div>

First of all, thanks to all the contributors who answer technical questions in this forum. This forum has helped me many a time as I was building my website http://www.mashedge.com with ruby-on-rails. I have always wo…

---

## [Make virtual attribute more "real"](https://www.ruby-forum.com/t/make-virtual-attribute-more-real/170125)

<div class="topic-metadata">

**Author:** [@Felix\_SchSSS\_fer](https://www.ruby-forum.com/u/Felix_SchSSS_fer)\
**Replies:** 3\
**Last updated:** [June 15, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/make-virtual-attribute-more-real/170125 "2009-06-15T15:55:00Z")

</div>

Hello, I have tried to tackle this one with some people on IRC, but the proposed solution doesn’t really satisfy me, as it solves the problem only in a special case, and not in general. So I have two models in my rai…

---

## [Unable to make observe\_field work](https://www.ruby-forum.com/t/unable-to-make-observe-field-work/170244)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 6\
**Last updated:** [June 15, 2009, 3:46pm UTC](https://www.ruby-forum.com/t/unable-to-make-observe-field-work/170244 "2009-06-15T15:46:04Z")

</div>

I can’t make it work. \<%= text\_field\_tag :friend %\> \<%= observe\_field :friend, :url =\> friendships\_url, :on =\> :click %\> \<%= javascript\_include\_tag :defaults %\> Raises the error:Can’t find variable Form. The generat…

---

## [Passenger and 2.2.2](https://www.ruby-forum.com/t/passenger-and-2-2-2/170285)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 2\
**Last updated:** [June 15, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/passenger-and-2-2-2/170285 "2009-06-15T15:26:14Z")

</div>

For some reason I can’t get passenger to run a 2.2.2 rails app. The same app runs fine from script/server. Under passenger I get: Framework that failed to load: Rails framework version 2.2.2 Error message: RubyGem …

---

## [How to install Rails 1.1.6](https://www.ruby-forum.com/t/how-to-install-rails-1-1-6/170280)

<div class="topic-metadata">

**Author:** [@soutom](https://www.ruby-forum.com/u/soutom)\
**Replies:** 6\
**Last updated:** [June 15, 2009, 1:03pm UTC](https://www.ruby-forum.com/t/how-to-install-rails-1-1-6/170280 "2009-06-15T13:03:10Z")

</div>

Is this possible to install Rails 1.1.6 ? Id Possible then How ? Please Help me Thanx

---

## [Parsing text in a rails application](https://www.ruby-forum.com/t/parsing-text-in-a-rails-application/170206)

<div class="topic-metadata">

**Author:** [@Hypnotizing\_C](https://www.ruby-forum.com/u/Hypnotizing_C)\
**Replies:** 7\
**Last updated:** [June 15, 2009, 12:36pm UTC](https://www.ruby-forum.com/t/parsing-text-in-a-rails-application/170206 "2009-06-15T12:36:42Z")

</div>

I have a piece of text which is in the following format: “1. Question blah blah blah. goes on blah blah blah blah. Answer: Answer blah, blah goes on like this blah blah. 2. One more question. blah blah goes on like…

---

## [\[ANN\] Rubytest.vim 0.9.6 Released](https://www.ruby-forum.com/t/ann-rubytest-vim-0-9-6-released/196970)

<div class="topic-metadata">

**Author:** [@flowerborn](https://www.ruby-forum.com/u/flowerborn)\
**Replies:** 0\
**Last updated:** [June 15, 2009, 11:33am UTC](https://www.ruby-forum.com/t/ann-rubytest-vim-0-9-6-released/196970 "2009-06-15T11:33:53Z")

</div>

Hi dude, Rubytest.vim 0.9.6 is just released. This version contains some small fix: support rspec examples looks like example “this is an example” do correctly handle single/double quote escape for rspec examples an…

---

## [Validation](https://www.ruby-forum.com/t/validation/170230)

<div class="topic-metadata">

**Author:** [@pkgobi](https://www.ruby-forum.com/u/pkgobi)\
**Replies:** 6\
**Last updated:** [June 15, 2009, 11:15am UTC](https://www.ruby-forum.com/t/validation/170230 "2009-06-15T11:15:13Z")

</div>

Hi, I have one problem, Regarding Medical store distributuin Store have two users i mean two sales persons, they are distributing medicine to patients. Store having 50 colpol tablets, both users are trying to …

---

## [Test succeed only when run separately](https://www.ruby-forum.com/t/test-succeed-only-when-run-separately/170245)

<div class="topic-metadata">

**Author:** [@itkin](https://www.ruby-forum.com/u/itkin)\
**Replies:** 9\
**Last updated:** [June 15, 2009, 10:38am UTC](https://www.ruby-forum.com/t/test-succeed-only-when-run-separately/170245 "2009-06-15T10:38:24Z")

</div>

Hello, i’ve an initializer which set as constants all the instances retrieved from the DB, for specific AR models. Thoose constant are used a bit everywhere in the application. In my unit test, I run the initializer …

---

## [Plugin dependencies](https://www.ruby-forum.com/t/plugin-dependencies/170223)

<div class="topic-metadata">

**Author:** [@tilt](https://www.ruby-forum.com/u/tilt)\
**Replies:** 2\
**Last updated:** [June 15, 2009, 10:34am UTC](https://www.ruby-forum.com/t/plugin-dependencies/170223 "2009-06-15T10:34:51Z")

</div>

Hi, I’d like to rewrite a plugin called paperclipped\_assets that’s based on paperclip and provides a central model keeping all attachments. Unfortunately I need to require the class Attachment.rb of paperclip in pape…

---

## [ActionMailer(1.3.5) model problem in my Rails1.2.5](https://www.ruby-forum.com/t/actionmailer-1-3-5-model-problem-in-my-rails1-2-5/170260)

<div class="topic-metadata">

**Author:** [@geniusfox](https://www.ruby-forum.com/u/geniusfox)\
**Replies:** 2\
**Last updated:** [June 15, 2009, 9:01am UTC](https://www.ruby-forum.com/t/actionmailer-1-3-5-model-problem-in-my-rails1-2-5/170260 "2009-06-15T09:01:03Z")

</div>

Hi all: I user the command : ruby script/generate mailer FinanceMailer alert\_customer\_balance, then ,i have this files: class FinanceMailer \< ActionMailer::Base def alert\_customer\_balance(sent\_at = Time.now) @subje…

---

## [Radiant 0.8.0 "Asterism" Release](https://www.ruby-forum.com/t/radiant-0-8-0-asterism-release/170241)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 1\
**Last updated:** [June 15, 2009, 8:12am UTC](https://www.ruby-forum.com/t/radiant-0-8-0-asterism-release/170241 "2009-06-15T08:12:22Z")

</div>

Looks like it’s time for another release of Radiant: http://radiantcms.org/download/ Radiant 0.8.0 “Asterism” features a brand new and more compliant caching mechanism based on Rack::Cache, and numerous bugfixes and s…

---

## [NoMethodError: undefined method \`password\_reset\_instructions' for UserNotifier:Class](https://www.ruby-forum.com/t/nomethoderror-undefined-method-password-reset-instructions-for-usernotifier-class/170259)

<div class="topic-metadata">

**Author:** [@Nicholas\_Barthelemy](https://www.ruby-forum.com/u/Nicholas_Barthelemy)\
**Replies:** 1\
**Last updated:** [June 15, 2009, 7:52am UTC](https://www.ruby-forum.com/t/nomethoderror-undefined-method-password-reset-instructions-for-usernotifier-class/170259 "2009-06-15T07:52:58Z")

</div>

Any ideas what would be causing this? NoMethodError: undefined method password\_reset\_instructions' for UserNotifier:Class from /Library/Ruby/Gems/1.8/gems/actionmailer-2.3.2/lib/action\_mailer/ base.rb:400:in method\_mi…

---

## [The error occurred while evaluating nil.to\_sym](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-to-sym/148410)

<div class="topic-metadata">

**Author:** [@eipipuz](https://www.ruby-forum.com/u/eipipuz)\
**Replies:** 6\
**Last updated:** [June 15, 2009, 7:45am UTC](https://www.ruby-forum.com/t/the-error-occurred-while-evaluating-nil-to-sym/148410 "2009-06-15T07:45:39Z")

</div>

Hello guys, I’ve been developing in Ruby for a few months and I am starting to work with Rails. I am having a problem right from the start and I think I am not doing anything wrong. I have performed the following ste…

---

## [\-%\> what this "-" for?](https://www.ruby-forum.com/t/what-this-for/170252)

<div class="topic-metadata">

**Author:** [@tivrfoa](https://www.ruby-forum.com/u/tivrfoa)\
**Replies:** 2\
**Last updated:** [June 15, 2009, 2:21am UTC](https://www.ruby-forum.com/t/what-this-for/170252 "2009-06-15T02:21:50Z")

</div>

hello what this “-” for? thanks!

---

## [Steps to use Ruby on rails](https://www.ruby-forum.com/t/steps-to-use-ruby-on-rails/170250)

<div class="topic-metadata">

**Author:** [@student123](https://www.ruby-forum.com/u/student123)\
**Replies:** 2\
**Last updated:** [June 15, 2009, 1:18am UTC](https://www.ruby-forum.com/t/steps-to-use-ruby-on-rails/170250 "2009-06-15T01:18:42Z")

</div>

Can anyone help me with steps how to build a web application using ruby on rails with MySQL being the backend.I am using Fedora 9 as my operating system. Can u post a simple program for building a web application. Als…

---

## [Check if an HTML element exists in rjs](https://www.ruby-forum.com/t/check-if-an-html-element-exists-in-rjs/170235)

<div class="topic-metadata">

**Author:** [@bartolome](https://www.ruby-forum.com/u/bartolome)\
**Replies:** 1\
**Last updated:** [June 15, 2009, 12:35am UTC](https://www.ruby-forum.com/t/check-if-an-html-element-exists-in-rjs/170235 "2009-06-15T00:35:25Z")

</div>

Does anybody knows how can I check if an HTML element exists via rjs? I’ve been trying, for example: if page\[‘edit\_company\_’ + @id\] if page\[‘edit\_company\_’ + @id\].blank? But it generates a js code with a .blank? and…

---

## [Before\_create return value breaking object.save: rails bug?](https://www.ruby-forum.com/t/before-create-return-value-breaking-object-save-rails-bug/170044)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 8\
**Last updated:** [June 14, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/before-create-return-value-breaking-object-save-rails-bug/170044 "2009-06-14T23:29:27Z")

</div>

I know that usually when people say ‘i think i found a bug in rails/ruby’ they’ve done something dumb. I’m wondering if this is the case here, but this does seem like a genuine rails bug to me. In my user model i hav…

---

## [Using find results the DNY way](https://www.ruby-forum.com/t/using-find-results-the-dny-way/170195)

<div class="topic-metadata">

**Author:** [@jhaagmans](https://www.ruby-forum.com/u/jhaagmans)\
**Replies:** 28\
**Last updated:** [June 14, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/using-find-results-the-dny-way/170195 "2009-06-14T22:52:29Z")

</div>

Hi, I’m working on a large project that handles quite some AJAX and database interactions in short periods of time. I’ll simplify the project to an example. Say we’re building houses and a housebuilding project consi…

---

## [How is gui development preformed in rails](https://www.ruby-forum.com/t/how-is-gui-development-preformed-in-rails/170154)

<div class="topic-metadata">

**Author:** [@keithtom](https://www.ruby-forum.com/u/keithtom)\
**Replies:** 7\
**Last updated:** [June 14, 2009, 9:25pm UTC](https://www.ruby-forum.com/t/how-is-gui-development-preformed-in-rails/170154 "2009-06-14T21:25:01Z")

</div>

Normaly the GUI guys will do the GUI stuf and layout the pages but in rails it seems that the developer dose the page layout, as the page layout is done in the VIEW with code. Have I this wrong ? Is it possible for a…

---

## [Plugin for displaying wikipedia content](https://www.ruby-forum.com/t/plugin-for-displaying-wikipedia-content/170198)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 5\
**Last updated:** [June 14, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/plugin-for-displaying-wikipedia-content/170198 "2009-06-14T20:49:07Z")

</div>

Is there a plugin for displaying wikipedia content? looked around but just could not find one. thanks

---

## [Preference for raw SQL in migrations?](https://www.ruby-forum.com/t/preference-for-raw-sql-in-migrations/170229)

<div class="topic-metadata">

**Author:** [@ncancelliere](https://www.ruby-forum.com/u/ncancelliere)\
**Replies:** 2\
**Last updated:** [June 14, 2009, 7:29pm UTC](https://www.ruby-forum.com/t/preference-for-raw-sql-in-migrations/170229 "2009-06-14T19:29:08Z")

</div>

I have observed that in a few projects (for larger enterpriseish type companies) that folks prefer to use raw SQL in the migrations instead of methods like add\_column or create\_table. The con I see in doing this is th…

---

## [Display RSS Feeds](https://www.ruby-forum.com/t/display-rss-feeds/170179)

<div class="topic-metadata">

**Author:** [@vhenry](https://www.ruby-forum.com/u/vhenry)\
**Replies:** 2\
**Last updated:** [June 14, 2009, 6:05pm UTC](https://www.ruby-forum.com/t/display-rss-feeds/170179 "2009-06-14T18:05:02Z")

</div>

I’d like to be able to both display rss feeds from other sites on my website and also to eventually produce rss feeds from my own content. Can someone point me to a tutorial on how to do this? I found one that had cod…

---

## [Assert\_select \<br /\> embedded in text](https://www.ruby-forum.com/t/assert-select-br-embedded-in-text/170120)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 8\
**Last updated:** [June 14, 2009, 5:59pm UTC](https://www.ruby-forum.com/t/assert-select-br-embedded-in-text/170120 "2009-06-14T17:59:04Z")

</div>

Can someone help with an assert\_select problem please? I have: some text some more text I see how to use assert\_select to check that the text in the paragraph is "some textsome more text" and I can check that the para…

---

## [Partials views and instance variables go nil](https://www.ruby-forum.com/t/partials-views-and-instance-variables-go-nil/170219)

<div class="topic-metadata">

**Author:** [@steux](https://www.ruby-forum.com/u/steux)\
**Replies:** 5\
**Last updated:** [June 14, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/partials-views-and-instance-variables-go-nil/170219 "2009-06-14T16:43:55Z")

</div>

Hi everyone! Model: http://pastie.org/511290 Controller: http://pastie.org/511285 View new: http://pastie.org/511286 View \_form: http://pastie.org/511284 When I hit submit button there’s an error for usuarios(users …

---

## [Advantage of using mock\_model() over stub()](https://www.ruby-forum.com/t/advantage-of-using-mock-model-over-stub/170222)

<div class="topic-metadata">

**Author:** [@CrankyMonkey](https://www.ruby-forum.com/u/CrankyMonkey)\
**Replies:** 1\
**Last updated:** [June 14, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/advantage-of-using-mock-model-over-stub/170222 "2009-06-14T15:34:43Z")

</div>

What’s the advantage of using mock\_model() over stub() for a view spec? It seems like you would want to use the stub() if you are using a outside-in methodology since you probably haven’t even generated your model yet…

---

## [Basic AJAX Response (Mootools)](https://www.ruby-forum.com/t/basic-ajax-response-mootools/170210)

<div class="topic-metadata">

**Author:** [@zamo](https://www.ruby-forum.com/u/zamo)\
**Replies:** 3\
**Last updated:** [June 14, 2009, 11:06am UTC](https://www.ruby-forum.com/t/basic-ajax-response-mootools/170210 "2009-06-14T11:06:38Z")

</div>

Hi, I’ve done AJAX calls to Rails’ Controllers before yet never required to generate a response back to the view. In this respect, I have tried to keep it moronically simple and just add a node to see that it works, y…

---

## [Rails I18n](https://www.ruby-forum.com/t/rails-i18n/170212)

<div class="topic-metadata">

**Author:** [@semyou](https://www.ruby-forum.com/u/semyou)\
**Replies:** 3\
**Last updated:** [June 14, 2009, 10:02am UTC](https://www.ruby-forum.com/t/rails-i18n/170212 "2009-06-14T10:02:37Z")

</div>

Hi, I am trying to use i18n in rails. I want the language to be set first from params\[:locale\] (probably already in the url) then from the browser http header and lastly from the default\_locale. Everything is fine. No…

---

## [Pdf-writer background](https://www.ruby-forum.com/t/pdf-writer-background/170188)

<div class="topic-metadata">

**Author:** [@blueomega](https://www.ruby-forum.com/u/blueomega)\
**Replies:** 1\
**Last updated:** [June 14, 2009, 2:40am UTC](https://www.ruby-forum.com/t/pdf-writer-background/170188 "2009-06-14T02:40:36Z")

</div>

So i am exporting data to pdf with pdf-writer, no problems here. I am using the default white page as background, but i have a document template(in many formats), and i would like to use it as default background. Is …

---

## [Removing routes to new, show, etc. in a model](https://www.ruby-forum.com/t/removing-routes-to-new-show-etc-in-a-model/170203)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 8\
**Last updated:** [June 14, 2009, 12:42am UTC](https://www.ruby-forum.com/t/removing-routes-to-new-show-etc-in-a-model/170203 "2009-06-14T00:42:37Z")

</div>

Example model: demo –app ----Controllers ------application\_controler.rb ------demos\_controller.rb ----Models ------demo.rb ----Views ------demos --------index.html.erb (I want to keep this) --------edit.html.e…

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

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