# Rails

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

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

---

## [Conditinal layout based on controller action](https://www.ruby-forum.com/t/conditinal-layout-based-on-controller-action/152889)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [November 9, 2008, 11:04pm UTC](https://www.ruby-forum.com/t/conditinal-layout-based-on-controller-action/152889 "2008-11-09T23:04:42Z")

</div>

I have a very basic controller with all the restful actions. What im trying to do i my views is show a “back to links” link in every view except the index view. Im trying to keep it DRY and use some conditional statme…

---

## [How do ASP Response.Write in RoR?](https://www.ruby-forum.com/t/how-do-asp-response-write-in-ror/152875)

<div class="topic-metadata">

**Author:** [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Replies:** 6\
**Last updated:** [November 9, 2008, 8:50pm UTC](https://www.ruby-forum.com/t/how-do-asp-response-write-in-ror/152875 "2008-11-09T20:50:49Z")

</div>

With Microsnot technology you an do this: \<% Response.Write “Hello, World” %\> How do you output text to the browser with Ruby? Pete

---

## [Unclear how to create new timestamped plugin migrations](https://www.ruby-forum.com/t/unclear-how-to-create-new-timestamped-plugin-migrations/152916)

<div class="topic-metadata">

**Author:** [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/unclear-how-to-create-new-timestamped-plugin-migrations/152916 "2008-11-09T18:45:06Z")

</div>

So excited the migrations issue has been resolved. My issue is, I’m working on a plugin, and I want to add a new migration in the plugin directory. Per the new migrations.rb docs (see snippet at end), my migrations sh…

---

## [Strange dependency error after going Ruby1.8.6, Rails 2.1.0 -\> Ruby1.8.7, Rails 2.1.2](https://www.ruby-forum.com/t/strange-dependency-error-after-going-ruby1-8-6-rails-2-1-0-ruby1-8-7-rails-2-1-2/152237)

<div class="topic-metadata">

**Author:** [@Java](https://www.ruby-forum.com/u/Java)\
**Replies:** 10\
**Last updated:** [November 9, 2008, 6:22pm UTC](https://www.ruby-forum.com/t/strange-dependency-error-after-going-ruby1-8-6-rails-2-1-0-ruby1-8-7-rails-2-1-2/152237 "2008-11-09T18:22:20Z")

</div>

Hi, I’m getting an error I just can’t find any cause for. The error is “A copy of ApplicationHelper has been removed from the module tree but is still active!” and gets thrown in a Template that uses a method defined…

---

## [Wildcard URL redirect via Rails Routes?](https://www.ruby-forum.com/t/wildcard-url-redirect-via-rails-routes/152910)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/wildcard-url-redirect-via-rails-routes/152910 "2008-11-09T17:45:23Z")

</div>

Hey all, I wanted to know if I can (and if it’s a good idea) to redirect old routes to other controllers/actions. In a previous version we had some routes like so “/public/username/some/other/variables”. What would …

---

## [Where to submit rails articles](https://www.ruby-forum.com/t/where-to-submit-rails-articles/152903)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/where-to-submit-rails-articles/152903 "2008-11-09T13:09:16Z")

</div>

hi to everyone where to submit rails articles

---

## [Google Maps: How to display infoWindow with Ajax?](https://www.ruby-forum.com/t/google-maps-how-to-display-infowindow-with-ajax/152898)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 0\
**Last updated:** [November 9, 2008, 9:07am UTC](https://www.ruby-forum.com/t/google-maps-how-to-display-infowindow-with-ajax/152898 "2008-11-09T09:07:47Z")

</div>

I have different restaurant makers on maps. When I click one marker, it is supposed to show restaurant name and address after fetching from server at run time. Currently I am doing this… restaurant#{restaurant.id}mar…

---

## [Observe\_field :function show hide doesnt work](https://www.ruby-forum.com/t/observe-field-function-show-hide-doesnt-work/152887)

<div class="topic-metadata">

**Author:** [@ami](https://www.ruby-forum.com/u/ami)\
**Replies:** 1\
**Last updated:** [November 9, 2008, 3:10am UTC](https://www.ruby-forum.com/t/observe-field-function-show-hide-doesnt-work/152887 "2008-11-09T03:10:35Z")

</div>

Repeat: \<%= select(:event\_template, :freq, {:None =\> “0”, :Daily =\> “1”, :Weekly =\> “2”, :Monthly =\> “3”, :Yearly =\> “4”, :custom =\> “5” }, {:selected =\> :None}) %\> \<% observe\_field(“event\_template\_freq”, :function =\> …

---

## [Problem autenticating user](https://www.ruby-forum.com/t/problem-autenticating-user/152844)

<div class="topic-metadata">

**Author:** [@Margareth\_FloriSSSS](https://www.ruby-forum.com/u/Margareth_FloriSSSS)\
**Replies:** 1\
**Last updated:** [November 8, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/problem-autenticating-user/152844 "2008-11-08T22:09:11Z")

</div>

hi every body… I need help… I have the following code in a user model. But when i try to autenticate an user always returns nil, my session controller calls the autenticate method. I proves comparing only the datab…

---

## [Has\_finder and Geokit](https://www.ruby-forum.com/t/has-finder-and-geokit/132066)

<div class="topic-metadata">

**Author:** [@samuelzx](https://www.ruby-forum.com/u/samuelzx)\
**Replies:** 2\
**Last updated:** [November 8, 2008, 9:03pm UTC](https://www.ruby-forum.com/t/has-finder-and-geokit/132066 "2008-11-08T21:03:20Z")

</div>

I have recently discovered the brilliant has\_finder. It allows you to name your ActiveRecord searches, and stack them together. It fulfills a similar need to scope\_out. One of my searches is location based, using the…

---

## [Apps for Democracy Submissions Due by 11/12 ($20K in prizes)](https://www.ruby-forum.com/t/apps-for-democracy-submissions-due-by-11-12-20k-in-prizes/152878)

<div class="topic-metadata">

**Author:** [@corbett3000](https://www.ruby-forum.com/u/corbett3000)\
**Replies:** 0\
**Last updated:** [November 8, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/apps-for-democracy-submissions-due-by-11-12-20k-in-prizes/152878 "2008-11-08T20:57:33Z")

</div>

Hi all, I think I posted about the Apps for Democracy (http:// www.appsfordemocracy.org) contest here a few weeks back, but I wanted to remind you that submissions are due this coming Wednesday. There are 60 prizes f…

---

## [Migrating data from old databse structure to new db structure](https://www.ruby-forum.com/t/migrating-data-from-old-databse-structure-to-new-db-structure/152716)

<div class="topic-metadata">

**Author:** [@sri](https://www.ruby-forum.com/u/sri)\
**Replies:** 3\
**Last updated:** [November 8, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/migrating-data-from-old-databse-structure-to-new-db-structure/152716 "2008-11-08T18:34:17Z")

</div>

Hi, I’m working on the phase 2 development of my project. Phase 1 of this project is currently used by lot of people. In Phase 2, there are some new features and the database structure and relationships are different…

---

## [NoMemoryError](https://www.ruby-forum.com/t/nomemoryerror/94042)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [November 8, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/nomemoryerror/94042 "2008-11-08T17:03:19Z")

</div>

I am using the Openbase adapter and have had a similar glitch here and there, but after I go into production I consistently get an error on one page. ActionView::TemplateError (NoMemoryError: failed to allocate memory…

---

## [Mails are not being sent](https://www.ruby-forum.com/t/mails-are-not-being-sent/152868)

<div class="topic-metadata">

**Author:** [@hola](https://www.ruby-forum.com/u/hola)\
**Replies:** 0\
**Last updated:** [November 8, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/mails-are-not-being-sent/152868 "2008-11-08T16:31:43Z")

</div>

Hello I would be grateful if someone can help me step by step tp resolve this issue. I have my application on production environment. I define the SMTP server settings on config/environments/production.rb as follows…

---

## [Make your Ruby Strings talk](https://www.ruby-forum.com/t/make-your-ruby-strings-talk/152865)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [November 8, 2008, 4:01pm UTC](https://www.ruby-forum.com/t/make-your-ruby-strings-talk/152865 "2008-11-08T16:01:34Z")

</div>

Does this works? I have tested it, but I can’t make to work it http://festivaltts4r.rubyforge.org/ Is there any identical projects?

---

## [Store a session variable in a table](https://www.ruby-forum.com/t/store-a-session-variable-in-a-table/152854)

<div class="topic-metadata">

**Author:** [@Ishara\_G](https://www.ruby-forum.com/u/Ishara_G)\
**Replies:** 1\
**Last updated:** [November 8, 2008, 1:21pm UTC](https://www.ruby-forum.com/t/store-a-session-variable-in-a-table/152854 "2008-11-08T13:21:31Z")

</div>

i have a session variable called user\_id,i want to store it in a table named blogs t.column :user\_id, t.column :title, t.column :body, i have a form which includes title and body,i can save them in the table, here …

---

## [Which money gem or plugin to use from this list?](https://www.ruby-forum.com/t/which-money-gem-or-plugin-to-use-from-this-list/152862)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 0\
**Last updated:** [November 8, 2008, 12:38pm UTC](https://www.ruby-forum.com/t/which-money-gem-or-plugin-to-use-from-this-list/152862 "2008-11-08T12:38:45Z")

</div>

Hi, Which money gem or plugin do Rails developers most use? I see: Gems ‘money’ Plugins acts\_as\_money rails money acts\_as\_currency thanks

---

## [Ruby-openid is breaking my rake](https://www.ruby-forum.com/t/ruby-openid-is-breaking-my-rake/152646)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 7\
**Last updated:** [November 8, 2008, 12:01pm UTC](https://www.ruby-forum.com/t/ruby-openid-is-breaking-my-rake/152646 "2008-11-08T12:01:52Z")

</div>

Hi, I’m having a weird problem: \[~/rails/hip\]# rake routes (in /home/mydomain/rails/hip) Missing these required gems: ruby-openid \>= 2.0.4 You’re running: ruby 1.8.6.287 at /usr/bin/ruby rubygems 1.3.1 at /home/…

---

## [How to handle change events of HTML controls using Rails Fra](https://www.ruby-forum.com/t/how-to-handle-change-events-of-html-controls-using-rails-fra/152662)

<div class="topic-metadata">

**Author:** [@Narasimha\_prasad\_D](https://www.ruby-forum.com/u/Narasimha_prasad_D)\
**Replies:** 1\
**Last updated:** [November 8, 2008, 10:24am UTC](https://www.ruby-forum.com/t/how-to-handle-change-events-of-html-controls-using-rails-fra/152662 "2008-11-08T10:24:37Z")

</div>

Hi, I require to populate dropdowns and textboxes based on the selection in one or the other dropdowns. I tried to create a dropdown ,radiobutton,checkbox. But I am not able to find the event handlers for the contr…

---

## [IO Error](https://www.ruby-forum.com/t/io-error/152841)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 0\
**Last updated:** [November 7, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/io-error/152841 "2008-11-07T23:30:45Z")

</div>

has anyone seen an IO error like this? Trying to track it down, running Jruby/Rails on Tomcat here… INFO: /!\\ FAILSAFE /!\\ Fri Nov 07 17:26:01 -0500 2008 Status: 500 Internal Server Error IO Error /usr/local/tomca…

---

## [Speak at Acts as Conference 2009](https://www.ruby-forum.com/t/speak-at-acts-as-conference-2009/152171)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 3\
**Last updated:** [November 7, 2008, 10:31pm UTC](https://www.ruby-forum.com/t/speak-at-acts-as-conference-2009/152171 "2008-11-07T22:31:28Z")

</div>

Rails For All is happy to announce that the request for proposals for acts\_as\_conference 2009 has begun! In today’s economy, maintaining a competitive advantage is crucial, whether you are a freelancer, or you run a d…

---

## [Schema and relationships between tables](https://www.ruby-forum.com/t/schema-and-relationships-between-tables/152820)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [November 7, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/schema-and-relationships-between-tables/152820 "2008-11-07T22:15:50Z")

</div>

I am trying to allow a user to answer some questions and then save those questions but I am unsure if I am getting the layout correct. Here is what I have so far: There is a questions table holding the questions to as…

---

## [Strange bug in has\_and\_belongs\_to\_many](https://www.ruby-forum.com/t/strange-bug-in-has-and-belongs-to-many/152812)

<div class="topic-metadata">

**Author:** [@Rey9999](https://www.ruby-forum.com/u/Rey9999)\
**Replies:** 1\
**Last updated:** [November 7, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/strange-bug-in-has-and-belongs-to-many/152812 "2008-11-07T22:02:46Z")

</div>

Hello everyone. I have two Classes, linked by a HABTM relationship. class Building \< ActiveRecord::Base set\_table\_name ‘gc\_edifici\_attivita’ has\_and\_belongs\_to\_many :jobs, :join\_table =\> ‘gc\_edificio\_avvio\_commessa’…

---

## [Controller Problem](https://www.ruby-forum.com/t/controller-problem/152816)

<div class="topic-metadata">

**Author:** [@kerouak](https://www.ruby-forum.com/u/kerouak)\
**Replies:** 6\
**Last updated:** [November 7, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/controller-problem/152816 "2008-11-07T21:49:34Z")

</div>

I have this action in questions\_controller.rb : def arg @questions = Question.find(:all) respond\_to do |format| format.html format.xml { render :xml =\> @questions } end end Why this action doesn’t work ? It is …

---

## [Which is the best attachment plugin for my situation?](https://www.ruby-forum.com/t/which-is-the-best-attachment-plugin-for-my-situation/152640)

<div class="topic-metadata">

**Author:** [@coolmenu](https://www.ruby-forum.com/u/coolmenu)\
**Replies:** 3\
**Last updated:** [November 7, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/which-is-the-best-attachment-plugin-for-my-situation/152640 "2008-11-07T20:02:30Z")

</div>

I’m trying to decide which attachment plugin best suites the needs for my project. I have a model that I want to associate one or many attachments to. The content-type of the attachment will vary as well (pdf, jpeg,…

---

## [Restful AND Pretty Urls](https://www.ruby-forum.com/t/restful-and-pretty-urls/152823)

<div class="topic-metadata">

**Author:** [@joe-black](https://www.ruby-forum.com/u/joe-black)\
**Replies:** 1\
**Last updated:** [November 7, 2008, 7:52pm UTC](https://www.ruby-forum.com/t/restful-and-pretty-urls/152823 "2008-11-07T19:52:02Z")

</div>

Is there anyway to have restful AND pretty urls? For example: map.resources :users Would give us nice little helpers users\_url new\_user\_url edit\_user\_url(@user) etc. But what if I wanted my urls to be pretty like …

---

## [One db - many rails projects -\> many schema\_migrations table](https://www.ruby-forum.com/t/one-db-many-rails-projects-many-schema-migrations-table/142274)

<div class="topic-metadata">

**Author:** [@schaf88](https://www.ruby-forum.com/u/schaf88)\
**Replies:** 4\
**Last updated:** [November 7, 2008, 7:10pm UTC](https://www.ruby-forum.com/t/one-db-many-rails-projects-many-schema-migrations-table/142274 "2008-11-07T19:10:09Z")

</div>

Hi all! How can I change the name of the schema\_migrations table? I have to do this because I can only use one database but want to have several rails projects. I hope this is possible at all. greets flo schaf

---

## [Please unsubscribe me](https://www.ruby-forum.com/t/please-unsubscribe-me/152818)

<div class="topic-metadata">

**Author:** [@crucoba](https://www.ruby-forum.com/u/crucoba)\
**Replies:** 0\
**Last updated:** [November 7, 2008, 6:51pm UTC](https://www.ruby-forum.com/t/please-unsubscribe-me/152818 "2008-11-07T18:51:22Z")

</div>

the " removed\_email\_address@domain.invalid" mail is not working for me, there are another way to unsubscribe me? thnx! David GutiÃ©rrez C. Danilo Black : WebMedia removed\_email\_address@domain.invalid tel. +52 (81)…

---

## [Error: A copy of ApplicationHelper has been removed from](https://www.ruby-forum.com/t/error-a-copy-of-applicationhelper-has-been-removed-from/152817)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 0\
**Last updated:** [November 7, 2008, 6:33pm UTC](https://www.ruby-forum.com/t/error-a-copy-of-applicationhelper-has-been-removed-from/152817 "2008-11-07T18:33:37Z")

</div>

Hello. I just started getting this error but can’t figure out what I did in the past day that might be causing this: “A copy of ApplicationHelper has been removed from the module tree but is still active!” Apparentl…

---

## [RJS show as 'try...' in AJAX update](https://www.ruby-forum.com/t/rjs-show-as-try-in-ajax-update/152814)

<div class="topic-metadata">

**Author:** [@samuelzx](https://www.ruby-forum.com/u/samuelzx)\
**Replies:** 1\
**Last updated:** [November 7, 2008, 6:26pm UTC](https://www.ruby-forum.com/t/rjs-show-as-try-in-ajax-update/152814 "2008-11-07T18:26:07Z")

</div>

Hi guys, I am trying to display Javascript code after an Ajax call. It is executing the JS code, but it’s also displaying it. It shows as: try { alert(…); } catch … … my controller code: render :update do |page| …

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

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