# Rails

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

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

---

## [Migrations with 2.1 and engines trunk](https://www.ruby-forum.com/t/migrations-with-2-1-and-engines-trunk/139732)

<div class="topic-metadata">

**Author:** [@tekin](https://www.ruby-forum.com/u/tekin)\
**Replies:** 5\
**Last updated:** [June 9, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/migrations-with-2-1-and-engines-trunk/139732 "2008-06-09T13:18:26Z")

</div>

Hi, Are migrations currently broken because of the changes to Rails in 2.1? I can migrate a plugin first time, but when I add a new migration to the plugin and try and migrate up, rather than migrating from the curren…

---

## [Migration file name](https://www.ruby-forum.com/t/migration-file-name/139944)

<div class="topic-metadata">

**Author:** [@vincentr](https://www.ruby-forum.com/u/vincentr)\
**Replies:** 3\
**Last updated:** [June 9, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/migration-file-name/139944 "2008-06-09T13:18:18Z")

</div>

Hi everybody, I was just wondering if the migration files name changed with rails 2.1.0. I use to learn rails with the famous book Agile Development with Rails and for this I had rails 1.2.3. The migration files were …

---

## [\[ANN\] translate\_routes: plugin to translate URLs on an easy way](https://www.ruby-forum.com/t/ann-translate-routes-plugin-to-translate-urls-on-an-easy-way/139945)

<div class="topic-metadata">

**Author:** [@rpm](https://www.ruby-forum.com/u/rpm)\
**Replies:** 0\
**Last updated:** [June 9, 2008, 1:15pm UTC](https://www.ruby-forum.com/t/ann-translate-routes-plugin-to-translate-urls-on-an-easy-way/139945 "2008-06-09T13:15:58Z")

</div>

Hi, I have released the translate\_routes plugin, which provides a simple way to translate your URLs to any number of languages. All routes automatically add a configurable parameter to the request so your controllers …

---

## [About rails 2.1](https://www.ruby-forum.com/t/about-rails-2-1/139936)

<div class="topic-metadata">

**Author:** [@deliak](https://www.ruby-forum.com/u/deliak)\
**Replies:** 1\
**Last updated:** [June 9, 2008, 11:16am UTC](https://www.ruby-forum.com/t/about-rails-2-1/139936 "2008-06-09T11:16:27Z")

</div>

Does it work with ruby 1.9 ?

---

## [Render action from another controller](https://www.ruby-forum.com/t/render-action-from-another-controller/139934)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 2\
**Last updated:** [June 9, 2008, 10:24am UTC](https://www.ruby-forum.com/t/render-action-from-another-controller/139934 "2008-06-09T10:24:33Z")

</div>

I would like to have one page staying the same all the time, and have actions being included with Ajax. On the main page I have a div used for the purpose of adding forms belonging to other models than the current mai…

---

## [Noob here: can php files in rails public folder be ok?](https://www.ruby-forum.com/t/noob-here-can-php-files-in-rails-public-folder-be-ok/139848)

<div class="topic-metadata">

**Author:** [@mauibbq](https://www.ruby-forum.com/u/mauibbq)\
**Replies:** 1\
**Last updated:** [June 9, 2008, 8:30am UTC](https://www.ruby-forum.com/t/noob-here-can-php-files-in-rails-public-folder-be-ok/139848 "2008-06-09T08:30:57Z")

</div>

my designer friend wants to use php for certain pages. i was planning to add those pages in the rails app public folder. would the php code be executed? t the php code is simply for some view functionality(no database…

---

## [Logging in BackgrounDRb (i.e. Logger.debug, Logger.info)](https://www.ruby-forum.com/t/logging-in-backgroundrb-i-e-logger-debug-logger-info/139909)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 1\
**Last updated:** [June 9, 2008, 8:24am UTC](https://www.ruby-forum.com/t/logging-in-backgroundrb-i-e-logger-debug-logger-info/139909 "2008-06-09T08:24:29Z")

</div>

Does anybody know where the logs from calling logger.debug in the worker goes? I don’t see it in the RoR logs or the BackgrounDRb logs. Thanks, Jeremy

---

## [Gettext problem](https://www.ruby-forum.com/t/gettext-problem/139927)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 0\
**Last updated:** [June 9, 2008, 7:52am UTC](https://www.ruby-forum.com/t/gettext-problem/139927 "2008-06-09T07:52:33Z")

</div>

What wrong? cat lib/tasks/gettext.rake require ‘gettext/utils’ Tell ruby-gettext’s ErbParser to parse .erb files as well See also http://zargony.com/2007/07/29/using-ruby-gettext-with-edge-rails/ GetText::ErbPars…

---

## [Error when executing "rake db:migrate" with frozen Rails 2.1.0 on Media Temple](https://www.ruby-forum.com/t/error-when-executing-rake-db-migrate-with-frozen-rails-2-1-0-on-media-temple/139926)

<div class="topic-metadata">

**Author:** [@partydrone](https://www.ruby-forum.com/u/partydrone)\
**Replies:** 0\
**Last updated:** [June 9, 2008, 7:23am UTC](https://www.ruby-forum.com/t/error-when-executing-rake-db-migrate-with-frozen-rails-2-1-0-on-media-temple/139926 "2008-06-09T07:23:28Z")

</div>

I’m hoping someone might have some insight into this, because I don’t quite know how to figure this one out. I’m running the command with Capistrano’s deploy:migrate to my (mt) Media Temple (gs) Grid Server, but I get…

---

## [Question about Rails development environment](https://www.ruby-forum.com/t/question-about-rails-development-environment/139910)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 3\
**Last updated:** [June 9, 2008, 6:41am UTC](https://www.ruby-forum.com/t/question-about-rails-development-environment/139910 "2008-06-09T06:41:47Z")

</div>

I’m a newbie with Ruby on Rails and have a couple of questions with respect to the development environment. My current app works correctly except for the issue that any .rhtml file I have with a flash file (.swf) hang…

---

## [Joining tables](https://www.ruby-forum.com/t/joining-tables/139718)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [June 9, 2008, 5:56am UTC](https://www.ruby-forum.com/t/joining-tables/139718 "2008-06-09T05:56:29Z")

</div>

Hi I have 3 tables as user\_groups id | contact\_id | group\_id | group\_user\_type\_id contact id | name\_first | name\_last | 3)contact\_email\_addresses contact\_id | contact\_email\_address\_type\_id | emailaddress Now …

---

## [Can't start script/server](https://www.ruby-forum.com/t/cant-start-script-server/139911)

<div class="topic-metadata">

**Author:** [@bewhite](https://www.ruby-forum.com/u/bewhite)\
**Replies:** 3\
**Last updated:** [June 9, 2008, 5:39am UTC](https://www.ruby-forum.com/t/cant-start-script-server/139911 "2008-06-09T05:39:40Z")

</div>

Hi, I get the error saying that my rubygems are of a version to old for rails… But its not the truth (see the output below please). $ ruby -v ruby 1.8.7 (2008-05-31 patchlevel 0) \[i686-linux\] $ rails -v Rails 2.1.0 …

---

## [Create multiple new objects in one page](https://www.ruby-forum.com/t/create-multiple-new-objects-in-one-page/136769)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 4\
**Last updated:** [June 9, 2008, 1:50am UTC](https://www.ruby-forum.com/t/create-multiple-new-objects-in-one-page/136769 "2008-06-09T01:50:13Z")

</div>

I’m trying to make a view with one form for each instance of a model (ferms) in which a user can update some attributes (in this case I’m calling them kinetics) Ferm has\_many :kinetics Kinetic belongs\_to :ferm In …

---

## [Location of ancillary files](https://www.ruby-forum.com/t/location-of-ancillary-files/139898)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 4\
**Last updated:** [June 9, 2008, 12:38am UTC](https://www.ruby-forum.com/t/location-of-ancillary-files/139898 "2008-06-09T00:38:47Z")

</div>

Let’s say, for example, that I want to create an order form and that I want to assign an order number to each submitted order form for tracking purposes. So, I create a little file to store the latest number. Then w…

---

## [Control-click behaviour using Prototype](https://www.ruby-forum.com/t/control-click-behaviour-using-prototype/139906)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 0\
**Last updated:** [June 9, 2008, 12:06am UTC](https://www.ruby-forum.com/t/control-click-behaviour-using-prototype/139906 "2008-06-09T00:06:27Z")

</div>

Hi all, Is it possible to use Prototype to add control-click behaviour to a link? What I want is to fire one Ajax request if a user clicks on a box, and a different request if they control-click on the same box. I kn…

---

## [Stopping Default REST support in Rails 2.0.2](https://www.ruby-forum.com/t/stopping-default-rest-support-in-rails-2-0-2/139803)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 11:58pm UTC](https://www.ruby-forum.com/t/stopping-default-rest-support-in-rails-2-0-2/139803 "2008-06-08T23:58:50Z")

</div>

Hi, Currently i am in learning process and NOT much keen to go with Default REST support that comes along with Rails 2.0.2. Neither I am too keen to make changes in ROUTING. I am very happy with Controller/Action/ID …

---

## [AJAX observer on select form](https://www.ruby-forum.com/t/ajax-observer-on-select-form/139895)

<div class="topic-metadata">

**Author:** [@kopf1988](https://www.ruby-forum.com/u/kopf1988)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/ajax-observer-on-select-form/139895 "2008-06-08T23:38:11Z")

</div>

Hi, I was hoping someone might be able to help with this one. I’ve got a select list that I probably need to use an observer on. I want the list, whenever something is selected, to show a hidden div based on what’s ch…

---

## [Plugins - helper function is an "undefined method", Objects "can't be referred"](https://www.ruby-forum.com/t/plugins-helper-function-is-an-undefined-method-objects-cant-be-referred/139891)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 3\
**Last updated:** [June 8, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/plugins-helper-function-is-an-undefined-method-objects-cant-be-referred/139891 "2008-06-08T23:37:00Z")

</div>

I’m modifying a shopping cart plugin, MinimalCart, and for some reason I can add one item to the cart multiple times, but as soon as I add a second item, all kinds of strange things start happening. An actionview::tem…

---

## [Link\_to with changing one single get-param](https://www.ruby-forum.com/t/link-to-with-changing-one-single-get-param/139901)

<div class="topic-metadata">

**Author:** [@LpLpLp](https://www.ruby-forum.com/u/LpLpLp)\
**Replies:** 1\
**Last updated:** [June 8, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/link-to-with-changing-one-single-get-param/139901 "2008-06-08T23:31:08Z")

</div>

Hey… i want to sort some of my data-tables with an application-helper named “sortable(fieldname)” in this helper i want to define a link with following schema, depending on params\[:direction\]: link\_to fieldname, req…

---

## [Newbie Problem : Scaffold does not generate html form input fields](https://www.ruby-forum.com/t/newbie-problem-scaffold-does-not-generate-html-form-input-fields/139872)

<div class="topic-metadata">

**Author:** [@anij](https://www.ruby-forum.com/u/anij)\
**Replies:** 4\
**Last updated:** [June 8, 2008, 8:46pm UTC](https://www.ruby-forum.com/t/newbie-problem-scaffold-does-not-generate-html-form-input-fields/139872 "2008-06-08T20:46:21Z")

</div>

Hi Friends, I am newbie to Ruby on Rails and trying to follow through my first tutorial on RoR. I am following the “Getting Started with Rails” manual on RoR. When I type “$ ruby script\\generate scaffold Post blog” …

---

## [Text field being garbled](https://www.ruby-forum.com/t/text-field-being-garbled/139899)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [June 8, 2008, 8:21pm UTC](https://www.ruby-forum.com/t/text-field-being-garbled/139899 "2008-06-08T20:21:32Z")

</div>

I’ve got a pretty basic RESTful scaffold with just two fields, title:string and body:text. When I edit the body, save it, and go back to edit it again, the text is pretty mangled. The first line of each paragraph is i…

---

## [Uploading MP3 files](https://www.ruby-forum.com/t/uploading-mp3-files/139896)

<div class="topic-metadata">

**Author:** [@visionary](https://www.ruby-forum.com/u/visionary)\
**Replies:** 1\
**Last updated:** [June 8, 2008, 8:16pm UTC](https://www.ruby-forum.com/t/uploading-mp3-files/139896 "2008-06-08T20:16:48Z")

</div>

I need to create functionality for a personal project which allows me to upload and store MP3 or Ogg Vorbis sound files that can later be downloaded by a user, however, after looking at a couple of tutorials, I’m just…

---

## [Global variable in helper function](https://www.ruby-forum.com/t/global-variable-in-helper-function/139874)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 1\
**Last updated:** [June 8, 2008, 7:57pm UTC](https://www.ruby-forum.com/t/global-variable-in-helper-function/139874 "2008-06-08T19:57:38Z")

</div>

I have a helper function that generates a tree and i’m trying to get the sum of time for each element in the whole tree. def tree(time) print element time = element.time tree(time) end function the script works bu…

---

## [POSTing in :admin namespace](https://www.ruby-forum.com/t/posting-in-admin-namespace/139863)

<div class="topic-metadata">

**Author:** [@goleksiak](https://www.ruby-forum.com/u/goleksiak)\
**Replies:** 3\
**Last updated:** [June 8, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/posting-in-admin-namespace/139863 "2008-06-08T19:47:50Z")

</div>

I have a RESTful :admin namespace which works fine except for UPDATE and CREATE actions for the controllers in the :admin space. I am sure it is a namespace/routing issue and have looked through a bunch of posts but c…

---

## [Rake db:schema:load from capistrano](https://www.ruby-forum.com/t/rake-dbload-from-capistrano/138250)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 2\
**Last updated:** [June 8, 2008, 7:14pm UTC](https://www.ruby-forum.com/t/rake-dbload-from-capistrano/138250 "2008-06-08T19:14:01Z")

</div>

Hi, I’m not sure why this isn’t working form me. In my deploy script I have the following task: desc “cold deploy” task :cold do update mongrel.cluster.configure run “cd #{release\_path}” sudo “rake db:schema:load…

---

## [Rails Refactoring Catalog](https://www.ruby-forum.com/t/rails-refactoring-catalog/139885)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 0\
**Last updated:** [June 8, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/rails-refactoring-catalog/139885 "2008-06-08T18:42:57Z")

</div>

In case any one is interested the Rails Refactoring catalog from the Refactoring Your Rails Application tutorial at RailsConf is available. http://www.continuousthinking.com/2008/6/3/refactoring-your-rails-application-…

---

## [Can create record but can not update it =\> has\_many through](https://www.ruby-forum.com/t/can-create-record-but-can-not-update-it-has-many-through/139811)

<div class="topic-metadata">

**Author:** [@adinda\_p](https://www.ruby-forum.com/u/adinda_p)\
**Replies:** 5\
**Last updated:** [June 8, 2008, 6:19pm UTC](https://www.ruby-forum.com/t/can-create-record-but-can-not-update-it-has-many-through/139811 "2008-06-08T18:19:58Z")

</div>

Hi All, I have a problem using has\_many through association. I can create a product without problem, but when i edit it, i got this NoMethodError: undefined method \`reciters=’ for #Product:0xb71a77e8 Did i miss some…

---

## [Count views to images](https://www.ruby-forum.com/t/count-views-to-images/139844)

<div class="topic-metadata">

**Author:** [@procyon](https://www.ruby-forum.com/u/procyon)\
**Replies:** 4\
**Last updated:** [June 8, 2008, 6:16pm UTC](https://www.ruby-forum.com/t/count-views-to-images/139844 "2008-06-08T18:16:27Z")

</div>

Hi, I want to implement logic in Rail so that I can count number of views to an image served by my server. Any suggestions on how to do it ? How do I intercept request to an image , perform book keeping, then redirec…

---

## [Defining access right for each database entry](https://www.ruby-forum.com/t/defining-access-right-for-each-database-entry/139815)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [June 8, 2008, 5:08pm UTC](https://www.ruby-forum.com/t/defining-access-right-for-each-database-entry/139815 "2008-06-08T17:08:40Z")

</div>

I have a table with information about companies and a table with several users. Now I need a solution where I can define access rights for each entry in the company table. user1 | user2 company1 ved | v company2…

---

## [\[ANN\] New Rails User Group forming -- Atlanta, GA](https://www.ruby-forum.com/t/ann-new-rails-user-group-forming-atlanta-ga/139875)

<div class="topic-metadata">

**Author:** [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Replies:** 0\
**Last updated:** [June 8, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/ann-new-rails-user-group-forming-atlanta-ga/139875 "2008-06-08T16:28:33Z")

</div>

Hi, I am trying to gauge interest in forming a new Rails user group that would meet monthly somewhere in the North Atlanta area. We would meet somewhere between Perimeter Mall and Suwanee. I am well aware of the curr…

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

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