# Rails

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

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

---

## [Passenger and phpmyadmin](https://www.ruby-forum.com/t/passenger-and-phpmyadmin/141646)

<div class="topic-metadata">

**Author:** [@giorgio](https://www.ruby-forum.com/u/giorgio)\
**Replies:** 4\
**Last updated:** [June 28, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/passenger-and-phpmyadmin/141646 "2008-06-28T19:22:09Z")

</div>

Hi, I have switched from mongrel to passenger and need to get my apache config working correctly. I used to have “ProxyPass /phpmyadmin !” and mongrel didnt try to process it. How do I get apache to know the /phpmya…

---

## [Prototype(javascript) or Ajax?](https://www.ruby-forum.com/t/prototype-javascript-or-ajax/141644)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 2\
**Last updated:** [June 28, 2008, 7:15pm UTC](https://www.ruby-forum.com/t/prototype-javascript-or-ajax/141644 "2008-06-28T19:15:07Z")

</div>

I’m wondering what would be appropriate for the scenario I have: I am using the DynamicCalendarHelper which generates a beautiful html calendar with css. The goal is to be able to click on an individual day and have …

---

## [Forms Collecting data and basic ruby concept](https://www.ruby-forum.com/t/forms-collecting-data-and-basic-ruby-concept/136311)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 3\
**Last updated:** [June 28, 2008, 5:34pm UTC](https://www.ruby-forum.com/t/forms-collecting-data-and-basic-ruby-concept/136311 "2008-06-28T17:34:22Z")

</div>

i am not grasping a very basic concept here. i have 3 models A, B, C i have a form that is created via controller A but i need to put the data in model B, C so all the input fields belong to either B or C how can i …

---

## [Using gems:unpack into vendor/gems still requires the gems to be installed via gems:install](https://www.ruby-forum.com/t/using-gems-unpack-into-vendor-gems-still-requires-the-gems-to-be-installed-via-gems-install/141546)

<div class="topic-metadata">

**Author:** [@ben-oakes](https://www.ruby-forum.com/u/ben-oakes)\
**Replies:** 4\
**Last updated:** [June 28, 2008, 3:43pm UTC](https://www.ruby-forum.com/t/using-gems-unpack-into-vendor-gems-still-requires-the-gems-to-be-installed-via-gems-install/141546 "2008-06-28T15:43:08Z")

</div>

Maybe I’m missing something, but why do gem dependencies that have been unpacked into vendor/gems have to be installed on the machine as well? This doesn’t make much sense to me – if the gems are already on the machi…

---

## [Contact Importer](https://www.ruby-forum.com/t/contact-importer/117485)

<div class="topic-metadata">

**Author:** [@jetienne](https://www.ruby-forum.com/u/jetienne)\
**Replies:** 2\
**Last updated:** [June 28, 2008, 9:12am UTC](https://www.ruby-forum.com/t/contact-importer/117485 "2008-06-28T09:12:54Z")

</div>

Hi, I am looking for a contact importer plugin (gmail, hotmail, …) “a la” facebook/myspace. Please let me know if someone as implemented such solution. Jean-Etienne

---

## [Free ruby on rails hosting](https://www.ruby-forum.com/t/free-ruby-on-rails-hosting/141122)

<div class="topic-metadata">

**Author:** [@Prasanna\_kumar\_N](https://www.ruby-forum.com/u/Prasanna_kumar_N)\
**Replies:** 10\
**Last updated:** [June 28, 2008, 8:58am UTC](https://www.ruby-forum.com/t/free-ruby-on-rails-hosting/141122 "2008-06-28T08:58:07Z")

</div>

Hi I have a ror app ready…i have tested it on my local machine using webrick. Now i need to test it on the net. Please let me know a site which offers free ROR hosting. YES i did search this forum on this topic befo…

---

## [Switching from VARCHAR(255) to a blob](https://www.ruby-forum.com/t/switching-from-varchar-255-to-a-blob/141643)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 1\
**Last updated:** [June 28, 2008, 8:20am UTC](https://www.ruby-forum.com/t/switching-from-varchar-255-to-a-blob/141643 "2008-06-28T08:20:07Z")

</div>

i have a comments thread setup but i initial set the datatype to VARCHAR(255). if i wanted to allow users to post more than 256 characters…what is the best way to do this? should i change the data type to a blob? wo…

---

## [Confirm option on submit\_tag -- not working](https://www.ruby-forum.com/t/confirm-option-on-submit-tag-not-working/141618)

<div class="topic-metadata">

**Author:** [@djlewis](https://www.ruby-forum.com/u/djlewis)\
**Replies:** 2\
**Last updated:** [June 28, 2008, 7:59am UTC](https://www.ruby-forum.com/t/confirm-option-on-submit-tag-not-working/141618 "2008-06-28T07:59:05Z")

</div>

I’m getting an incorrect result with the confirm option of submit buttons. This source… \<%= button\_to "Submit entire questionnaire", {}, :confirm =\> "Are you sure? You will not be able to make any more changes."…

---

## [Can I use ROR For my project?](https://www.ruby-forum.com/t/can-i-use-ror-for-my-project/141615)

<div class="topic-metadata">

**Author:** [@chengpan](https://www.ruby-forum.com/u/chengpan)\
**Replies:** 1\
**Last updated:** [June 28, 2008, 7:42am UTC](https://www.ruby-forum.com/t/can-i-use-ror-for-my-project/141615 "2008-06-28T07:42:08Z")

</div>

Hello, I am new to ROR and was wondering if it is a viable solution to my project. I currently have a VB 6 application that is used to query a sql database and then dump into an excel or pdf file. My question is, how …

---

## [Acts\_as\_list plugin not error in production](https://www.ruby-forum.com/t/acts-as-list-plugin-not-error-in-production/141629)

<div class="topic-metadata">

**Author:** [@jeremySpinnix](https://www.ruby-forum.com/u/jeremySpinnix)\
**Replies:** 2\
**Last updated:** [June 28, 2008, 5:53am UTC](https://www.ruby-forum.com/t/acts-as-list-plugin-not-error-in-production/141629 "2008-06-28T05:53:23Z")

</div>

I’m having an issue where acts\_as\_list is not being loaded. I have it in my vendor/plugins dir and it works great in dev mode. But after deployment using Capistrano I am getting the following error in production: Name…

---

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

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 1\
**Last updated:** [June 28, 2008, 5:38am UTC](https://www.ruby-forum.com/t/has-many-through-relation-data/141638 "2008-06-28T05:38:46Z")

</div>

Hi, I have the regular has\_many through setup: user: has\_many subscriptions has\_many magazines, through subscriptions subscription holds important data like expiration date and other pieces of information. I am lo…

---

## [Ticket tracking (ie: bugzilla / trac )?](https://www.ruby-forum.com/t/ticket-tracking-ie-bugzilla-trac/141645)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 3\
**Last updated:** [June 28, 2008, 5:21am UTC](https://www.ruby-forum.com/t/ticket-tracking-ie-bugzilla-trac/141645 "2008-06-28T05:21:49Z")

</div>

I am looking for a simple ticket tracking system for a Rails project of mine. Doesn’t have to be too fancy, what are others using out there? My only requirement is that it is easy to setup and won’t take much time ma…

---

## [Capistrano 2.1.0; using /u/apps even though deploy\_to set](https://www.ruby-forum.com/t/capistrano-2-1-0-using-u-apps-even-though-deploy-to-set/122442)

<div class="topic-metadata">

**Author:** [@paul-au](https://www.ruby-forum.com/u/paul-au)\
**Replies:** 5\
**Last updated:** [June 28, 2008, 4:55am UTC](https://www.ruby-forum.com/t/capistrano-2-1-0-using-u-apps-even-though-deploy-to-set/122442 "2008-06-28T04:55:34Z")

</div>

Hi, I am trying to use Capistrano, version 2.1.0, to do a deploy to a local server and things seemed to be going well; I can capify the application, I can run cap deploy:setup and it creates the needed directories in …

---

## [RoR Monitoring Solutions](https://www.ruby-forum.com/t/ror-monitoring-solutions/141624)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 3\
**Last updated:** [June 28, 2008, 4:36am UTC](https://www.ruby-forum.com/t/ror-monitoring-solutions/141624 "2008-06-28T04:36:14Z")

</div>

Good Afternoon My Friends, I was testing out RPM by NewRelic and I really like it but to watch 20 mongrels on 3 servers it is going to cost me $250/month which is almost 50% of my hosting costs which if you ask me is…

---

## [Avoiding RAILS\_ENV](https://www.ruby-forum.com/t/avoiding-rails-env/141617)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 4\
**Last updated:** [June 28, 2008, 2:21am UTC](https://www.ruby-forum.com/t/avoiding-rails-env/141617 "2008-06-28T02:21:10Z")

</div>

How do I avoid adding: export RAILS\_ENV=‘production’ How do I avoid setting my environment globally as production? I have two sites on the same server: /www/stage.example.com /www/test.excample.com Both apps are us…

---

## [Redirect\_to doesn't stop rest of page processing?](https://www.ruby-forum.com/t/redirect-to-doesnt-stop-rest-of-page-processing/141631)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 2\
**Last updated:** [June 28, 2008, 1:34am UTC](https://www.ruby-forum.com/t/redirect-to-doesnt-stop-rest-of-page-processing/141631 "2008-06-28T01:34:59Z")

</div>

I’ve checked my books, google, API… I don’t get it. A redirect\_to doesn’t really start a wholly new request. Code after a redirect\_to still gets processed. The original request code isn’t terminated. A) what’s the sen…

---

## [How to define routes for resource that belongs to multiple resources?](https://www.ruby-forum.com/t/how-to-define-routes-for-resource-that-belongs-to-multiple-resources/141159)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [June 28, 2008, 1:11am UTC](https://www.ruby-forum.com/t/how-to-define-routes-for-resource-that-belongs-to-multiple-resources/141159 "2008-06-28T01:11:37Z")

</div>

Say I have resource comment that belongs to resources post and blog. I know that to nest comment into say, post would look like this: map.resources :posts do |post| post.resources :comments end However, if I wanted …

---

## [Ruby in html.erb files](https://www.ruby-forum.com/t/ruby-in-html-erb-files/141579)

<div class="topic-metadata">

**Author:** [@amrita](https://www.ruby-forum.com/u/amrita)\
**Replies:** 6\
**Last updated:** [June 27, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/ruby-in-html-erb-files/141579 "2008-06-27T23:52:33Z")

</div>

I have just started learning Rails and Ruby. I have succeeded in building an application so far. However, recently I tried embedding some ruby code in one of my html.erb files with the intention of further formatting …

---

## [Getting environment?](https://www.ruby-forum.com/t/getting-environment/141628)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/getting-environment/141628 "2008-06-27T23:01:38Z")

</div>

How do I get the environment my app is running in from with rails? I want to add a small note in the footer for test.example.com and stage.example.com environments. – Anthony E. 408-656-2473 http://anthony.ettinge…

---

## [Counting number of views on a image](https://www.ruby-forum.com/t/counting-number-of-views-on-a-image/141626)

<div class="topic-metadata">

**Author:** [@nishi](https://www.ruby-forum.com/u/nishi)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/counting-number-of-views-on-a-image/141626 "2008-06-27T22:53:24Z")

</div>

Can anyone suggest me how to calculate the number of views on a particular image (which stored in a blob at database)?

---

## [Active Record Prepare SQL](https://www.ruby-forum.com/t/active-record-prepare-sql/141604)

<div class="topic-metadata">

**Author:** [@Jorg\_L](https://www.ruby-forum.com/u/Jorg_L)\
**Replies:** 5\
**Last updated:** [June 27, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/active-record-prepare-sql/141604 "2008-06-27T22:34:08Z")

</div>

Would it be possiblein the future to see Active Record generate Prepare and Bind SQL statements rather than passing literals to the DB?

---

## [Exporting MySQL to sqlite3](https://www.ruby-forum.com/t/exporting-mysql-to-sqlite3/137931)

<div class="topic-metadata">

**Author:** [@neil](https://www.ruby-forum.com/u/neil)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/exporting-mysql-to-sqlite3/137931 "2008-06-27T21:56:02Z")

</div>

I’ve been learning/developing with MySQL, and I’ve also taken up using Git. Firstly, am I right in presuming that I could rely on Git to version a database if I’m using sqlite3, i.e. in a file within the Rails app fol…

---

## [Multiple databases and establishing associations](https://www.ruby-forum.com/t/multiple-databases-and-establishing-associations/141237)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 6\
**Last updated:** [June 27, 2008, 9:12pm UTC](https://www.ruby-forum.com/t/multiple-databases-and-establishing-associations/141237 "2008-06-27T21:12:08Z")

</div>

Hi, Rails 1.2.6 I’ve got two models from two different databases that I wish to associate if possible. The association is not based on a primary key for either model, but on a “job\_number” field that both tables have …

---

## [Filtering a Database](https://www.ruby-forum.com/t/filtering-a-database/141610)

<div class="topic-metadata">

**Author:** [@McLobster](https://www.ruby-forum.com/u/McLobster)\
**Replies:** 4\
**Last updated:** [June 27, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/filtering-a-database/141610 "2008-06-27T20:32:18Z")

</div>

Hey there, In my rails app, I need to filter a database and print the results. Initially, when you load the web page, all the results are listed in all their non filtered glory. So what I’ve done is added a button and …

---

## [Replace REXML with Hpricot](https://www.ruby-forum.com/t/replace-rexml-with-hpricot/141540)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 20\
**Last updated:** [June 27, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/replace-rexml-with-hpricot/141540 "2008-06-27T19:51:01Z")

</div>

Hi, is there any way to replace REXML with Hpricot for rendering XML? I am using Jruby so cant use libxml, and need to significantly increase the speed of XML rendering. Thanks Adam

---

## [Problem running migration](https://www.ruby-forum.com/t/problem-running-migration/141580)

<div class="topic-metadata">

**Author:** [@Rafael\_Chacon](https://www.ruby-forum.com/u/Rafael_Chacon)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 7:50pm UTC](https://www.ruby-forum.com/t/problem-running-migration/141580 "2008-06-27T19:50:26Z")

</div>

Hi, I’m trying to run a set of migration which brings data from a legacy project. The legacy project is on production and have lots of data. So, during the time the migration keep allocating and allocating memory unti…

---

## [NoMethodError in Classified#create nil object](https://www.ruby-forum.com/t/nomethoderror-in-classified-create-nil-object/89169)

<div class="topic-metadata">

**Author:** [@riottype](https://www.ruby-forum.com/u/riottype)\
**Replies:** 4\
**Last updated:** [June 27, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-classified-create-nil-object/89169 "2008-06-27T18:41:52Z")

</div>

I’m following along the tutorials of a book (Rails Solutions: Ruby on Rails made easy) and I’ve come to a part that I can’t seem to figure out. I’m trying to implement validation for file uploads (make sure upload is …

---

## [Loading data from yml produces strange result?](https://www.ruby-forum.com/t/loading-data-from-yml-produces-strange-result/141609)

<div class="topic-metadata">

**Author:** [@traceyz](https://www.ruby-forum.com/u/traceyz)\
**Replies:** 3\
**Last updated:** [June 27, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/loading-data-from-yml-produces-strange-result/141609 "2008-06-27T17:53:51Z")

</div>

I have a yml file of states of the US and Canada. I am loading them into a State model. State is defined with a migration t.column :name, :string t.column :abbrev :string In my file states.yml, I have entries of thi…

---

## [Building/editing topology diagrams - any ideas/advice?](https://www.ruby-forum.com/t/building-editing-topology-diagrams-any-ideas-advice/141603)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [June 27, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/building-editing-topology-diagrams-any-ideas-advice/141603 "2008-06-27T16:28:56Z")

</div>

Hi, I’d like to build a web application that is capable of displaying & editing topology diagram (e.g. a network diagram with applications too). Effectively to have a graphically web based means of allowing a user to …

---

## [Concerns on gathering a large query](https://www.ruby-forum.com/t/concerns-on-gathering-a-large-query/141596)

<div class="topic-metadata">

**Author:** [@scottc12](https://www.ruby-forum.com/u/scottc12)\
**Replies:** 5\
**Last updated:** [June 27, 2008, 4:28pm UTC](https://www.ruby-forum.com/t/concerns-on-gathering-a-large-query/141596 "2008-06-27T16:28:21Z")

</div>

Question - When a large sql query is run and it returns to a @results array how large can this be? Is there a better method of storing this info? I can limit the Browsers display with Pagination but I’m concerned on …

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

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