# Rails

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

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

---

## [Dynamically generated CSV files](https://www.ruby-forum.com/t/dynamically-generated-csv-files/157370)

<div class="topic-metadata">

**Author:** [@jpfeifer](https://www.ruby-forum.com/u/jpfeifer)\
**Replies:** 4\
**Last updated:** [January 10, 2009, 4:52am UTC](https://www.ruby-forum.com/t/dynamically-generated-csv-files/157370 "2009-01-10T04:52:01Z")

</div>

Greetings, I have a method from which I want to generate CSV files based on the model name: def export\_table\_to\_csv(table) require ‘csv’ @table = table @results = @table.find(:all) @titles = @table.column\_names re…

---

## [Login redirects that maintain parameter data](https://www.ruby-forum.com/t/login-redirects-that-maintain-parameter-data/157362)

<div class="topic-metadata">

**Author:** [@Jables](https://www.ruby-forum.com/u/Jables)\
**Replies:** 1\
**Last updated:** [January 10, 2009, 3:45am UTC](https://www.ruby-forum.com/t/login-redirects-that-maintain-parameter-data/157362 "2009-01-10T03:45:54Z")

</div>

Hey, I need some advice on something. I have a fairly large and complex website (uberpwner.com) and all authentication I do is done by before filters. Basically before\_filter :login\_required. login\_required does b…

---

## [Removing duplicates from HABTM](https://www.ruby-forum.com/t/removing-duplicates-from-habtm/157372)

<div class="topic-metadata">

**Author:** [@magic\_hat](https://www.ruby-forum.com/u/magic_hat)\
**Replies:** 0\
**Last updated:** [January 10, 2009, 3:41am UTC](https://www.ruby-forum.com/t/removing-duplicates-from-habtm/157372 "2009-01-10T03:41:48Z")

</div>

Hey, folks. I have articles, which have and belong to many tags. For a given article, I need to produce a list of tags and associated articles, but make sure that an associated article doesn’t appear under more than …

---

## [Ruby & Javascript](https://www.ruby-forum.com/t/ruby-javascript/157364)

<div class="topic-metadata">

**Author:** [@Ernesto\_R](https://www.ruby-forum.com/u/Ernesto_R)\
**Replies:** 2\
**Last updated:** [January 10, 2009, 12:10am UTC](https://www.ruby-forum.com/t/ruby-javascript/157364 "2009-01-10T00:10:36Z")

</div>

Hey guys! Does anyone knows how to a ruby program communicate with the Google API, which one is written in Javascript ? I’ve heard something about a wrapper to do the communication, but i didn’t find anything yet. I…

---

## [Accessing params in actionview](https://www.ruby-forum.com/t/accessing-params-in-actionview/157357)

<div class="topic-metadata">

**Author:** [@kfl62](https://www.ruby-forum.com/u/kfl62)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/accessing-params-in-actionview/157357 "2009-01-09T23:15:34Z")

</div>

Hi I need something like : \<% obj = params\[:obj\].find(params\[:obj\_id\]) %\> \<textarea id="mce\_edit" style="height:430px; width:100%;"\> \<%= obj.params\[:obj\_method\] %\> \</textarea\> in a partial. params\[:obj\] and params\[:…

---

## [How to pass parameters to a script in "lib" from terminal](https://www.ruby-forum.com/t/how-to-pass-parameters-to-a-script-in-lib-from-terminal/157358)

<div class="topic-metadata">

**Author:** [@joep](https://www.ruby-forum.com/u/joep)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 10:33pm UTC](https://www.ruby-forum.com/t/how-to-pass-parameters-to-a-script-in-lib-from-terminal/157358 "2009-01-09T22:33:19Z")

</div>

Hi, This should be easy, for some reason I can’t remember how to do it. I have in /lib a file called “joe\_converter.rb” that I want to be able to run from terminal. Here’s the beginning of “joe\_converter.rb”: requi…

---

## [Help figuring out problem with installing activesupport 2.2.2](https://www.ruby-forum.com/t/help-figuring-out-problem-with-installing-activesupport-2-2-2/157353)

<div class="topic-metadata">

**Author:** [@lraiz](https://www.ruby-forum.com/u/lraiz)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/help-figuring-out-problem-with-installing-activesupport-2-2-2/157353 "2009-01-09T21:49:47Z")

</div>

I created a brand new RoR installation on Win XP using InstantRails-2.0 which brought rails 2.0.2. I now struggle to update it to rails 2.2.2. The essence of my problem comes to the installation of activesupport 2.2.2…

---

## [Gem update problem](https://www.ruby-forum.com/t/gem-update-problem/157293)

<div class="topic-metadata">

**Author:** [@konstantin](https://www.ruby-forum.com/u/konstantin)\
**Replies:** 8\
**Last updated:** [January 9, 2009, 9:38pm UTC](https://www.ruby-forum.com/t/gem-update-problem/157293 "2009-01-09T21:38:01Z")

</div>

Hello! I cannot force a new application to run, it cannot update gems to the required version. Could you suggest a solution? $ lsb\_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubu…

---

## [Has\_many :through question](https://www.ruby-forum.com/t/has-many-through-question/157330)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 7:47pm UTC](https://www.ruby-forum.com/t/has-many-through-question/157330 "2009-01-09T19:47:40Z")

</div>

hi, i’m a newbie working on my first commerical rails project. i’ve got some models that i’m stuck with, not sure whether i need to redesign the schema’s or stick to my earlier design as i can quite get what i want f…

---

## [Problem starting rails 2.2.2 - rails/plugin/locator.rb](https://www.ruby-forum.com/t/problem-starting-rails-2-2-2-rails-plugin-locator-rb/157349)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/problem-starting-rails-2-2-2-rails-plugin-locator-rb/157349 "2009-01-09T19:15:19Z")

</div>

hey all We’re planning an upgrade to rails 2.2.2 and i have a branch for this purpose. A guy on our team who set the branch up can run it fine, but i have this problem when i try to start mongrel. /usr/lib/ruby/gems…

---

## [Confused about to\_xml() in ActiveRecord::Base subclass](https://www.ruby-forum.com/t/confused-about-to-xml-in-activerecord-base-subclass/157347)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 7:01pm UTC](https://www.ruby-forum.com/t/confused-about-to-xml-in-activerecord-base-subclass/157347 "2009-01-09T19:01:44Z")

</div>

Since all my efforts to control how to\_xml() is formatting dates has failed, I’m now considering writing my own to\_xml(). However, from the limited examples I’ve found, I just don’t understand how to actually referen…

---

## [How can I tell which transaction each SQL call is in?](https://www.ruby-forum.com/t/how-can-i-tell-which-transaction-each-sql-call-is-in/157324)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/how-can-i-tell-which-transaction-each-sql-call-is-in/157324 "2009-01-09T18:26:33Z")

</div>

hi, I’m trying to debug some transaction related issues in my code: How could I tell which Sql statement (from logs) which transaction (if any) they are in? Grg

---

## [Additional config file like database.yml](https://www.ruby-forum.com/t/additional-config-file-like-database-yml/157335)

<div class="topic-metadata">

**Author:** [@tekhne](https://www.ruby-forum.com/u/tekhne)\
**Replies:** 5\
**Last updated:** [January 9, 2009, 6:17pm UTC](https://www.ruby-forum.com/t/additional-config-file-like-database-yml/157335 "2009-01-09T18:17:44Z")

</div>

I have a web site that accesses Solr (a Lucene based search engine accessed via REST). I would like the configuration to be handled in the same was as database.yml. I envision a file called solr.yml that looks somethi…

---

## [Route to a controller outside of a namespace](https://www.ruby-forum.com/t/route-to-a-controller-outside-of-a-namespace/157348)

<div class="topic-metadata">

**Author:** [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/route-to-a-controller-outside-of-a-namespace/157348 "2009-01-09T18:01:18Z")

</div>

i have a couple controller namespaces in my app and to keep things DRY, i would like to use a common controller in some of them. when i try creating a route, i can not figure out how to set :controller to use a contro…

---

## [Installing Ruby on Rails](https://www.ruby-forum.com/t/installing-ruby-on-rails/157275)

<div class="topic-metadata">

**Author:** [@crazy\_canuck](https://www.ruby-forum.com/u/crazy_canuck)\
**Replies:** 6\
**Last updated:** [January 9, 2009, 5:51pm UTC](https://www.ruby-forum.com/t/installing-ruby-on-rails/157275 "2009-01-09T17:51:16Z")

</div>

I am completely new to all of this. I was told by a potential employer if I learned Ruby on Rails and PostgreSQL I would have a job in 6-9 months. My dilemma is that I cant even seem to install it properly lol. Please…

---

## [1 Page website :)](https://www.ruby-forum.com/t/1-page-website/157313)

<div class="topic-metadata">

**Author:** [@typemismatch](https://www.ruby-forum.com/u/typemismatch)\
**Replies:** 7\
**Last updated:** [January 9, 2009, 5:37pm UTC](https://www.ruby-forum.com/t/1-page-website/157313 "2009-01-09T17:37:07Z")

</div>

Is there a way to create what is basically a 1 page website, something that just does a redirect or a single submit form etc. It seems like an entire Rails site with controllers etc is too much. Maybe something with a…

---

## [Capturing system console information](https://www.ruby-forum.com/t/capturing-system-console-information/157341)

<div class="topic-metadata">

**Author:** [@rmac217](https://www.ruby-forum.com/u/rmac217)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 5:30pm UTC](https://www.ruby-forum.com/t/capturing-system-console-information/157341 "2009-01-09T17:30:23Z")

</div>

Hello, I have a simple web application that executes a .exe program through my controller. The exe program processes some information and displays an output on the script/server output. Is it possible to catch this …

---

## [Is activeresource really slow for find with :conditions?](https://www.ruby-forum.com/t/is-activeresource-really-slow-for-find-with-conditions/157343)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/is-activeresource-really-slow-for-find-with-conditions/157343 "2009-01-09T17:26:58Z")

</div>

I have a DRb process on another machine that communicates with the server. It seems like if I do a find() where I specify a :condition through Act-res it will take very long time and most finds of this sort seem like …

---

## [Problem in following Ruby 'Blog' Screencast](https://www.ruby-forum.com/t/problem-in-following-ruby-blog-screencast/157338)

<div class="topic-metadata">

**Author:** [@michael](https://www.ruby-forum.com/u/michael)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 5:22pm UTC](https://www.ruby-forum.com/t/problem-in-following-ruby-blog-screencast/157338 "2009-01-09T17:22:50Z")

</div>

Hi all, When attempting to follow the screencast, ‘Creating a weblog in 15 minutes with Rails 2’, I’ve hit a problem when creating the ‘partial’. As soon as the index.html.erb, Listing posts \<%= render :partial =\> @…

---

## [Plugin not found: \["acts\_as\_list"\]](https://www.ruby-forum.com/t/plugin-not-found-acts-as-list/156897)

<div class="topic-metadata">

**Author:** [@quangn](https://www.ruby-forum.com/u/quangn)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/plugin-not-found-acts-as-list/156897 "2009-01-09T16:09:49Z")

</div>

I am trying to install acts\_as\_list in a rails 2.2.2 project but when I try the following: ruby script/plugin install acts\_as\_list I get: Plugin not found: \[“acts\_as\_list”\] I had to download the acts\_as\_list plugin …

---

## [Has\_many :through association](https://www.ruby-forum.com/t/has-many-through-association/157332)

<div class="topic-metadata">

**Author:** [@heldopslippers](https://www.ruby-forum.com/u/heldopslippers)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 3:52pm UTC](https://www.ruby-forum.com/t/has-many-through-association/157332 "2009-01-09T15:52:28Z")

</div>

Hee people, I have the following problem: I have the following tables: groups: t.string :title rights: t.integer :group\_id t.integer :menu\_id t.boolean :see t.boolean :edit menus: t.string :title when you cre…

---

## [Oracle date problems, and how to make "alter session" work](https://www.ruby-forum.com/t/oracle-date-problems-and-how-to-make-alter-session-work/157301)

<div class="topic-metadata">

**Author:** [@michael\_teter](https://www.ruby-forum.com/u/michael_teter)\
**Replies:** 7\
**Last updated:** [January 9, 2009, 3:26pm UTC](https://www.ruby-forum.com/t/oracle-date-problems-and-how-to-make-alter-session-work/157301 "2009-01-09T15:26:11Z")

</div>

Howdy. Something change recently (Oracle upgrade and/or new gem) that’s causing ActiveRecord to give me very unfriendly dates from Oracle. I believe the old dates I was getting were “YYYY-MM-DD”. The ones I’m gettin…

---

## [ID and Archiving in Rails](https://www.ruby-forum.com/t/id-and-archiving-in-rails/157333)

<div class="topic-metadata">

**Author:** [@manohar\_amrutkar](https://www.ruby-forum.com/u/manohar_amrutkar)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 3:25pm UTC](https://www.ruby-forum.com/t/id-and-archiving-in-rails/157333 "2009-01-09T15:25:01Z")

</div>

Hi All, I have created a table “record\_archives” using engine=archive in my application to archive data for a table “records”. I want to insert data into archived table at specific time, like once in a week. I have c…

---

## [Rails 2.2 routing problem](https://www.ruby-forum.com/t/rails-2-2-routing-problem/157148)

<div class="topic-metadata">

**Author:** [@roa](https://www.ruby-forum.com/u/roa)\
**Replies:** 2\
**Last updated:** [January 9, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/rails-2-2-routing-problem/157148 "2009-01-09T15:02:50Z")

</div>

Hi all I just upgraded a project of mine from rails 2.1 to 2.2. Becouse of this upgrade, I have a link that doesn’t work anymore. I get an error when rendering the page: outgoing\_invoice\_url failed to generate from {…

---

## [Is there any way to let the user edit the stylesheet file?](https://www.ruby-forum.com/t/is-there-any-way-to-let-the-user-edit-the-stylesheet-file/157289)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/is-there-any-way-to-let-the-user-edit-the-stylesheet-file/157289 "2009-01-09T14:03:09Z")

</div>

I’m curious how to let the user edit the public/stylesheets/site.css file through views (e.g., http://localhost/admin/edit\_stylesheet). Do you know what steps I should take, or is there any documentation on how to do …

---

## [Authorize.Net Gateway using ActiveMerchant](https://www.ruby-forum.com/t/authorize-net-gateway-using-activemerchant/157328)

<div class="topic-metadata">

**Author:** [@kumar\_a](https://www.ruby-forum.com/u/kumar_a)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 1:06pm UTC](https://www.ruby-forum.com/t/authorize-net-gateway-using-activemerchant/157328 "2009-01-09T13:06:53Z")

</div>

Hi, In my application, I am using Authorize.Net Gateway using ActiveMerchant. I changed the “ActiveMerchant::Billing::Base.mode” to :production. I am getting “successfully transferred” message. But actual banking tr…

---

## [Regarding Pay Pal integration](https://www.ruby-forum.com/t/regarding-pay-pal-integration/157310)

<div class="topic-metadata">

**Author:** [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 12:36pm UTC](https://www.ruby-forum.com/t/regarding-pay-pal-integration/157310 "2009-01-09T12:36:06Z")

</div>

Hi all… I am new to ror and i want to add pay pal (paying system) option to the site. now i use xp env… i run the application in Rails version 1.2.6 and Ruby Version 1.8.6. I have the merchant a/c for pay pal My qu…

---

## [You have a nil object when you didn't expect it!](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/157318)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 3\
**Last updated:** [January 9, 2009, 12:00pm UTC](https://www.ruby-forum.com/t/you-have-a-nil-object-when-you-didnt-expect-it/157318 "2009-01-09T12:00:05Z")

</div>

\<% if @flash\[:error\] %\> \<%= @flash\[:error\] %\> \<% end %\> \<% if @flash\[:warning\] %\> \<%= @flash\[:warning\] %\> \<% end %\> \<% if @flash\[:notice\] %\> \<%= @flash\[:notice\] %\> \<% end %\> You have a nil object when you didn’…

---

## [Using yaml\_db plugin on windows](https://www.ruby-forum.com/t/using-yaml-db-plugin-on-windows/157315)

<div class="topic-metadata">

**Author:** [@ambarja](https://www.ruby-forum.com/u/ambarja)\
**Replies:** 0\
**Last updated:** [January 9, 2009, 10:33am UTC](https://www.ruby-forum.com/t/using-yaml-db-plugin-on-windows/157315 "2009-01-09T10:33:43Z")

</div>

Hi, I’ve tried installing yaml\_db on a winxp machine. installation seemed fine: ruby script\\plugin install git://github.com/adamwiggins/yaml\_db.git - was ok but when i am trying to run rake db:dump i am getting: …

---

## [Update specific div using post request](https://www.ruby-forum.com/t/update-specific-div-using-post-request/157123)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 1\
**Last updated:** [January 9, 2009, 10:33am UTC](https://www.ruby-forum.com/t/update-specific-div-using-post-request/157123 "2009-01-09T10:33:42Z")

</div>

It is possible to update specific div in my rhtml file using post request like ajax do?

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

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