# Rails

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

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

---

## [N00b Help](https://www.ruby-forum.com/t/n00b-help/106291)

<div class="topic-metadata">

**Author:** [@bashobuddha](https://www.ruby-forum.com/u/bashobuddha)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 5:05am UTC](https://www.ruby-forum.com/t/n00b-help/106291 "2007-06-08T05:05:59Z")

</div>

Hi everyone, I am a guy who can handle ftp/css/html and such. I am trying to setup a forum site for some buddies and i really like what i saw out of beast (http://beast.caboo.se/). I would like to set up a site that…

---

## [Linking to a form submit](https://www.ruby-forum.com/t/linking-to-a-form-submit/106280)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 3:10am UTC](https://www.ruby-forum.com/t/linking-to-a-form-submit/106280 "2007-06-08T03:10:04Z")

</div>

Hi, I have a form that looks like this, and it works fine: \<% form\_for :search\_term, :url =\> { :action =\> :search} do |f| %\> \<%= f.text\_field ‘search\_term’ %\> \<%= submit\_tag ‘Search’ %\> \<% end %\> I want to make a…

---

## [\[ANN\] Climber.com - RoR employment Website](https://www.ruby-forum.com/t/ann-climber-com-ror-employment-website/106283)

<div class="topic-metadata">

**Author:** [@Mingle](https://www.ruby-forum.com/u/Mingle)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 2:56am UTC](https://www.ruby-forum.com/t/ann-climber-com-ror-employment-website/106283 "2007-06-08T02:56:27Z")

</div>

We have launched our Ruby on Rails and Ajax employment website and we’d like to share it with you all. Online employment match service written in Ruby on Rails and Ajax, Climber.com helps busy professionals land the p…

---

## [How do I load csv data into a new Rails app through the cont](https://www.ruby-forum.com/t/how-do-i-load-csv-data-into-a-new-rails-app-through-the-cont/106062)

<div class="topic-metadata">

**Author:** [@mjt](https://www.ruby-forum.com/u/mjt)\
**Replies:** 12\
**Last updated:** [June 8, 2007, 2:55am UTC](https://www.ruby-forum.com/t/how-do-i-load-csv-data-into-a-new-rails-app-through-the-cont/106062 "2007-06-08T02:55:03Z")

</div>

Hi all, I have a need to preload 900 user names into a new Rails app. I have used the console to load the initial admin user and passwoard as in the Pragmatic Programmers book “Active Development …” Ed 2 page 162. N…

---

## [Sending Email from localhost and Dreamhost](https://www.ruby-forum.com/t/sending-email-from-localhost-and-dreamhost/106254)

<div class="topic-metadata">

**Author:** [@noob](https://www.ruby-forum.com/u/noob)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 2:48am UTC](https://www.ruby-forum.com/t/sending-email-from-localhost-and-dreamhost/106254 "2007-06-08T02:48:02Z")

</div>

Hi I am currently developing on my local machine. I also have an account with Dreamhost. However, I trying to send an email from my localhost, using my dreamhost smtp account. I followed http://wiki.rubyonrails.org/…

---

## [Controller variables in layout](https://www.ruby-forum.com/t/controller-variables-in-layout/106279)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 2\
**Last updated:** [June 8, 2007, 2:29am UTC](https://www.ruby-forum.com/t/controller-variables-in-layout/106279 "2007-06-08T02:29:01Z")

</div>

This is probably simple to most of the experts here, but what is the best way to set variables to be used by a layout? Obviously, it shouldn’t be in each routine in the controller as that would have to be duplicated i…

---

## [ActiveRecord: Dynamically-named tables sharing a common mode](https://www.ruby-forum.com/t/activerecord-dynamically-named-tables-sharing-a-common-mode/106151)

<div class="topic-metadata">

**Author:** [@Jim\_Stewart](https://www.ruby-forum.com/u/Jim_Stewart)\
**Replies:** 3\
**Last updated:** [June 8, 2007, 2:03am UTC](https://www.ruby-forum.com/t/activerecord-dynamically-named-tables-sharing-a-common-mode/106151 "2007-06-08T02:03:59Z")

</div>

I’ve got a legacy database that I’m trying to model in ActiveRecord. The database consists of many pairs of tables (e.g. Foo\_Sources and Foo\_Procedures, Bar\_Sources and Bar\_Procedures). There will be multiple pairs o…

---

## [A \*very\* noob question](https://www.ruby-forum.com/t/a-very-noob-question/106270)

<div class="topic-metadata">

**Author:** [@Davi](https://www.ruby-forum.com/u/Davi)\
**Replies:** 2\
**Last updated:** [June 8, 2007, 1:15am UTC](https://www.ruby-forum.com/t/a-very-noob-question/106270 "2007-06-08T01:15:52Z")

</div>

Hi all… I’m new to Ruby, coming from PHP. Does Ruby (on Rails?) has any function library like php.net? If has, is this the api.rubyonrails.com ? TIA – Davi V. removed\_email\_address@domain.invalid removed\_email\_a…

---

## [Is it possible to pass a parameter to a rjs template?](https://www.ruby-forum.com/t/is-it-possible-to-pass-a-parameter-to-a-rjs-template/106273)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 12:40am UTC](https://www.ruby-forum.com/t/is-it-possible-to-pass-a-parameter-to-a-rjs-template/106273 "2007-06-08T00:40:49Z")

</div>

If so, how? Thanks, Scott

---

## [Search results](https://www.ruby-forum.com/t/search-results/106272)

<div class="topic-metadata">

**Author:** [@ciroval](https://www.ruby-forum.com/u/ciroval)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 12:08am UTC](https://www.ruby-forum.com/t/search-results/106272 "2007-06-08T00:08:47Z")

</div>

Hi, I am new to Ruby, I am a Java expert. I don’t know how to handle the results of a search… I have read a lot, but nobody seems to give examples of that. Do I get an ArrayList from a Table? Do I get fields? How ca…

---

## [Looking for Host](https://www.ruby-forum.com/t/looking-for-host/106255)

<div class="topic-metadata">

**Author:** [@looking](https://www.ruby-forum.com/u/looking)\
**Replies:** 4\
**Last updated:** [June 7, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/looking-for-host/106255 "2007-06-07T23:21:43Z")

</div>

I’m looking for a good RoR. I heard good things about Joyent. Any other hosts people recommend?

---

## [Storing data for frequently changing forms, how?](https://www.ruby-forum.com/t/storing-data-for-frequently-changing-forms-how/106247)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 6\
**Last updated:** [June 7, 2007, 11:01pm UTC](https://www.ruby-forum.com/t/storing-data-for-frequently-changing-forms-how/106247 "2007-06-07T23:01:40Z")

</div>

I’m working on a system that has many different forms (ie. Application, Review, Amendment, etc.) and the questions on those forms are presented to the user and they fill it out as necessary. The questions on those fo…

---

## [How to use mysql in rails](https://www.ruby-forum.com/t/how-to-use-mysql-in-rails/106266)

<div class="topic-metadata">

**Author:** [@DBC\_User](https://www.ruby-forum.com/u/DBC_User)\
**Replies:** 2\
**Last updated:** [June 7, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/how-to-use-mysql-in-rails/106266 "2007-06-07T22:48:38Z")

</div>

I am looking for some documentation on how to use mysql in rails. Only command I know is ‘model.find’ this will find the row by primary key. I would like to read about all the other commands available to me to use. I…

---

## [Newbie question on activerecord](https://www.ruby-forum.com/t/newbie-question-on-activerecord/106216)

<div class="topic-metadata">

**Author:** [@DBC\_User](https://www.ruby-forum.com/u/DBC_User)\
**Replies:** 3\
**Last updated:** [June 7, 2007, 10:36pm UTC](https://www.ruby-forum.com/t/newbie-question-on-activerecord/106216 "2007-06-07T22:36:37Z")

</div>

I am an new to Rails. I created a simple web app called test and database called test with ‘People’ table. Then I did scaffold of Person and everything is fine. I was able to go to the index page and from there I was …

---

## [How to get Subversion working with Apache](https://www.ruby-forum.com/t/how-to-get-subversion-working-with-apache/106037)

<div class="topic-metadata">

**Author:** [@random52k](https://www.ruby-forum.com/u/random52k)\
**Replies:** 3\
**Last updated:** [June 7, 2007, 10:15pm UTC](https://www.ruby-forum.com/t/how-to-get-subversion-working-with-apache/106037 "2007-06-07T22:15:05Z")

</div>

ok, I know how to create a Virtual Server with Apache I know how to create a file:// repository and import and update code. But my next step is to get Subversion working with Apache so that I can access my repository…

---

## [What's the scoop with caching with Apache/Mongrel?](https://www.ruby-forum.com/t/whats-the-scoop-with-caching-with-apache-mongrel/106260)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 9:54pm UTC](https://www.ruby-forum.com/t/whats-the-scoop-with-caching-with-apache-mongrel/106260 "2007-06-07T21:54:31Z")

</div>

I am new at this, but just setup an apache server to front my mongrel box, which is running mongrel cluster. My question is which method is best for caching? Apache, rails, both? -Adam

---

## [Servlet in RubyOnRails](https://www.ruby-forum.com/t/servlet-in-rubyonrails/106246)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [June 7, 2007, 9:52pm UTC](https://www.ruby-forum.com/t/servlet-in-rubyonrails/106246 "2007-06-07T21:52:30Z")

</div>

Hi, I want to develop a controller which acts like a servlet in java. That means it doesn’t have any views associated with it, it just waits for requests and treats those requests. Though it’s not a web service becau…

---

## [Multiple layers nested has\_many through](https://www.ruby-forum.com/t/multiple-layers-nested-has-many-through/106257)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/multiple-layers-nested-has-many-through/106257 "2007-06-07T21:51:10Z")

</div>

I’ve seen previous posts finding ways to do multiple has\_many :through assocations like the following class A \< ActiveRecord::Base end

---

## [Using rails with proxy problem](https://www.ruby-forum.com/t/using-rails-with-proxy-problem/106137)

<div class="topic-metadata">

**Author:** [@mly](https://www.ruby-forum.com/u/mly)\
**Replies:** 9\
**Last updated:** [June 7, 2007, 9:42pm UTC](https://www.ruby-forum.com/t/using-rails-with-proxy-problem/106137 "2007-06-07T21:42:22Z")

</div>

i’m trying to tell rails to use a proxy, but i’m getting an error at the command line, does anybody know what this means? C:\\InstantRails\>gem install rails --include-dependencies --http-proxy http://int ernet.mywebsi…

---

## [Hide html tags and show correct format](https://www.ruby-forum.com/t/hide-html-tags-and-show-correct-format/106253)

<div class="topic-metadata">

**Author:** [@surfman](https://www.ruby-forum.com/u/surfman)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/hide-html-tags-and-show-correct-format/106253 "2007-06-07T21:28:15Z")

</div>

I am using dojo widget to accept data users input. it will add some html tag into the text saved. like, when a user press enter to create a new line, it will create a tag \< br \>, when I tried showing the saved text to…

---

## [Libraries referencing models?](https://www.ruby-forum.com/t/libraries-referencing-models/106251)

<div class="topic-metadata">

**Author:** [@isopaleocopria](https://www.ruby-forum.com/u/isopaleocopria)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 9:12pm UTC](https://www.ruby-forum.com/t/libraries-referencing-models/106251 "2007-06-07T21:12:22Z")

</div>

I have been perusing the source code for instiki (http:// Instiki Casino - Premium Casino Blog Listing - Instiki Casino) and noticed that in some of the library classes, there are references to model classes. And of co…

---

## [Has\_many before saving record](https://www.ruby-forum.com/t/has-many-before-saving-record/106248)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 9:09pm UTC](https://www.ruby-forum.com/t/has-many-before-saving-record/106248 "2007-06-07T21:09:22Z")

</div>

I am currently creating a small app that can be simplified as follows: An Album that has\_many AlbumTracks An AlbumTrack that belongs\_to an Album The user will create a new album - that is - not currently saved in the…

---

## [Pagination is ignoring my RESTful routes?](https://www.ruby-forum.com/t/pagination-is-ignoring-my-restful-routes/106245)

<div class="topic-metadata">

**Author:** [@bravedave](https://www.ruby-forum.com/u/bravedave)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 8:29pm UTC](https://www.ruby-forum.com/t/pagination-is-ignoring-my-restful-routes/106245 "2007-06-07T20:29:17Z")

</div>

My routes for parent = project and child = portal looks like this: map.resources :projects do |projects| projects.resources :portals, :name\_prefix =\> “project\_” end In my portals=index I have the following Pagination…

---

## [How to use subdomains to represent sections?](https://www.ruby-forum.com/t/how-to-use-subdomains-to-represent-sections/106169)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 4\
**Last updated:** [June 7, 2007, 8:28pm UTC](https://www.ruby-forum.com/t/how-to-use-subdomains-to-represent-sections/106169 "2007-06-07T20:28:17Z")

</div>

I have a website that has 3 main sections: Tickets Company (About Us) Admin I would prefer to use subdomains for these sections: tickets.whatever.com, company.whatever.com The problem though is that I need a specifi…

---

## [Check to see if a num is Negative](https://www.ruby-forum.com/t/check-to-see-if-a-num-is-negative/106227)

<div class="topic-metadata">

**Author:** [@freewolf](https://www.ruby-forum.com/u/freewolf)\
**Replies:** 13\
**Last updated:** [June 7, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/check-to-see-if-a-num-is-negative/106227 "2007-06-07T20:24:31Z")

</div>

Hey Gents, Is there anything that will allow me to determine if a variable is a positive or negative number?? I have this line: difference = list\_stripes.planned.to\_i - list\_stripes.spent.to\_i And then I want to che…

---

## [Convert unix time to mysql datetime](https://www.ruby-forum.com/t/convert-unix-time-to-mysql-datetime/106224)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [June 7, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/convert-unix-time-to-mysql-datetime/106224 "2007-06-07T20:14:14Z")

</div>

Hi, I have a unix timestamp in an xml feed that I want to convert to a mysql datetime before I put it into my database. Any hints? Charlie

---

## [Functional Tests Fail - No URL can be generated for hash](https://www.ruby-forum.com/t/functional-tests-fail-no-url-can-be-generated-for-hash/106239)

<div class="topic-metadata">

**Author:** [@seth](https://www.ruby-forum.com/u/seth)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/functional-tests-fail-no-url-can-be-generated-for-hash/106239 "2007-06-07T20:01:19Z")

</div>

Hi, I’m just learning Ruby and Rails. I have developed a Rails application, but not using the creation scripts that come with the rails distribution. Consequently, no test scaffolding is available to me, and I’m tr…

---

## [EBR Time.now display problem](https://www.ruby-forum.com/t/ebr-time-now-display-problem/106238)

<div class="topic-metadata">

**Author:** [@Peter\_Teeson](https://www.ruby-forum.com/u/Peter_Teeson)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 8:01pm UTC](https://www.ruby-forum.com/t/ebr-time-now-display-problem/106238 "2007-06-07T20:01:13Z")

</div>

As a new RoR user I need a little help please. I am using Mac OS X 10.4.9 and Ruby version 1.8.6 (powerpc-darwin8.8.0) RubyGems version 0.9.2 Rails version 1.2.3 Active Record version 1.15.3 Action Pack version 1.13.…

---

## [Module Not Loaded by script/runner](https://www.ruby-forum.com/t/module-not-loaded-by-script-runner/106237)

<div class="topic-metadata">

**Author:** [@benr75](https://www.ruby-forum.com/u/benr75)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/module-not-loaded-by-script-runner/106237 "2007-06-07T19:59:12Z")

</div>

Hello ~ I have a Model Action that I wish to call from script/runner. This Model accesses another action in a module in the lib directory. If I fire up script/console and execute Model.action it works perfectly, bu…

---

## [How to copy image file in local and save it to same path?](https://www.ruby-forum.com/t/how-to-copy-image-file-in-local-and-save-it-to-same-path/106226)

<div class="topic-metadata">

**Author:** [@netskie](https://www.ruby-forum.com/u/netskie)\
**Replies:** 0\
**Last updated:** [June 7, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/how-to-copy-image-file-in-local-and-save-it-to-same-path/106226 "2007-06-07T18:18:25Z")

</div>

How to copy image file in local and save it to same path with different filename…? Hello… Please help me to solve this…I find this hard coz…i dont know how to use FileUtils… thanx…

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

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