# Rails

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

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

---

## [Ajax & Rails](https://www.ruby-forum.com/t/ajax-rails/165002)

<div class="topic-metadata">

**Author:** [@esdevs](https://www.ruby-forum.com/u/esdevs)\
**Replies:** 9\
**Last updated:** [April 8, 2009, 8:32pm UTC](https://www.ruby-forum.com/t/ajax-rails/165002 "2009-04-08T20:32:09Z")

</div>

ok - I am trying to do something seemingly straight forward. Essentially I want to list out a bunch of items and for each item individually, if the user clicks on it, the corresponding web link will appear underneath …

---

## [How to change the response charset](https://www.ruby-forum.com/t/how-to-change-the-response-charset/165001)

<div class="topic-metadata">

**Author:** [@xabriel](https://www.ruby-forum.com/u/xabriel)\
**Replies:** 2\
**Last updated:** [April 8, 2009, 7:24pm UTC](https://www.ruby-forum.com/t/how-to-change-the-response-charset/165001 "2009-04-08T19:24:01Z")

</div>

Hi all, I have the following on a controller method: render :text =\> “A string message” I want that response body to be converted to US-ASCII. (BTW, Ruby seems to default to UTF-8) Any ideas? I know theres a ‘respon…

---

## [Adding files in git](https://www.ruby-forum.com/t/adding-files-in-git/165013)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [April 8, 2009, 7:21pm UTC](https://www.ruby-forum.com/t/adding-files-in-git/165013 "2009-04-08T19:21:33Z")

</div>

Do I need to add each new file in git that is created after init? Or does it happen when I do “git commit -a -v -m ‘test’”? If so, can I just use “git .” and it will take new files and skip old ones?

---

## [Find and order](https://www.ruby-forum.com/t/find-and-order/165061)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 1\
**Last updated:** [April 8, 2009, 7:19pm UTC](https://www.ruby-forum.com/t/find-and-order/165061 "2009-04-08T19:19:19Z")

</div>

I have a find that look likes this: @values = UdidValue.find(:all, :conditions =\> \[‘udid\_id = ?’, x.id\], :order =\> ‘value ASC’) The problem is that ‘value’ could be a street address, for example, numbers. So, when I …

---

## [Best practice for passing vars etc](https://www.ruby-forum.com/t/best-practice-for-passing-vars-etc/164963)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 2\
**Last updated:** [April 8, 2009, 7:18pm UTC](https://www.ruby-forum.com/t/best-practice-for-passing-vars-etc/164963 "2009-04-08T19:18:44Z")

</div>

I am new to rails and I am having a hard time coming up with a clean solution to handle passing vars to controllers and views so that they will have the data they need to function correctly. For instance. I have produ…

---

## [Error during migrations using Community Engine](https://www.ruby-forum.com/t/error-during-migrations-using-community-engine/165063)

<div class="topic-metadata">

**Author:** [@vikas](https://www.ruby-forum.com/u/vikas)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 7:00pm UTC](https://www.ruby-forum.com/t/error-during-migrations-using-community-engine/165063 "2009-04-08T19:00:11Z")

</div>

Hello all, I use community engine in my web application. when I create a new application and integrate CE it works perfect. But when i integrate CE in my application it is not working. please give suggestions. My pr…

---

## [Datamapper port](https://www.ruby-forum.com/t/datamapper-port/165062)

<div class="topic-metadata">

**Author:** [@mauricio](https://www.ruby-forum.com/u/mauricio)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/datamapper-port/165062 "2009-04-08T18:53:33Z")

</div>

Hi guys, Anyone knows of any project aiming to port datamapper style conditions to activerecord? Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en)

---

## [Calendar control](https://www.ruby-forum.com/t/calendar-control/165047)

<div class="topic-metadata">

**Author:** [@sushrut](https://www.ruby-forum.com/u/sushrut)\
**Replies:** 2\
**Last updated:** [April 8, 2009, 6:28pm UTC](https://www.ruby-forum.com/t/calendar-control/165047 "2009-04-08T18:28:19Z")

</div>

what is sedu gem? how to get that & use calendar control

---

## [Using a domain name in a Rails route](https://www.ruby-forum.com/t/using-a-domain-name-in-a-rails-route/165059)

<div class="topic-metadata">

**Author:** [@steve\_at\_trend](https://www.ruby-forum.com/u/steve_at_trend)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/using-a-domain-name-in-a-rails-route/165059 "2009-04-08T18:23:09Z")

</div>

I’m having trouble getting a domain name to be recognized as a valid :id in the following Rails 2.2.2 route. I hope somebody has run across this problem before and can shed some light on why this does not work… route…

---

## [Initializing collection\_select](https://www.ruby-forum.com/t/initializing-collection-select/164906)

<div class="topic-metadata">

**Author:** [@LukeG](https://www.ruby-forum.com/u/LukeG)\
**Replies:** 4\
**Last updated:** [April 8, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/initializing-collection-select/164906 "2009-04-08T18:21:17Z")

</div>

I’m a noob. I’ve trolled the web and groups for help, but I just don’t know enough Rails to apply the solutions to my particular problem. I even got the screencast from Pragmatic Programmers, but still no dice. I’m ha…

---

## [Localization problem in nested-attributes validation](https://www.ruby-forum.com/t/localization-problem-in-nested-attributes-validation/165055)

<div class="topic-metadata">

**Author:** [@benni](https://www.ruby-forum.com/u/benni)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/localization-problem-in-nested-attributes-validation/165055 "2009-04-08T17:58:35Z")

</div>

Hey, I recently run into a problem with the new feature for activerecord: nested attributes. When the nested object (Activist) is invalid, the error messages are shown, but the object name is noch translated. (My pro…

---

## [What does the ' %s ' mean?](https://www.ruby-forum.com/t/what-does-the-s-mean/165043)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 3\
**Last updated:** [April 8, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/what-does-the-s-mean/165043 "2009-04-08T17:15:04Z")

</div>

Hi there, can anyone explain to me how I have to understand the: %s in the following code line: yield :error, “There was a problem resending your activation code, please try again or %s.”, “resend\_activation\_path” W…

---

## [\[ActiveRecord\] strange issue, would like to understand before I wake up](https://www.ruby-forum.com/t/activerecord-strange-issue-would-like-to-understand-before-i-wake-up/165036)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [April 8, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/activerecord-strange-issue-would-like-to-understand-before-i-wake-up/165036 "2009-04-08T17:09:40Z")

</div>

running 2.3.2 simple case (db table created : ‘emails’ with a :type field) I have the following Email model class Email \< ActiveRecord::Base … end class RequestEmail \< Email … end TESTING in the console : s…

---

## [Errors not logged to the screen in dev mode in 2.3.2](https://www.ruby-forum.com/t/errors-not-logged-to-the-screen-in-dev-mode-in-2-3-2/165049)

<div class="topic-metadata">

**Author:** [@nutsmuggler](https://www.ruby-forum.com/u/nutsmuggler)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 4:51pm UTC](https://www.ruby-forum.com/t/errors-not-logged-to-the-screen-in-dev-mode-in-2-3-2/165049 "2009-04-08T16:51:54Z")

</div>

I’ve just upgraded a Rails 2.0.2 app to Rails 2.3.2 to take advantage of the I18n framework. I had to change application.rb \> application\_controller.rb, after that Mongrel launches. Still, I have a problem. Even if I…

---

## [Using builder templates outside of controller](https://www.ruby-forum.com/t/using-builder-templates-outside-of-controller/165048)

<div class="topic-metadata">

**Author:** [@Adriano](https://www.ruby-forum.com/u/Adriano)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 4:49pm UTC](https://www.ruby-forum.com/t/using-builder-templates-outside-of-controller/165048 "2009-04-08T16:49:09Z")

</div>

Hi, I’m using a builder template to generate atom feeds. So far so good, but I’d like to use the template inside a rake task to generate static files every 10 minutes or so. Would anyone care to suggest a Rails idiom…

---

## [Read remote zip](https://www.ruby-forum.com/t/read-remote-zip/164992)

<div class="topic-metadata">

**Author:** [@robredford](https://www.ruby-forum.com/u/robredford)\
**Replies:** 2\
**Last updated:** [April 8, 2009, 4:19pm UTC](https://www.ruby-forum.com/t/read-remote-zip/164992 "2009-04-08T16:19:47Z")

</div>

I’d like to decompress the contents of: http://host.com/file.zip in memory without having to download the file (e.g. wget) first. Suggestions? Rob

---

## [Alternative to render :update](https://www.ruby-forum.com/t/alternative-to-render-update/164890)

<div class="topic-metadata">

**Author:** [@jbaty](https://www.ruby-forum.com/u/jbaty)\
**Replies:** 6\
**Last updated:** [April 8, 2009, 3:59pm UTC](https://www.ruby-forum.com/t/alternative-to-render-update/164890 "2009-04-08T15:59:09Z")

</div>

Hi guys and gals. I don’t know how to explain this too well, so I’ll try my best and post some obviously dysfunctional code (just so you can get the idea of what I’m after if my explanation doesn’t do it.) What I wan…

---

## [Help with acts\_as\_audited](https://www.ruby-forum.com/t/help-with-acts-as-audited/161047)

<div class="topic-metadata">

**Author:** [@di3go](https://www.ruby-forum.com/u/di3go)\
**Replies:** 1\
**Last updated:** [April 8, 2009, 2:58pm UTC](https://www.ruby-forum.com/t/help-with-acts-as-audited/161047 "2009-04-08T14:58:13Z")

</div>

Hi everyone, Im using the plugin acts\_as\_audited to audit my whole program, but i have a problem, when the change is in a association table (has and belongs to many) the change isnt captured by the plugin, anyone kno…

---

## [Rename file name with file\_column plugin](https://www.ruby-forum.com/t/rename-file-name-with-file-column-plugin/165037)

<div class="topic-metadata">

**Author:** [@brijesh](https://www.ruby-forum.com/u/brijesh)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/rename-file-name-with-file-column-plugin/165037 "2009-04-08T14:37:41Z")

</div>

Hi All Is there any way to rename file name during uploaded by file\_column plugin

---

## [Testing RJS](https://www.ruby-forum.com/t/testing-rjs/165025)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 2\
**Last updated:** [April 8, 2009, 2:29pm UTC](https://www.ruby-forum.com/t/testing-rjs/165025 "2009-04-08T14:29:28Z")

</div>

I have some questions about testing RJS. First of all, just generally, how important is testing RJS? It seems, that for effects at least, if I can see that the effect is working, then that is good enough for me? I …

---

## [Localization problem in nested-attributes validation](https://www.ruby-forum.com/t/localization-problem-in-nested-attributes-validation/165035)

<div class="topic-metadata">

**Author:** [@benni](https://www.ruby-forum.com/u/benni)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/localization-problem-in-nested-attributes-validation/165035 "2009-04-08T13:56:34Z")

</div>

Hey, I recently run into a problem with the new feature for activerecord: nested attributes. When the nested object (Activist) is invalid, the error messages are shown, but the object name is noch translated. (My pro…

---

## [Job oppurtunity for Ruby on Rails developers](https://www.ruby-forum.com/t/job-oppurtunity-for-ruby-on-rails-developers/165033)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/job-oppurtunity-for-ruby-on-rails-developers/165033 "2009-04-08T13:56:34Z")

</div>

Hi there, I have job oppurtunities for ruby on rails developers, with one of my client based in London. if you are interested then Email your resume to: removed\_email\_address@domain.invalid

---

## [Help with Redbox Styling and auto-resizing like Lightbox?](https://www.ruby-forum.com/t/help-with-redbox-styling-and-auto-resizing-like-lightbox/165030)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/help-with-redbox-styling-and-auto-resizing-like-lightbox/165030 "2009-04-08T12:45:37Z")

</div>

Hi all, Redbox I think is by far the easiest to implement in Rails as a light- box/modal pop-up solution. Even more so if you want to avoid using JQuery. It would however be sweeter if it has better styling and that …

---

## [Ruby Developer role - upto Â£60k - web 2.0 gr eenfield - London, UK](https://www.ruby-forum.com/t/ruby-developer-role-upto-a-60k-web-2-0-gr-eenfield-london-uk/165029)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 12:45pm UTC](https://www.ruby-forum.com/t/ruby-developer-role-upto-a-60k-web-2-0-gr-eenfield-london-uk/165029 "2009-04-08T12:45:02Z")

</div>

Our exciting new Web 2.0 venture requires 2 strong Ruby-on-Rails gurus who can bring their expertise to our growing team. Main skills required: . Ruby on Rails . MYSQL (or equivalent) . JavaScript using Prototy…

---

## [Export to excel](https://www.ruby-forum.com/t/export-to-excel/165003)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 4\
**Last updated:** [April 8, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/export-to-excel/165003 "2009-04-08T12:40:20Z")

</div>

Hi I have some data to be exported as well as imported to/from my rails application to Excel.Could anybody please point me some good advise on how to do this…Also expect some good links on the same Thanks in advance …

---

## [Export to PDF](https://www.ruby-forum.com/t/export-to-pdf/164248)

<div class="topic-metadata">

**Author:** [@devirv](https://www.ruby-forum.com/u/devirv)\
**Replies:** 3\
**Last updated:** [April 8, 2009, 12:05pm UTC](https://www.ruby-forum.com/t/export-to-pdf/164248 "2009-04-08T12:05:09Z")

</div>

Dear All, How to export a dataset to PDF file. I wrote the following code for exporting a dataset to pdf file. I want the column name and column seperators(leave space for each column),Please find the attatched file, …

---

## [AR.find :include is adding stuff I don't want](https://www.ruby-forum.com/t/ar-find-include-is-adding-stuff-i-dont-want/164999)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 5\
**Last updated:** [April 8, 2009, 11:44am UTC](https://www.ruby-forum.com/t/ar-find-include-is-adding-stuff-i-dont-want/164999 "2009-04-08T11:44:57Z")

</div>

In this code below, ActiveRecord returns data from associations I don’t want. class Article \< ActiveRecord::Base has\_many :extras has\_many :pages, :order =\> ‘sortOrder’ has\_many :assets def get\_list return self…

---

## [Problem with MYSQL after re-installing rails](https://www.ruby-forum.com/t/problem-with-mysql-after-re-installing-rails/164922)

<div class="topic-metadata">

**Author:** [@gavin](https://www.ruby-forum.com/u/gavin)\
**Replies:** 12\
**Last updated:** [April 8, 2009, 11:29am UTC](https://www.ruby-forum.com/t/problem-with-mysql-after-re-installing-rails/164922 "2009-04-08T11:29:55Z")

</div>

Hey all- Re-installed OSX yesterday and with it, Ruby and Rails Now when I try to run db:migrate I get the error message: "!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem…

---

## [Conditionally respond with HTTP redirect for xml\_http\_request](https://www.ruby-forum.com/t/conditionally-respond-with-http-redirect-for-xml-http-request/165010)

<div class="topic-metadata">

**Author:** [@ram](https://www.ruby-forum.com/u/ram)\
**Replies:** 5\
**Last updated:** [April 8, 2009, 10:58am UTC](https://www.ruby-forum.com/t/conditionally-respond-with-http-redirect-for-xml-http-request/165010 "2009-04-08T10:58:15Z")

</div>

Hi all, I have select box in one of my views which lists a few contacts. I also have an option in this select box to add a new contact. There is also an observe\_field hook to this select box that Ajax requests furthe…

---

## [Ultrasphinx::UsageError (Invalid class name "Place")](https://www.ruby-forum.com/t/ultrasphinx-usageerror-invalid-class-name-place/165019)

<div class="topic-metadata">

**Author:** [@marshluca](https://www.ruby-forum.com/u/marshluca)\
**Replies:** 0\
**Last updated:** [April 8, 2009, 10:00am UTC](https://www.ruby-forum.com/t/ultrasphinx-usageerror-invalid-class-name-place/165019 "2009-04-08T10:00:48Z")

</div>

Hi, all … My application can run normally on development environment ,but when i change it to production, I got the problem below: Ultrasphinx::UsageError (Invalid class name “Place”): /vendor/plugins/ultrasphinx/…

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

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