# Rails

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

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

---

## [Problems with Ruby code, when creating a mysql db](https://www.ruby-forum.com/t/problems-with-ruby-code-when-creating-a-mysql-db/164093)

<div class="topic-metadata">

**Author:** [@jameslabocki](https://www.ruby-forum.com/u/jameslabocki)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/problems-with-ruby-code-when-creating-a-mysql-db/164093 "2009-03-27T20:10:11Z")

</div>

When I run rake db:migrate --trace I get the following (in C:/myRailsWork/bingo) \*\* Invoke db:migrate (first\_time) \*\* Invoke environment (first\_time) \*\* Execute environment \*\* Execute db:migrate \*\* Invoke db:schema…

---

## [Cross site scripting security](https://www.ruby-forum.com/t/cross-site-scripting-security/163998)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [March 27, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/cross-site-scripting-security/163998 "2009-03-27T18:56:12Z")

</div>

I just changed my session store to use active record because it appears session expiration and so on may be easier that way and it seems like a better option. In my base controller I have: protect\_from\_forgery :secre…

---

## [How do I return values when using form\_for](https://www.ruby-forum.com/t/how-do-i-return-values-when-using-form-for/164086)

<div class="topic-metadata">

**Author:** [@siddharth](https://www.ruby-forum.com/u/siddharth)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 6:44pm UTC](https://www.ruby-forum.com/t/how-do-i-return-values-when-using-form-for/164086 "2009-03-27T18:44:25Z")

</div>

Hi I am trying to build a simple app where I’m trying to do pretty what scaffold does. My question is when I am using ‘form\_for’ how do I return the id while editing the application like its done in the form\_tag for e…

---

## [Help with AR design on a large (~100'sM) partition table](https://www.ruby-forum.com/t/help-with-ar-design-on-a-large-100sm-partition-table/163744)

<div class="topic-metadata">

**Author:** [@robredford](https://www.ruby-forum.com/u/robredford)\
**Replies:** 4\
**Last updated:** [March 27, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/help-with-ar-design-on-a-large-100sm-partition-table/163744 "2009-03-27T17:58:39Z")

</div>

First, I’m a physicist, not a computer scientist. I need to store 65M rows now, with a growth rate of ~21M/year whose entries arrive daily. The purpose of this DB is to store metadata for environmental observations …

---

## [No such file to load -- config/environment - Apache2 & Passenger 2.1.1](https://www.ruby-forum.com/t/no-such-file-to-load-config-environment-apache2-passenger-2-1-1/162580)

<div class="topic-metadata">

**Author:** [@Basti](https://www.ruby-forum.com/u/Basti)\
**Replies:** 5\
**Last updated:** [March 27, 2009, 5:24pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-config-environment-apache2-passenger-2-1-1/162580 "2009-03-27T17:24:00Z")

</div>

Hi, i recently started using Ruby and Ruby on Rails. For Development i’m using RadRails and InstantRails on my local Windows machine. Atm i’m trying to get a basic application running on Ubuntu Server 8.10 with Apach…

---

## [Would learning Camping would help me learn Rails?](https://www.ruby-forum.com/t/would-learning-camping-would-help-me-learn-rails/164082)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/would-learning-camping-would-help-me-learn-rails/164082 "2009-03-27T17:22:14Z")

</div>

I want to learn about the Rails’ internals, but it’s pretty big to start with. So I was wondering if first diving into Camping, then moving on to Tails would be of any benefit? What do you think?

---

## [Send a collection from view to controller](https://www.ruby-forum.com/t/send-a-collection-from-view-to-controller/163994)

<div class="topic-metadata">

**Author:** [@hiro](https://www.ruby-forum.com/u/hiro)\
**Replies:** 3\
**Last updated:** [March 27, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/send-a-collection-from-view-to-controller/163994 "2009-03-27T17:01:41Z")

</div>

Hi everybody, Maybe this is a sort of newbie question but I’ve been trying to solve it for several days without a solution. Basically what I want to do is to pass a collection from the view to my controller. I paste …

---

## [Adding a css stylesheet to a plugin](https://www.ruby-forum.com/t/adding-a-css-stylesheet-to-a-plugin/164047)

<div class="topic-metadata">

**Author:** [@nutsmuggler](https://www.ruby-forum.com/u/nutsmuggler)\
**Replies:** 2\
**Last updated:** [March 27, 2009, 4:11pm UTC](https://www.ruby-forum.com/t/adding-a-css-stylesheet-to-a-plugin/164047 "2009-03-27T16:11:03Z")

</div>

Hello folks, I am creating a simple RoR plugin, mostly to teach myself the art of plugin-coding. The plugin is mostly a helper plugin, generating HTML code. Now I would like to include a CSS stylesheet ; the idea is …

---

## [Globalize question](https://www.ruby-forum.com/t/globalize-question/164072)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 3:15pm UTC](https://www.ruby-forum.com/t/globalize-question/164072 "2009-03-27T15:15:56Z")

</div>

Hello, I just installed globalize2 (GitHub - joshmh/globalize2: The second incarnation of Globalize for Rails) and wanted to translate a simple string. I googled and only found translations for models etc. Does anyo…

---

## [Re: no one cares about i18n (was \[OT\]: Asking questions on t](https://www.ruby-forum.com/t/re-no-one-cares-about-i18n-was-ot-asking-questions-on-t/59418)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 16\
**Last updated:** [March 27, 2009, 2:31pm UTC](https://www.ruby-forum.com/t/re-no-one-cares-about-i18n-was-ot-asking-questions-on-t/59418 "2009-03-27T14:31:02Z")

</div>

Do most others in the community agree with this statement? It seems to me that i18n is: Actually important to many people Not really the difficult to implement in concept Something that people like to point out abou…

---

## [What wrong?](https://www.ruby-forum.com/t/what-wrong/163885)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 4\
**Last updated:** [March 27, 2009, 1:47pm UTC](https://www.ruby-forum.com/t/what-wrong/163885 "2009-03-27T13:47:54Z")

</div>

I can’t make this work: http://groups.google.com/group/paperclip-plugin/browse\_thread/thread/c8f58f0a4ef45d20/95e66f07c5722d96?lnk=gst&q=rename#95e66f07c5722d96 Where I have to place this code? Paperclip::Attachment.i…

---

## [2.3 Nested Forms, dynamically add an attribute](https://www.ruby-forum.com/t/2-3-nested-forms-dynamically-add-an-attribute/163981)

<div class="topic-metadata">

**Author:** [@tilt](https://www.ruby-forum.com/u/tilt)\
**Replies:** 4\
**Last updated:** [March 27, 2009, 1:10pm UTC](https://www.ruby-forum.com/t/2-3-nested-forms-dynamically-add-an-attribute/163981 "2009-03-27T13:10:15Z")

</div>

Hi, I’m implementing some nested forms with Rails 2.3 which works pretty well as long as I only have to edit the objects that are already associated to the original object. I’m not sure though how to implement an “Ad…

---

## [Method not available within same module as definition](https://www.ruby-forum.com/t/method-not-available-within-same-module-as-definition/164029)

<div class="topic-metadata">

**Author:** [@redii](https://www.ruby-forum.com/u/redii)\
**Replies:** 3\
**Last updated:** [March 27, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/method-not-available-within-same-module-as-definition/164029 "2009-03-27T12:15:47Z")

</div>

This will probably be embarrassingly obvious. It acts as if it’s an evaluation order issue (like the method call is happening prior to the method definition). But that isn’t the case. The model\_names method works fin…

---

## [\[ANN\] Ruby-GetText-Package-2.0.0](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582)

<div class="topic-metadata">

**Author:** [@Masao\_M](https://www.ruby-forum.com/u/Masao_M)\
**Replies:** 4\
**Last updated:** [March 27, 2009, 10:39am UTC](https://www.ruby-forum.com/t/ann-ruby-gettext-package-2-0-0/163582 "2009-03-27T10:39:07Z")

</div>

Hi, Ruby-GetText-Package-2.0.0 is now available. Ruby-GetText-Package now separate 2 base libraries and 3 libraries which support Ruby on Rails 2.3.2. For all libraries/applications: locale - Management Locale IDs g…

---

## [\[Announce\] MashEdge Web Book on "Build a Web Site with Ruby on Rails" for newcomers](https://www.ruby-forum.com/t/announce-mashedge-web-book-on-build-a-web-site-with-ruby-on-rails-for-newcomers/164057)

<div class="topic-metadata">

**Author:** [@Kiran\_Achyutuni](https://www.ruby-forum.com/u/Kiran_Achyutuni)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 10:23am UTC](https://www.ruby-forum.com/t/announce-mashedge-web-book-on-build-a-web-site-with-ruby-on-rails-for-newcomers/164057 "2009-03-27T10:23:18Z")

</div>

If you are a newcomer to Ruby on Rails and want to build a website with it, I have consolidated many of the links to the gems of knowledge scattered on the internet into a dynamic web book titled “Build a Web S. with …

---

## [Add params tto links on page load - ?domain=xyz.com](https://www.ruby-forum.com/t/add-params-tto-links-on-page-load-domain-xyz-com/164053)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 9:51am UTC](https://www.ruby-forum.com/t/add-params-tto-links-on-page-load-domain-xyz-com/164053 "2009-03-27T09:51:01Z")

</div>

I’m working on testing an app locally that will be serving multiple domains. We’ve currently set up a mechanism for testing this ?domain=xyz.com, but this param isn’t carried over when clicking on links throughout t…

---

## [Get text compatibile con la nuova versione!](https://www.ruby-forum.com/t/get-text-compatibile-con-la-nuova-versione/164051)

<div class="topic-metadata">

**Author:** [@xerix32](https://www.ruby-forum.com/u/xerix32)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 9:00am UTC](https://www.ruby-forum.com/t/get-text-compatibile-con-la-nuova-versione/164051 "2009-03-27T09:00:07Z")

</div>

GetText Package 2.0.0 Ã¨ finalmente compatibile con Rails 2.3.2 (la versione rails-2.3.1 e precedenti non funzionano con gettext-2.0.0). http://www.newsvillage.net/dev/58-ruby/83-ruby-on-rails-prepara-lattacco-al-web-2…

---

## [Different page caching folder for different domains](https://www.ruby-forum.com/t/different-page-caching-folder-for-different-domains/163787)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 8:34am UTC](https://www.ruby-forum.com/t/different-page-caching-folder-for-different-domains/163787 "2009-03-27T08:34:51Z")

</div>

Hi, I created a multi-domain application, and I wanted to add page caching, how can I tell Rails that it should save each cached page under a subfolder such as public/www.mysite1.com/ and public/www.mysite2.com

---

## [Rails 2.3.2 server restart does not appear to clear fragment cache](https://www.ruby-forum.com/t/rails-2-3-2-server-restart-does-not-appear-to-clear-fragment-cache/164032)

<div class="topic-metadata">

**Author:** [@Sudhir](https://www.ruby-forum.com/u/Sudhir)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 8:07am UTC](https://www.ruby-forum.com/t/rails-2-3-2-server-restart-does-not-appear-to-clear-fragment-cache/164032 "2009-03-27T08:07:19Z")

</div>

After upgrading to Rails 2.3.2 I am now experimenting with Rails caching. I have cache enabled for one action in a few controllers. This seems to work until I restart the server. After restart, I get Invalid Authentic…

---

## [Create a table per user](https://www.ruby-forum.com/t/create-a-table-per-user/164036)

<div class="topic-metadata">

**Author:** [@miki](https://www.ruby-forum.com/u/miki)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 7:57am UTC](https://www.ruby-forum.com/t/create-a-table-per-user/164036 "2009-03-27T07:57:55Z")

</div>

not sure what to look at… how would i go about creating tables within the application? i have my users and say, for each one i want to create another table(s) when they register, that would be customized to them and …

---

## [New TurnKey appliance for Ruby on Rails 2.3.2](https://www.ruby-forum.com/t/new-turnkey-appliance-for-ruby-on-rails-2-3-2/164044)

<div class="topic-metadata">

**Author:** [@Liraz](https://www.ruby-forum.com/u/Liraz)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 7:36am UTC](https://www.ruby-forum.com/t/new-turnkey-appliance-for-ruby-on-rails-2-3-2/164044 "2009-03-27T07:36:51Z")

</div>

TurnKey Linux has released a new Ruby on Rails Appliance. The new appliance features an upgrade to Rails 2.3.2, upgraded Gems components, an important bug fix and significant security enhancements (regeneration of dat…

---

## [Ajax window and Element.show when onclick](https://www.ruby-forum.com/t/ajax-window-and-element-show-when-onclick/164031)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 1:49am UTC](https://www.ruby-forum.com/t/ajax-window-and-element-show-when-onclick/164031 "2009-03-27T01:49:28Z")

</div>

in a page I have a list of modules in a div (left), and the permissions radio boxes for this module displyed on the irght when clicking on a module name, the related permissions are displayed when using html, it works…

---

## [InstantRails and new gems](https://www.ruby-forum.com/t/instantrails-and-new-gems/163610)

<div class="topic-metadata">

**Author:** [@pierre](https://www.ruby-forum.com/u/pierre)\
**Replies:** 6\
**Last updated:** [March 27, 2009, 1:35am UTC](https://www.ruby-forum.com/t/instantrails-and-new-gems/163610 "2009-03-27T01:35:32Z")

</div>

Folks, I’m not sure this is the best place to ask the following question, but someone might still know the answer. I currently can’t install anything on this computer (hence no ruby interpreter), I thought about gett…

---

## [Request Profiling on Rails 2.3.2](https://www.ruby-forum.com/t/request-profiling-on-rails-2-3-2/164028)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 1\
**Last updated:** [March 27, 2009, 1:26am UTC](https://www.ruby-forum.com/t/request-profiling-on-rails-2-3-2/164028 "2009-03-27T01:26:48Z")

</div>

scripts/performance/request is gone… and the RequestProfiler class is gone from ActionController. Is there a simple way to profile a request? Thanks pedz

---

## [Error On relative\_url\_root](https://www.ruby-forum.com/t/error-on-relative-url-root/164022)

<div class="topic-metadata">

**Author:** [@alangano](https://www.ruby-forum.com/u/alangano)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 12:10am UTC](https://www.ruby-forum.com/t/error-on-relative-url-root/164022 "2009-03-27T00:10:34Z")

</div>

I’m attempting to mash together Adva CMS’ Fckeditor and the Fckeditor plugin provided by Scott Rutherford. http://blog.caronsoftware.com/2008/6/21/fckeditor-plugin-0-5-1-released The Scott’s plugin has a controller th…

---

## [Acts\_as\_versioned and qa](https://www.ruby-forum.com/t/acts-as-versioned-and-qa/164023)

<div class="topic-metadata">

**Author:** [@linus](https://www.ruby-forum.com/u/linus)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 12:10am UTC](https://www.ruby-forum.com/t/acts-as-versioned-and-qa/164023 "2009-03-27T00:10:34Z")

</div>

Hi, I have Article model and it has aasm\_column qa, that is initially “pending”. In order to get it reset qa column on new versions, I have made: def set\_new\_version write\_attribute(:qa, “pending”) end But now the…

---

## [SOAP WSDLFactory](https://www.ruby-forum.com/t/soap-wsdlfactory/164021)

<div class="topic-metadata">

**Author:** [@BenH](https://www.ruby-forum.com/u/BenH)\
**Replies:** 0\
**Last updated:** [March 27, 2009, 12:10am UTC](https://www.ruby-forum.com/t/soap-wsdlfactory/164021 "2009-03-27T00:10:34Z")

</div>

I’ve created a method for creating a SOAP WSDL driver. I’ve tested this without basic auth and without SSL and it works great. The sysadmin has enabled SSL and basic auth and now I’m stuck. The error is: HTTPClient::…

---

## [Reverse of simple\_format?](https://www.ruby-forum.com/t/reverse-of-simple-format/164018)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 0\
**Last updated:** [March 26, 2009, 11:29pm UTC](https://www.ruby-forum.com/t/reverse-of-simple-format/164018 "2009-03-26T23:29:32Z")

</div>

Hello! Is there a way to reverse the TextHelper simple\_format? I.e. to take some text with tags and tags and convert them into line breaks in a smart way? (smarter than just a regexp that is). TIA! -Danimal

---

## [Rails Hosting in the UK](https://www.ruby-forum.com/t/rails-hosting-in-the-uk/85066)

<div class="topic-metadata">

**Author:** [@weepy](https://www.ruby-forum.com/u/weepy)\
**Replies:** 17\
**Last updated:** [March 26, 2009, 11:22pm UTC](https://www.ruby-forum.com/t/rails-hosting-in-the-uk/85066 "2009-03-26T23:22:59Z")

</div>

Hi I have a project to host (production level - mid level traffic) that has a predominantly UK audience. Currently I have a media temple grid unit, but it’s performing badly here in the UK (extra ping time etc). Can …

---

## [Adding a class in loops](https://www.ruby-forum.com/t/adding-a-class-in-loops/164014)

<div class="topic-metadata">

**Author:** [@limeyd](https://www.ruby-forum.com/u/limeyd)\
**Replies:** 1\
**Last updated:** [March 26, 2009, 10:50pm UTC](https://www.ruby-forum.com/t/adding-a-class-in-loops/164014 "2009-03-26T22:50:52Z")

</div>

how do I only apply first to the first item? \<% @clients.each do |client| %\> \<%= link\_to client.name, client, :class=\> “first” %\> \<% end %\> thanks

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

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