# Rails

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

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

---

## [How can I run URLwithout using port?](https://www.ruby-forum.com/t/how-can-i-run-urlwithout-using-port/196732)

<div class="topic-metadata">

**Author:** [@zangsdev](https://www.ruby-forum.com/u/zangsdev)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 2:18pm UTC](https://www.ruby-forum.com/t/how-can-i-run-urlwithout-using-port/196732 "2008-07-01T14:18:40Z")

</div>

Hello, I have developed 2-3 sample ruby application… and my server name is like http://www.mydomain.com Now when I run one of my the ruby application say “first\_app”, then I have to use http://www.mydomain.com:3000/ …

---

## [Tweaking this to get a get a hash of namespaced models](https://www.ruby-forum.com/t/tweaking-this-to-get-a-get-a-hash-of-namespaced-models/141854)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 2:16pm UTC](https://www.ruby-forum.com/t/tweaking-this-to-get-a-get-a-hash-of-namespaced-models/141854 "2008-07-01T14:16:19Z")

</div>

so i have this piece of code here Dir.glob(RAILS\_ROOT + ‘/app/models//\*.rb’).each do |file| @models.push file.gsub(%r{ ^#{RAILS\_ROOT + ‘/app/models/’}(.) }io, ‘\\1’).chomp(’.rb’) end that gives me an array of all…

---

## [500 Internal Server Error when starting rails](https://www.ruby-forum.com/t/500-internal-server-error-when-starting-rails/141862)

<div class="topic-metadata">

**Author:** [@jakedgr8](https://www.ruby-forum.com/u/jakedgr8)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 1:51pm UTC](https://www.ruby-forum.com/t/500-internal-server-error-when-starting-rails/141862 "2008-07-01T13:51:04Z")

</div>

Hey guys, I have this problem. When I start up rails, everything works just fine. I go to localhost:3000 and it shows that rails is up and running. But when I go to a page in my site, or click “About your application’…

---

## [Support for HTTP OPTIONS method and Microsoft Office Protocol Discovery](https://www.ruby-forum.com/t/support-for-http-options-method-and-microsoft-office-protocol-discovery/141888)

<div class="topic-metadata">

**Author:** [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 1:33pm UTC](https://www.ruby-forum.com/t/support-for-http-options-method-and-microsoft-office-protocol-discovery/141888 "2008-07-01T13:33:26Z")

</div>

I ran across an interesting issue with Microsoft Office Protocol Discovery. It was generating exception emails due to its use of the OPTIONS method. See http://rails.learnhub.com/lesson/page/2329-dealing-with-micros…

---

## [Static and class variable?](https://www.ruby-forum.com/t/static-and-class-variable/141883)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 1\
**Last updated:** [July 1, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/static-and-class-variable/141883 "2008-07-01T13:17:35Z")

</div>

In rails, What is the difference between static and class variable? Is it the same or different? Thanks, Ratnavel

---

## [Exceptions available in Ruby on Rails](https://www.ruby-forum.com/t/exceptions-available-in-ruby-on-rails/141863)

<div class="topic-metadata">

**Author:** [@karthikeyan](https://www.ruby-forum.com/u/karthikeyan)\
**Replies:** 4\
**Last updated:** [July 1, 2008, 11:04am UTC](https://www.ruby-forum.com/t/exceptions-available-in-ruby-on-rails/141863 "2008-07-01T11:04:31Z")

</div>

Hi, Can anybody list out what are all the exceptions available in ROR? Thanks in advance… Karthik.

---

## [Help with form\_for](https://www.ruby-forum.com/t/help-with-form-for/141798)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 1\
**Last updated:** [July 1, 2008, 9:54am UTC](https://www.ruby-forum.com/t/help-with-form-for/141798 "2008-07-01T09:54:51Z")

</div>

Hello, I had an app running on RoR 1.1, now I’m migrating it to 2.1. In a view I have: Please log in \<% form\_for(:user, :url =\> sessions\_path) do |f| %\> Username: \<%= flash\[:notice\]%\> …

---

## [Rails senior developer wanted (Melbourne, Australia)](https://www.ruby-forum.com/t/rails-senior-developer-wanted-melbourne-australia/141869)

<div class="topic-metadata">

**Author:** [@dom](https://www.ruby-forum.com/u/dom)\
**Replies:** 1\
**Last updated:** [July 1, 2008, 9:48am UTC](https://www.ruby-forum.com/t/rails-senior-developer-wanted-melbourne-australia/141869 "2008-07-01T09:48:59Z")

</div>

Experienced technology team seeking Ruby on Rails expert to help deliver next-generation web solutions. Current high profile project with short timeframes. Full scale web application experience required to develop a …

---

## [Ruby idiom a | |= b meaning?](https://www.ruby-forum.com/t/ruby-idiom-a-b-meaning/141861)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 7:01am UTC](https://www.ruby-forum.com/t/ruby-idiom-a-b-meaning/141861 "2008-07-01T07:01:38Z")

</div>

What does the ruby idiom a ||= b mean? Thanks, Ratnavel

---

## [Unique column values](https://www.ruby-forum.com/t/unique-column-values/141852)

<div class="topic-metadata">

**Author:** [@vineire77](https://www.ruby-forum.com/u/vineire77)\
**Replies:** 4\
**Last updated:** [July 1, 2008, 6:49am UTC](https://www.ruby-forum.com/t/unique-column-values/141852 "2008-07-01T06:49:01Z")

</div>

I cannot find this answer anywhere. Apologies in advance… I need to get the unique values from a particular column and this code seems to work fine: Street.find(:all, :group =\> :pre\_type) :pre\_type being the ONLY col…

---

## [Content-Type](https://www.ruby-forum.com/t/content-type/196731)

<div class="topic-metadata">

**Author:** [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 6:32am UTC](https://www.ruby-forum.com/t/content-type/196731 "2008-07-01T06:32:39Z")

</div>

Hi, i am using RMail to receive incoming email. But my application could not handle html content because sometime the email contains HTML content. So i got to remove or ignore the HTML content. But i got problem with …

---

## [About rails AJAX album/gallery helper](https://www.ruby-forum.com/t/about-rails-ajax-album-gallery-helper/141804)

<div class="topic-metadata">

**Author:** [@Deephay](https://www.ruby-forum.com/u/Deephay)\
**Replies:** 1\
**Last updated:** [July 1, 2008, 6:00am UTC](https://www.ruby-forum.com/t/about-rails-ajax-album-gallery-helper/141804 "2008-07-01T06:00:11Z")

</div>

Greetings all, I am recently seeking an album/gallery helper for my rails application and it seems a lightbox helper \[1\] is quite good, but unfortunately the svn repo seems invalid, Could anyone send me the newest co…

---

## [Activerecord-sqlserver adapter broken or worse](https://www.ruby-forum.com/t/activerecord-sqlserver-adapter-broken-or-worse/141833)

<div class="topic-metadata">

**Author:** [@hatless](https://www.ruby-forum.com/u/hatless)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 5:19am UTC](https://www.ruby-forum.com/t/activerecord-sqlserver-adapter-broken-or-worse/141833 "2008-07-01T05:19:52Z")

</div>

The activerecord-sqlserver-adapter gem is still sort of available via gems.rubyonrails.org, but it will not install on machines that have Rails 2.1 (or its version of ActiveSupport) installed. This has been confirmed …

---

## [Default rails homepage](https://www.ruby-forum.com/t/default-rails-homepage/141860)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 5:01am UTC](https://www.ruby-forum.com/t/default-rails-homepage/141860 "2008-07-01T05:01:23Z")

</div>

what is the correct way to set a default homepage with rails? So when a user goes to www.first.snowmaninthesun.com they are automatically redirected to www.first.snowmaaninthesun.com/first/view instead of seeing “Welc…

---

## [Nil object error - not under console](https://www.ruby-forum.com/t/nil-object-error-not-under-console/141849)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 3\
**Last updated:** [July 1, 2008, 4:02am UTC](https://www.ruby-forum.com/t/nil-object-error-not-under-console/141849 "2008-07-01T04:02:41Z")

</div>

Hi there, I’m running my app using rails 2.0.2. When running the create method in my controller, I get the following error: You have a nil object when you didn’t expect it! You might have expected an instance of Ac…

---

## [RMail](https://www.ruby-forum.com/t/rmail/141855)

<div class="topic-metadata">

**Author:** [@wawa88](https://www.ruby-forum.com/u/wawa88)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 3:48am UTC](https://www.ruby-forum.com/t/rmail/141855 "2008-07-01T03:48:44Z")

</div>

Hi, i am using RMail to receive incoming email. But my application could not handle html content because sometime the email contains HTML content. So i got to remove or ignore the HTML content. But i got problem with …

---

## [Rails 2.0 to 2.1 migration problem](https://www.ruby-forum.com/t/rails-2-0-to-2-1-migration-problem/141845)

<div class="topic-metadata">

**Author:** [@cinderedmonkey](https://www.ruby-forum.com/u/cinderedmonkey)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 12:47am UTC](https://www.ruby-forum.com/t/rails-2-0-to-2-1-migration-problem/141845 "2008-07-01T00:47:17Z")

</div>

Hi, I have been using rails 2.0 and just recently upgrade to 2.1. The project I was working with has version 1 to 10. I then created a migration version 200806xxx…etc. Now I wish to back out the last migration and go…

---

## [Request headersSo the](https://www.ruby-forum.com/t/request-headersso-the/141847)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 12:39am UTC](https://www.ruby-forum.com/t/request-headersso-the/141847 "2008-07-01T00:39:24Z")

</div>

So the rdoc claims that a rails request object should have a headers method, right? http://api.rubyonrails.org/classes/ActionController/AbstractRequest.html headers() Provides acccess to the requestâ€˜s HTTP headers…

---

## [Ruby on Rails Developers needed: San Francisco, CA Fulltime Perm](https://www.ruby-forum.com/t/ruby-on-rails-developers-needed-san-francisco-ca-fulltime-perm/141843)

<div class="topic-metadata">

**Author:** [@Marlinnhag](https://www.ruby-forum.com/u/Marlinnhag)\
**Replies:** 0\
**Last updated:** [July 1, 2008, 12:20am UTC](https://www.ruby-forum.com/t/ruby-on-rails-developers-needed-san-francisco-ca-fulltime-perm/141843 "2008-07-01T00:20:22Z")

</div>

We are a venture funded start-up that is looking to develop a 4 person Agile Ruby on Rail Development Team. We are working with \*\*\*\*\*\*\* to develop our software right now and are looking to build out our own team of 4 …

---

## [Setting the selected value in select helper](https://www.ruby-forum.com/t/setting-the-selected-value-in-select-helper/141814)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [July 1, 2008, 12:03am UTC](https://www.ruby-forum.com/t/setting-the-selected-value-in-select-helper/141814 "2008-07-01T00:03:24Z")

</div>

I have the follwoing select in my view \<%= select(‘role’, ‘name’, Role::DEFAULT\_COMPANY\_NAMES, { :prompt =\> l(:select\_a\_role) }, {:style =\> ‘width:150px;’}) %\> \<%= select(‘role’, ‘company\_id’, @company\_choices, { :pro…

---

## [Submit form action-\> index, from layout](https://www.ruby-forum.com/t/submit-form-action-index-from-layout/141705)

<div class="topic-metadata">

**Author:** [@sachinkale](https://www.ruby-forum.com/u/sachinkale)\
**Replies:** 4\
**Last updated:** [June 30, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/submit-form-action-index-from-layout/141705 "2008-06-30T23:32:21Z")

</div>

I have a select option tag common to all pages, following is the code which I have put in partial, rendered it in layout. \<% form\_tag :action =\> “index” do -%\> \<%= select\_tag( “state” , "State 1 State 2 State 3 St…

---

## [Script/console sqlite3](https://www.ruby-forum.com/t/script-console-sqlite3/141832)

<div class="topic-metadata">

**Author:** [@jasonmorrison](https://www.ruby-forum.com/u/jasonmorrison)\
**Replies:** 3\
**Last updated:** [June 30, 2008, 10:39pm UTC](https://www.ruby-forum.com/t/script-console-sqlite3/141832 "2008-06-30T22:39:43Z")

</div>

I hope this is in the right place, if not just point me to the right place, please. I’m running through this tutorial: http://developer.apple.com/tools/developonrailsleopard.html and everything went swimmingly until …

---

## [Items.last is most recent?](https://www.ruby-forum.com/t/items-last-is-most-recent/141811)

<div class="topic-metadata">

**Author:** [@george\_b](https://www.ruby-forum.com/u/george_b)\
**Replies:** 4\
**Last updated:** [June 30, 2008, 10:25pm UTC](https://www.ruby-forum.com/t/items-last-is-most-recent/141811 "2008-06-30T22:25:04Z")

</div>

If a model :has\_many :items, can I rely on items.last being the most recently created Item? Or is this just a really bad idea? Thanks, -george

---

## [Problems with Mongrel](https://www.ruby-forum.com/t/problems-with-mongrel/141753)

<div class="topic-metadata">

**Author:** [@christoph](https://www.ruby-forum.com/u/christoph)\
**Replies:** 5\
**Last updated:** [June 30, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/problems-with-mongrel/141753 "2008-06-30T22:22:43Z")

</div>

Hi community, for my application, I decided to use a configuration based on YAML. For this purpose I installed a plugin called “app\_config” (I think there are at least two plugins called “app\_config”, so I hope that …

---

## [Tables: Unnecessary duplication of id fields](https://www.ruby-forum.com/t/tables-unnecessary-duplication-of-id-fields/141802)

<div class="topic-metadata">

**Author:** [@zakifataya](https://www.ruby-forum.com/u/zakifataya)\
**Replies:** 5\
**Last updated:** [June 30, 2008, 10:22pm UTC](https://www.ruby-forum.com/t/tables-unnecessary-duplication-of-id-fields/141802 "2008-06-30T22:22:05Z")

</div>

Hello, I’m fairly new to Ruby, but I am trying to understand the relationship between database structure and models. My difficulty is that I have five or so tables all linked together and their primary key column is…

---

## [Can't start rails app: vendor/rails/railties/lib/initializer](https://www.ruby-forum.com/t/cant-start-rails-app-vendor-rails-railties-lib-initializer/141795)

<div class="topic-metadata">

**Author:** [@raimon](https://www.ruby-forum.com/u/raimon)\
**Replies:** 4\
**Last updated:** [June 30, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/cant-start-rails-app-vendor-rails-railties-lib-initializer/141795 "2008-06-30T22:06:35Z")

</div>

Hello, after some months of not using Ruby On Rails, I want to do more work with it, but I can’t start one of my rails projects: sh-3.2# mongrel\_rails start \*\* Starting Mongrel listening at 0.0.0.0:3000 \*\* Starting …

---

## [Listing entries under corresponding date](https://www.ruby-forum.com/t/listing-entries-under-corresponding-date/141823)

<div class="topic-metadata">

**Author:** [@ressister](https://www.ruby-forum.com/u/ressister)\
**Replies:** 2\
**Last updated:** [June 30, 2008, 9:49pm UTC](https://www.ruby-forum.com/t/listing-entries-under-corresponding-date/141823 "2008-06-30T21:49:49Z")

</div>

I have a rails app with view code long in need of an overhaul. Some of the first app code I wrote was designed to display entires belonging to a given date, under a date header derived from a model timestamp field. …

---

## [Why doesn't json pure work in Rails?](https://www.ruby-forum.com/t/why-doesnt-json-pure-work-in-rails/141827)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 0\
**Last updated:** [June 30, 2008, 9:11pm UTC](https://www.ruby-forum.com/t/why-doesnt-json-pure-work-in-rails/141827 "2008-06-30T21:11:28Z")

</div>

installed json\_pure 1.1.2 and whenever Rails calls to\_json on a model I get the following error: ArgumentError (wrong number of arguments (2 for 1)): c:/ruby/lib/ruby/gems/1.8/gems/json\_pure-1.1.2/lib/json/pure/ gene…

---

## [I need Developers!](https://www.ruby-forum.com/t/i-need-developers/141825)

<div class="topic-metadata">

**Author:** [@Shawn\_Hornsby](https://www.ruby-forum.com/u/Shawn_Hornsby)\
**Replies:** 0\
**Last updated:** [June 30, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/i-need-developers/141825 "2008-06-30T20:42:06Z")

</div>

Hello all, I have a permanent position and several contract positions available immediately in Austin, TX. The most pressing role in the permanent one with one of my top clients (listed below). If you have any inte…

---

## [The Website Is Down](https://www.ruby-forum.com/t/the-website-is-down/141824)

<div class="topic-metadata">

**Author:** [@melvinram](https://www.ruby-forum.com/u/melvinram)\
**Replies:** 0\
**Last updated:** [June 30, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/the-website-is-down/141824 "2008-06-30T20:19:14Z")

</div>

http://thewebsiteisdown.com/ lol

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

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