# Rails

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

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

---

## [Problem with data migration](https://www.ruby-forum.com/t/problem-with-data-migration/121105)

<div class="topic-metadata">

**Author:** [@deb](https://www.ruby-forum.com/u/deb)\
**Replies:** 1\
**Last updated:** [November 24, 2007, 10:22am UTC](https://www.ruby-forum.com/t/problem-with-data-migration/121105 "2007-11-24T10:22:22Z")

</div>

Hi all… I am new to Ruby on Rails and need guidance in this… I am trying to come up with an application for my major project using RoR. It seems that everytime I tried migrating the database… Nothing seems to happen…

---

## [What is best way to get all records from](https://www.ruby-forum.com/t/what-is-best-way-to-get-all-records-from/121130)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 0\
**Last updated:** [November 24, 2007, 6:25am UTC](https://www.ruby-forum.com/t/what-is-best-way-to-get-all-records-from/121130 "2007-11-24T06:25:03Z")

</div>

Hi, Any tips on how can I get all rows given the following example? Table: Instruments (contains instruments I own) Records: Piano Guitar Keyboard Flute Violen Table: Songs (a library of all my songs) Records…

---

## [Gem fails to build mysql](https://www.ruby-forum.com/t/gem-fails-to-build-mysql/121121)

<div class="topic-metadata">

**Author:** [@boo](https://www.ruby-forum.com/u/boo)\
**Replies:** 2\
**Last updated:** [November 24, 2007, 6:12am UTC](https://www.ruby-forum.com/t/gem-fails-to-build-mysql/121121 "2007-11-24T06:12:52Z")

</div>

gem install mysql --with-mysql-lib=/usr/local/mysql/lib ERROR: While executing gem … (OptionParser::InvalidOption) invalid option: --with-mysql-lib=/usr/local/mysql/lib

---

## [Caching and RESTful actions](https://www.ruby-forum.com/t/caching-and-restful-actions/121123)

<div class="topic-metadata">

**Author:** [@tomfarm](https://www.ruby-forum.com/u/tomfarm)\
**Replies:** 0\
**Last updated:** [November 24, 2007, 2:34am UTC](https://www.ruby-forum.com/t/caching-and-restful-actions/121123 "2007-11-24T02:34:16Z")

</div>

I’d like to check I’m on the right lines here, before anything drastic - I’m starting to heavily page cache, but want to keep RESTful - problem being, that Apache kicks in, and diverts a create to a static page, rathe…

---

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

<div class="topic-metadata">

**Author:** [@stan.baptista](https://www.ruby-forum.com/u/stan.baptista)\
**Replies:** 1\
**Last updated:** [November 24, 2007, 2:19am UTC](https://www.ruby-forum.com/t/has-many-through-questions/121036 "2007-11-24T02:19:02Z")

</div>

I’ve created the following associations using :through: class Person \< ActiveRecord::Base has\_many :attendees, :dependent =\> :destroy has\_many :events, :through =\> :attendees, :uniq =\> true end class Event \< Active…

---

## [Looking for Rails 2.0 (edge) nested ressource example](https://www.ruby-forum.com/t/looking-for-rails-2-0-edge-nested-ressource-example/121122)

<div class="topic-metadata">

**Author:** [@supasta](https://www.ruby-forum.com/u/supasta)\
**Replies:** 0\
**Last updated:** [November 24, 2007, 2:12am UTC](https://www.ruby-forum.com/t/looking-for-rails-2-0-edge-nested-ressource-example/121122 "2007-11-24T02:12:53Z")

</div>

I am looking to see if anyone has taken the scaffold code and made is work with a nested resource. I am having a brain block on what what url’s I should be using and what objects should be passed around. Here is my …

---

## [Listing documents in two different controllers - refactor?](https://www.ruby-forum.com/t/listing-documents-in-two-different-controllers-refactor/121120)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 0\
**Last updated:** [November 24, 2007, 1:43am UTC](https://www.ruby-forum.com/t/listing-documents-in-two-different-controllers-refactor/121120 "2007-11-24T01:43:57Z")

</div>

Hello, if I have a document model (not RESTful) that belongs\_to document\_category and a document controller with a list action, and I want to list document per category can I just pass the id of the category as the :…

---

## [RoR File Exchange Application?](https://www.ruby-forum.com/t/ror-file-exchange-application/121041)

<div class="topic-metadata">

**Author:** [@soregums](https://www.ruby-forum.com/u/soregums)\
**Replies:** 1\
**Last updated:** [November 24, 2007, 1:18am UTC](https://www.ruby-forum.com/t/ror-file-exchange-application/121041 "2007-11-24T01:18:15Z")

</div>

Has anyone put together a simple file exchange application or know of one? Upload the file get a url then share that url with people to download the file? Thanks :slight\_smile:

---

## [Link\_to post without javascript?](https://www.ruby-forum.com/t/link-to-post-without-javascript/121112)

<div class="topic-metadata">

**Author:** [@chriscole](https://www.ruby-forum.com/u/chriscole)\
**Replies:** 2\
**Last updated:** [November 24, 2007, 1:17am UTC](https://www.ruby-forum.com/t/link-to-post-without-javascript/121112 "2007-11-24T01:17:46Z")

</div>

I’l like to use link\_to with POST but it uses javascript is there anyway to avoid having to use javascript?

---

## [JOB: Rails contractor needed in SoHo (NYC) 2-3 days per week onsite](https://www.ruby-forum.com/t/job-rails-contractor-needed-in-soho-nyc-2-3-days-per-week-onsite/121114)

<div class="topic-metadata">

**Author:** [@zilkey](https://www.ruby-forum.com/u/zilkey)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 11:41pm UTC](https://www.ruby-forum.com/t/job-rails-contractor-needed-in-soho-nyc-2-3-days-per-week-onsite/121114 "2007-11-23T23:41:09Z")

</div>

I work with a SoHo based design firm and we are looking to hire another rails programmer for 2-3 days per week. We work with large non-profits and most of the work involves content management systems, event registrat…

---

## [\[ANN\] BenchmarkForRails v0.1 (aka "it exists")](https://www.ruby-forum.com/t/ann-benchmarkforrails-v0-1-aka-it-exists/121113)

<div class="topic-metadata">

**Author:** [@cainlevy](https://www.ruby-forum.com/u/cainlevy)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 11:23pm UTC](https://www.ruby-forum.com/t/ann-benchmarkforrails-v0-1-aka-it-exists/121113 "2007-11-23T23:23:36Z")

</div>

Hey y’all, I decided to hack up a small benchmarking plugin for Rails. This is pretty much like the Rails’ benchmarking you see in your logs, except that it benchmarks: the entire process lifecycle, including … bef…

---

## [New rails edge project - step by step](https://www.ruby-forum.com/t/new-rails-edge-project-step-by-step/121050)

<div class="topic-metadata">

**Author:** [@oren](https://www.ruby-forum.com/u/oren)\
**Replies:** 4\
**Last updated:** [November 23, 2007, 10:55pm UTC](https://www.ruby-forum.com/t/new-rails-edge-project-step-by-step/121050 "2007-11-23T22:55:28Z")

</div>

I am trying to create a new rails project in edge: rails campus cd campus rake rails:freeze:edge script/generate model topic title:string body:text rake db:create:all rake db:migrate script/generate controller top…

---

## [Fileupload via ftp and attachment\_fu](https://www.ruby-forum.com/t/fileupload-via-ftp-and-attachment-fu/121106)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/fileupload-via-ftp-and-attachment-fu/121106 "2007-11-23T21:35:50Z")

</div>

How can I use attachment\_fu to store files in a MySQL database (db\_file) which I uploaded via ftp in a special directory? I need to upload files - large images 25-40 MB -, so my intention ist to upload them via ftp …

---

## [Railspace paperback and pdf?](https://www.ruby-forum.com/t/railspace-paperback-and-pdf/121104)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/railspace-paperback-and-pdf/121104 "2007-11-23T21:02:26Z")

</div>

Anybody know where I can get the Railspace pdf and paperback as 1 bundled price? Here’s the link for just the pdf: https://memberservices.informit.com/buy.aspx?isbn=0321514661&partner=53&cmd=add Thanks, Chirag

---

## [Scaffold strangeness](https://www.ruby-forum.com/t/scaffold-strangeness/121088)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/scaffold-strangeness/121088 "2007-11-23T20:53:38Z")

</div>

I have a table called ‘Books’ with a field ‘page\_count’. When I generate a scaffold for this table the ‘\_form.rhtml’ partial does not include this field. Changing the name to ‘page\_coun’ and it is included in the form…

---

## [You have a problem about send & receive file?](https://www.ruby-forum.com/t/you-have-a-problem-about-send-receive-file/121103)

<div class="topic-metadata">

**Author:** [@pishate\_chond](https://www.ruby-forum.com/u/pishate_chond)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 7:59pm UTC](https://www.ruby-forum.com/t/you-have-a-problem-about-send-receive-file/121103 "2007-11-23T19:59:35Z")

</div>

New Program Send Big File Fast and Easy Apply For FREE!!! WHO WE ARE YouSendIt is the No. 1 digital file delivery company serving business and individuals businesses who want a easy, secured, reliable and faster way …

---

## [RESTful Design Question](https://www.ruby-forum.com/t/restful-design-question/121099)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 1\
**Last updated:** [November 23, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/restful-design-question/121099 "2007-11-23T18:47:30Z")

</div>

Stupid question. Have not programmed in a while and started a new app and I want to use “good RESTful design”. Correct me if I am wrong. In a good RESTful application for each model you have a complimentary controll…

---

## [How to upload photos by using rmagick plugin](https://www.ruby-forum.com/t/how-to-upload-photos-by-using-rmagick-plugin/121048)

<div class="topic-metadata">

**Author:** [@dvk](https://www.ruby-forum.com/u/dvk)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/how-to-upload-photos-by-using-rmagick-plugin/121048 "2007-11-23T18:19:52Z")

</div>

Hii this is vamsi here. i have been learning ruby on rails since 3 months only,presently i am doing a module for uploading photos into our application. I need to upload only photos but not any other files into our ap…

---

## [Will\_paginate w/ extra params](https://www.ruby-forum.com/t/will-paginate-w-extra-params/121024)

<div class="topic-metadata">

**Author:** [@Greg\_Fitzgerald](https://www.ruby-forum.com/u/Greg_Fitzgerald)\
**Replies:** 1\
**Last updated:** [November 23, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/will-paginate-w-extra-params/121024 "2007-11-23T18:18:42Z")

</div>

Hi, I’m not real sure how I should set this code up to continue on a restful design. A few related questions. First of all, I want pass more parameters into will\_paginate. No matter how I try it does not seem to work…

---

## [Duplicate Data But Have The Primary Keys Change With A Click](https://www.ruby-forum.com/t/duplicate-data-but-have-the-primary-keys-change-with-a-click/121062)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 8\
**Last updated:** [November 23, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/duplicate-data-but-have-the-primary-keys-change-with-a-click/121062 "2007-11-23T17:54:47Z")

</div>

I basically want to know whether there is such function on ruby on rails that allows me to duplicate a record but have the primary keys changed. For example, duplicate 20 records of Micheal Jackson’s address and detai…

---

## [Why will Event\_list not display?](https://www.ruby-forum.com/t/why-will-event-list-not-display/121092)

<div class="topic-metadata">

**Author:** [@cantankerous](https://www.ruby-forum.com/u/cantankerous)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/why-will-event-list-not-display/121092 "2007-11-23T17:21:47Z")

</div>

Hi, I have two models / controllers, one of which I can display (Events), the other which is identical in all but name (Event\_lists) throws an error. The working code is def index @events = Event.find(:all) end …

---

## [Winter Sea](https://www.ruby-forum.com/t/winter-sea/121095)

<div class="topic-metadata">

**Author:** [@PEO\_from\_ITALY](https://www.ruby-forum.com/u/PEO_from_ITALY)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/winter-sea/121095 "2007-11-23T17:19:26Z")

</div>

Winter Sea Incredible Red Sea Riviera! Dive’s paradise with crystal water and fluo fish. Tourist’s paradise with modern hotels and smailing beaches. Description cannot explains this wonderful place. Take a look to m…

---

## [My own plugin: how/where to place configuration params?](https://www.ruby-forum.com/t/my-own-plugin-how-where-to-place-configuration-params/120647)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [November 23, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/my-own-plugin-how-where-to-place-configuration-params/120647 "2007-11-23T16:31:53Z")

</div>

Hi all I’m creating my own plugin that I want to use in different projects. And because my different projects need different configurations of the plugin I’d like to provide an easy way to configure them, maybe somet…

---

## [& in link\_to\_remote... :with =\> "A=1&B=2" becomes &amp;](https://www.ruby-forum.com/t/in-link-to-remote-with-a-1-b-2-becomes-amp/121031)

<div class="topic-metadata">

**Author:** [@narozk](https://www.ruby-forum.com/u/narozk)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/in-link-to-remote-with-a-1-b-2-becomes-amp/121031 "2007-11-23T16:07:48Z")

</div>

in \<%= link\_to\_remote … :with =\> %!id=‘img\_name=#{@images\_to\_dsp\[i\].to\_s}&img\_nr=2’!%\> becomes parameters:id=‘img\_name=myimg.jpg&img\_nr=2’ i need & for multiple parameters…

---

## [Install Mephisto on DreamHost](https://www.ruby-forum.com/t/install-mephisto-on-dreamhost/121086)

<div class="topic-metadata">

**Author:** [@bartee](https://www.ruby-forum.com/u/bartee)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/install-mephisto-on-dreamhost/121086 "2007-11-23T15:53:44Z")

</div>

If you have done this, can you give me some hints on how to make it work. I am a very new to RoR so I am sure I am missing the basics. TIA

---

## [Proper way to serialize?](https://www.ruby-forum.com/t/proper-way-to-serialize/121085)

<div class="topic-metadata">

**Author:** [@jacobezzell](https://www.ruby-forum.com/u/jacobezzell)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/proper-way-to-serialize/121085 "2007-11-23T15:48:00Z")

</div>

I am currently serializing using Marshal.dump/load on a BYTE (datatype) MySQL field. I noticed people using “serialize :abc” - How is this used and which way is preferred?

---

## [Create my own dynamic "finder" method?](https://www.ruby-forum.com/t/create-my-own-dynamic-finder-method/121076)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 2:48pm UTC](https://www.ruby-forum.com/t/create-my-own-dynamic-finder-method/121076 "2007-11-23T14:48:01Z")

</div>

Hi all I’m having an authorization method that looks like the following: def user\_requests\_authorization\_to(right\_name) … end I find it boring to always use user\_requests\_authorization\_to(‘EDIT’) user\_requests\_aut…

---

## [Verifying if radio buttons are checked](https://www.ruby-forum.com/t/verifying-if-radio-buttons-are-checked/121059)

<div class="topic-metadata">

**Author:** [@abir84](https://www.ruby-forum.com/u/abir84)\
**Replies:** 5\
**Last updated:** [November 23, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/verifying-if-radio-buttons-are-checked/121059 "2007-11-23T14:29:04Z")

</div>

Hello, I’ve 4 radio\_buttons dynamically generated : Code : \<% @collection.each do |q| %\> \<%= q.value %\> \<%= radio\_button q.id.to\_s, “choice”, “1” %\> q.choice1 \<%#, :onclick =\> remote\_function(:url =\> {:action =\> …

---

## [Acts\_as\_ferret Searching child models - no method error](https://www.ruby-forum.com/t/acts-as-ferret-searching-child-models-no-method-error/121069)

<div class="topic-metadata">

**Author:** [@eddie](https://www.ruby-forum.com/u/eddie)\
**Replies:** 0\
**Last updated:** [November 23, 2007, 1:39pm UTC](https://www.ruby-forum.com/t/acts-as-ferret-searching-child-models-no-method-error/121069 "2007-11-23T13:39:31Z")

</div>

In attempting to search child models (returning the parent object) using part of the “# Descend child elements” script at I get a “no method” error for “all\_fields”. Does anyone know why this could be or where in f…

---

## [Remote function and template](https://www.ruby-forum.com/t/remote-function-and-template/121032)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 2\
**Last updated:** [November 23, 2007, 11:26am UTC](https://www.ruby-forum.com/t/remote-function-and-template/121032 "2007-11-23T11:26:48Z")

</div>

Hi, I am making a call to remote\_function, which updates a variable that I need to use in my current view. Call is happening, but the variable is not getting updated? PS: And to avoid missing template error , in my r…

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

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