# Rails

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

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

---

## [Mongrel](https://www.ruby-forum.com/t/mongrel/113239)

<div class="topic-metadata">

**Author:** [@rgreen](https://www.ruby-forum.com/u/rgreen)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 10:11am UTC](https://www.ruby-forum.com/t/mongrel/113239 "2007-08-29T10:11:43Z")

</div>

Since Mongrel is now built into Rails, Is it possible to change the default port from 3000 to something else?

---

## [Animation framework](https://www.ruby-forum.com/t/animation-framework/113255)

<div class="topic-metadata">

**Author:** [@maul](https://www.ruby-forum.com/u/maul)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 10:03am UTC](https://www.ruby-forum.com/t/animation-framework/113255 "2007-08-29T10:03:43Z")

</div>

Hey, I wonder if Rails is already or planning to get integrated with an animation framework? It may be a javascript library or some runtime environment like flash has. I know a bit about script.aculo.us but besides i…

---

## [How to update DB:migration file after adding a column](https://www.ruby-forum.com/t/how-to-update-db-migration-file-after-adding-a-column/113166)

<div class="topic-metadata">

**Author:** [@scrajesh](https://www.ruby-forum.com/u/scrajesh)\
**Replies:** 6\
**Last updated:** [August 29, 2007, 9:48am UTC](https://www.ruby-forum.com/t/how-to-update-db-migration-file-after-adding-a-column/113166 "2007-08-29T09:48:44Z")

</div>

Actually the migration files are created when a model for a table is generated. If suppose i need to add a new column to the existing table, how should i implement it?? What i’ve done is, simply added a column directl…

---

## [Def method help](https://www.ruby-forum.com/t/def-method-help/113180)

<div class="topic-metadata">

**Author:** [@naveenpalani](https://www.ruby-forum.com/u/naveenpalani)\
**Replies:** 4\
**Last updated:** [August 29, 2007, 9:24am UTC](https://www.ruby-forum.com/t/def-method-help/113180 "2007-08-29T09:24:57Z")

</div>

I have problems in getting the value from one def method to another. For example For Example: class UserController \< ApplicationController def dialout(id) # “id” - is taken from database table field temp = id end …

---

## [Viewport size Q for those with a widescreen Mac](https://www.ruby-forum.com/t/viewport-size-q-for-those-with-a-widescreen-mac/113251)

<div class="topic-metadata">

**Author:** [@neilw](https://www.ruby-forum.com/u/neilw)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 8:54am UTC](https://www.ruby-forum.com/t/viewport-size-q-for-those-with-a-widescreen-mac/113251 "2007-08-29T08:54:35Z")

</div>

At the moment I’m short of access to a widescreen Mac. I’m trying to find out what the pixel size of the viewport is on Safari when you have it maximised with tabbed browsing and the standard set of buttons, menus and…

---

## [A simple error, who can help me?](https://www.ruby-forum.com/t/a-simple-error-who-can-help-me/196450)

<div class="topic-metadata">

**Author:** [@zlai](https://www.ruby-forum.com/u/zlai)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 8:35am UTC](https://www.ruby-forum.com/t/a-simple-error-who-can-help-me/196450 "2007-08-29T08:35:10Z")

</div>

I want to run this simple test, but something is wrong. I don’t know how to fix them! help!! work\_test.rb: require File.dirname(FILE) + ‘/…/test\_helper’ class WorkTest \< Test::Unit::TestCase fixtures :works def set…

---

## [What REST architecture](https://www.ruby-forum.com/t/what-rest-architecture/113246)

<div class="topic-metadata">

**Author:** [@vijayendra](https://www.ruby-forum.com/u/vijayendra)\
**Replies:** 1\
**Last updated:** [August 29, 2007, 8:33am UTC](https://www.ruby-forum.com/t/what-rest-architecture/113246 "2007-08-29T08:33:33Z")

</div>

Hi Friends i want to know more about REST architecture . can anybody tell me where i can get information about it .please help me

---

## [About simple test](https://www.ruby-forum.com/t/about-simple-test/113250)

<div class="topic-metadata">

**Author:** [@zlai](https://www.ruby-forum.com/u/zlai)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 8:30am UTC](https://www.ruby-forum.com/t/about-simple-test/113250 "2007-08-29T08:30:40Z")

</div>

I want to run this simple test, but something is wrong. I don’t know how to fix them! help!! work\_test.rb: require File.dirname(FILE) + ‘/…/test\_helper’ class WorkTest \< Test::Unit::TestCase fixtures :works def set…

---

## [The problem about Module's extend method](https://www.ruby-forum.com/t/the-problem-about-modules-extend-method/113248)

<div class="topic-metadata">

**Author:** [@gaoxt1983](https://www.ruby-forum.com/u/gaoxt1983)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 8:26am UTC](https://www.ruby-forum.com/t/the-problem-about-modules-extend-method/113248 "2007-08-29T08:26:33Z")

</div>

Now I try to overwrite a class’s private class method(ActiveRecord::Base)ï¼Œbut it seems doesn’t workï¼Œlook this scenarioï¼š module Dummy private def method\_has puts "new methods has" end def met…

---

## [RoR on your web server](https://www.ruby-forum.com/t/ror-on-your-web-server/113238)

<div class="topic-metadata">

**Author:** [@elle](https://www.ruby-forum.com/u/elle)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 7:01am UTC](https://www.ruby-forum.com/t/ror-on-your-web-server/113238 "2007-08-29T07:01:22Z")

</div>

Well, my first question for this group. So hi everyone, I just installed RoR on my Mac today and would like to develop a site for a client but I don’t know whether his web space has RoR on it (probably not) and if not…

---

## [Append date with log](https://www.ruby-forum.com/t/append-date-with-log/113244)

<div class="topic-metadata">

**Author:** [@selva](https://www.ruby-forum.com/u/selva)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 6:40am UTC](https://www.ruby-forum.com/t/append-date-with-log/113244 "2007-08-29T06:40:20Z")

</div>

Hi, I am tryig to create my own log file using ‘logger module’. I am using following code, oBjlog=Logger.new(“log/my\_file.log”) oBjlog.info(“Starting of Application”) From above line My log file will have “Starting …

---

## [Another Meta-Programming question (about acts\_as\_versioned)](https://www.ruby-forum.com/t/another-meta-programming-question-about-acts-as-versioned/113243)

<div class="topic-metadata">

**Author:** [@supagroova](https://www.ruby-forum.com/u/supagroova)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 6:38am UTC](https://www.ruby-forum.com/t/another-meta-programming-question-about-acts-as-versioned/113243 "2007-08-29T06:38:36Z")

</div>

I’m trying to wrap my head around this meta-programming deal and figured I might be able to get some help from the community… So I am using acts\_as\_versioned for an ActiveRecord model (Page) and I want to be able trea…

---

## [How to model large SqlServer database](https://www.ruby-forum.com/t/how-to-model-large-sqlserver-database/113179)

<div class="topic-metadata">

**Author:** [@clive](https://www.ruby-forum.com/u/clive)\
**Replies:** 4\
**Last updated:** [August 29, 2007, 6:37am UTC](https://www.ruby-forum.com/t/how-to-model-large-sqlserver-database/113179 "2007-08-29T06:37:21Z")

</div>

I have been contracted to work on an intranet using Rails to generate content. Part of this work is to model and generate queries on the legacy SQL Server 2000 database that contains about 80 tables. The database itse…

---

## [How to upload or download a file using ror](https://www.ruby-forum.com/t/how-to-upload-or-download-a-file-using-ror/107940)

<div class="topic-metadata">

**Author:** [@gsswamy](https://www.ruby-forum.com/u/gsswamy)\
**Replies:** 4\
**Last updated:** [August 29, 2007, 6:23am UTC](https://www.ruby-forum.com/t/how-to-upload-or-download-a-file-using-ror/107940 "2007-08-29T06:23:19Z")

</div>

Hi friends, i am a fresher to ruby on rails . i need sample code/program of how to download or upload files,and i also want code to stage a file instead of posting it to a webserver. i would be thankful if u can …

---

## [Ruport 1.2 Released](https://www.ruby-forum.com/t/ruport-1-2-released/113242)

<div class="topic-metadata">

**Author:** [@mike343](https://www.ruby-forum.com/u/mike343)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 5:53am UTC](https://www.ruby-forum.com/t/ruport-1-2-released/113242 "2007-08-29T05:53:19Z")

</div>

Ruport version 1.2 has been released. This update contains significant enhancements to Ruport’s functionality. The full release notes can be found at http://rubyreports.org/release\_notes-1.2.html , but a summary of t…

---

## [Utility Models/Classes](https://www.ruby-forum.com/t/utility-models-classes/113237)

<div class="topic-metadata">

**Author:** [@Meech](https://www.ruby-forum.com/u/Meech)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 4:58am UTC](https://www.ruby-forum.com/t/utility-models-classes/113237 "2007-08-29T04:58:16Z")

</div>

I’ve created some utility classes that pull data from multiple models. Right now the class declarations are just tacked onto the bottom of the primary model, but I want to move them somewhere else – in a seperate .r…

---

## ["Choose from These Options, or Create a New Option"](https://www.ruby-forum.com/t/choose-from-these-options-or-create-a-new-option/112909)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 6\
**Last updated:** [August 29, 2007, 4:42am UTC](https://www.ruby-forum.com/t/choose-from-these-options-or-create-a-new-option/112909 "2007-08-29T04:42:15Z")

</div>

Let’s say I have a dropdown selection list of existing teachers. The user can (1) select any one teacher, or (2) create a new one. How would you tackle something like that? I’m thinking what I could do is check if the…

---

## [Facebook plugin with test cases?](https://www.ruby-forum.com/t/facebook-plugin-with-test-cases/111871)

<div class="topic-metadata">

**Author:** [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Replies:** 16\
**Last updated:** [August 29, 2007, 4:27am UTC](https://www.ruby-forum.com/t/facebook-plugin-with-test-cases/111871 "2007-08-29T04:27:14Z")

</div>

Railsters: Here’s the two Facebook plugins we have so far: http://code.google.com/p/facebook-rails/ http://rfacebook.rubyforge.org/ Imagine my surprise when I discover that neither of them have unit tests! If I con…

---

## [Layout not seen by some clustered mongrel instances](https://www.ruby-forum.com/t/layout-not-seen-by-some-clustered-mongrel-instances/113140)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 4\
**Last updated:** [August 29, 2007, 3:07am UTC](https://www.ruby-forum.com/t/layout-not-seen-by-some-clustered-mongrel-instances/113140 "2007-08-29T03:07:09Z")

</div>

Hi – I have setup a fairly simple Rails site. It uses a layout and 4 clustered instances of Mongrel running on ports 8001 through 8004. The instance of Mongrel running on port 8001 seems to work perfectly. For some …

---

## [Caching a model?](https://www.ruby-forum.com/t/caching-a-model/113232)

<div class="topic-metadata">

**Author:** [@deepa](https://www.ruby-forum.com/u/deepa)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 2:58am UTC](https://www.ruby-forum.com/t/caching-a-model/113232 "2007-08-29T02:58:09Z")

</div>

Hi, I am using memcahced\_client for caching. I also have cached\_model installed as a gem install. I have a user object that in turn has a hasmany relationship to a reviews model. So, once user logs in, i have soemthi…

---

## [Has\_many and belongs\_to](https://www.ruby-forum.com/t/has-many-and-belongs-to/113222)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 4\
**Last updated:** [August 29, 2007, 2:22am UTC](https://www.ruby-forum.com/t/has-many-and-belongs-to/113222 "2007-08-29T02:22:07Z")

</div>

I have this table called users and another called hotelmemberships. Users has\_many hotelmemberships and hotelmemberships belongs\_to users. Pretty straightforward. But, when I try and have parts of a form auto-filled w…

---

## [Ho to capture the domain name](https://www.ruby-forum.com/t/ho-to-capture-the-domain-name/92845)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 1:37am UTC](https://www.ruby-forum.com/t/ho-to-capture-the-domain-name/92845 "2007-08-29T01:37:05Z")

</div>

Hi all Is there a way to capture the domain name and form there open one application or another. I have to domains registered. domain1 and domain2 Is there a way when someone types www.domain1.com it calls a RoR page …

---

## [Rupesh is your Yaar! :)](https://www.ruby-forum.com/t/rupesh-is-your-yaar/113229)

<div class="topic-metadata">

**Author:** [@rupesh](https://www.ruby-forum.com/u/rupesh)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 1:12am UTC](https://www.ruby-forum.com/t/rupesh-is-your-yaar/113229 "2007-08-29T01:12:03Z")

</div>

rupesh rupesh shelar wants you to join Yaari! Is rupesh your friend? …

---

## [How to redirect to list properly?](https://www.ruby-forum.com/t/how-to-redirect-to-list-properly/113227)

<div class="topic-metadata">

**Author:** [@ssk](https://www.ruby-forum.com/u/ssk)\
**Replies:** 0\
**Last updated:** [August 29, 2007, 1:06am UTC](https://www.ruby-forum.com/t/how-to-redirect-to-list-properly/113227 "2007-08-29T01:06:21Z")

</div>

Hi, There’s a ‘list’ page with filtering and sorting options. You can go to ‘new’ page by clicking ‘new’ link on the ‘list’ page. When an item is created with the data the user submit, he/she will be redirected to th…

---

## [From Production to development mode](https://www.ruby-forum.com/t/from-production-to-development-mode/113224)

<div class="topic-metadata">

**Author:** [@taro](https://www.ruby-forum.com/u/taro)\
**Replies:** 2\
**Last updated:** [August 29, 2007, 12:36am UTC](https://www.ruby-forum.com/t/from-production-to-development-mode/113224 "2007-08-29T00:36:59Z")

</div>

So I’ve got a great web page developed, and now I want to make it visible to the internet. Before I do this, what are some quick modifications I have to make in the code to prepare it for production mode. For exampl…

---

## [Loading page components asynchronously](https://www.ruby-forum.com/t/loading-page-components-asynchronously/113220)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 11:47pm UTC](https://www.ruby-forum.com/t/loading-page-components-asynchronously/113220 "2007-08-28T23:47:54Z")

</div>

I’m debating as to whether to use ajax to load parts of the page asynchronously. It would make the view layouts much easier to work with and result in less code. We have a lot of different widgets that can get disp…

---

## [Different between instance=(value) and instance(value)?](https://www.ruby-forum.com/t/different-between-instance-value-and-instance-value/113219)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/different-between-instance-value-and-instance-value/113219 "2007-08-28T23:33:15Z")

</div>

Hello, I was trying to create instance variable in runtime. I want to be able to do it this way, but it’s not working, I cannot access @page later on in my code? def instance\_name=(value) self.instance\_variable\_set …

---

## [Backtrace.join($/) How is this code working](https://www.ruby-forum.com/t/backtrace-join-how-is-this-code-working/113213)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 1\
**Last updated:** [August 28, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/backtrace-join-how-is-this-code-working/113213 "2007-08-28T22:39:46Z")

</div>

I am amazed at how this code is working. backtrace.join($/) what does that dollar sign mean and what’s that slash before that. Full code at http://snippets.dzone.com/posts/show/2427

---

## [Migrate to .sql file](https://www.ruby-forum.com/t/migrate-to-sql-file/113208)

<div class="topic-metadata">

**Author:** [@cmanruby](https://www.ruby-forum.com/u/cmanruby)\
**Replies:** 4\
**Last updated:** [August 28, 2007, 10:00pm UTC](https://www.ruby-forum.com/t/migrate-to-sql-file/113208 "2007-08-28T22:00:37Z")

</div>

Would anyone know how to make “rake migrate” or “rake db:schema:load” produce an SQL file instead of operating directly on the DB? The reason that I ask is that my ROR hosting (servage) does not seem to allow me to co…

---

## [Ruby on Rails programmer needed in DC area at tech startup](https://www.ruby-forum.com/t/ruby-on-rails-programmer-needed-in-dc-area-at-tech-startup/113214)

<div class="topic-metadata">

**Author:** [@keith](https://www.ruby-forum.com/u/keith)\
**Replies:** 0\
**Last updated:** [August 28, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-programmer-needed-in-dc-area-at-tech-startup/113214 "2007-08-28T21:35:34Z")

</div>

My company RiderWay is looking for one or two fulltime Ruby on Rails programmers. We are running the usual stack of httpd/mongrel/FreeBSD/ MySQL. You can develop on Mac/Windows/Linux or whatever else you’d like. If…

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

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