# Rails

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

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

---

## [Engines and migrations](https://www.ruby-forum.com/t/engines-and-migrations/91653)

<div class="topic-metadata">

**Author:** [@nappin](https://www.ruby-forum.com/u/nappin)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 10:45am UTC](https://www.ruby-forum.com/t/engines-and-migrations/91653 "2007-04-11T10:45:17Z")

</div>

I’m writing two apps. App\_1 uses a subset of models (and thus migrations) of App\_2, and both apps use the same database. At first I thought engines would be the perfect way to include the models and migrations in bo…

---

## [Routing Module to mixin](https://www.ruby-forum.com/t/routing-module-to-mixin/91662)

<div class="topic-metadata">

**Author:** [@dean](https://www.ruby-forum.com/u/dean)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 9:51am UTC](https://www.ruby-forum.com/t/routing-module-to-mixin/91662 "2007-04-11T09:51:09Z")

</div>

I have a need to get routes into my AR models, but I can not find the module that provides them to ActionController. For example, I would like to provide an event feed from two different locations, so want to do some…

---

## [Rails based content management](https://www.ruby-forum.com/t/rails-based-content-management/91170)

<div class="topic-metadata">

**Author:** [@dordille](https://www.ruby-forum.com/u/dordille)\
**Replies:** 9\
**Last updated:** [April 11, 2007, 9:22am UTC](https://www.ruby-forum.com/t/rails-based-content-management/91170 "2007-04-11T09:22:06Z")

</div>

Hi: I need to setup a content management solution for a client. We have built a rails CRUD app but now he would like a CMS and we also need to integrate the CMS with CRUD app (well same themes, login etc…) I have fo…

---

## [Shopping cart](https://www.ruby-forum.com/t/shopping-cart/91048)

<div class="topic-metadata">

**Author:** [@ckonrad](https://www.ruby-forum.com/u/ckonrad)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 8:12am UTC](https://www.ruby-forum.com/t/shopping-cart/91048 "2007-04-11T08:12:55Z")

</div>

one of things i am finding hard to understand about using rails to make a shopping cart system or a blog is that blogs ans shopping carts have already been designed hundreds of times. I mean i have a friend who needed…

---

## [Ajax call really slow](https://www.ruby-forum.com/t/ajax-call-really-slow/91649)

<div class="topic-metadata">

**Author:** [@Matt\_G](https://www.ruby-forum.com/u/Matt_G)\
**Replies:** 8\
**Last updated:** [April 11, 2007, 8:11am UTC](https://www.ruby-forum.com/t/ajax-call-really-slow/91649 "2007-04-11T08:11:55Z")

</div>

Hey Guys, I’m fairly new to Rails, so my guess is that I’m just doing this wrong. I have a site that I’m building that uses ajax to update a list of items depending on what tab a user clicks. Unfortunately, it isn’…

---

## [Mechanize help](https://www.ruby-forum.com/t/mechanize-help/91562)

<div class="topic-metadata">

**Author:** [@prot](https://www.ruby-forum.com/u/prot)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 7:46am UTC](https://www.ruby-forum.com/t/mechanize-help/91562 "2007-04-11T07:46:08Z")

</div>

hello friends is there any gem which do the almost the function what mechanize do… i need to check the loginname for diff diff sites. basically i am facing problem with the myspace rest almost all site authentication…

---

## [Testing helper link completely fails!](https://www.ruby-forum.com/t/testing-helper-link-completely-fails/91657)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 7:40am UTC](https://www.ruby-forum.com/t/testing-helper-link-completely-fails/91657 "2007-04-11T07:40:59Z")

</div>

Hello, I'm making a simple sort helper link that works great. When I go to write it it fails miserably. Here’s the method (forms\_helper.rb): def sort\_link(title, params\_order, up\_img\_link, down\_img\_link, options={})…

---

## [When do I use "a" versus "@a" as a variable?](https://www.ruby-forum.com/t/when-do-i-use-a-versus-a-as-a-variable/67320)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 6\
**Last updated:** [April 11, 2007, 7:28am UTC](https://www.ruby-forum.com/t/when-do-i-use-a-versus-a-as-a-variable/67320 "2007-04-11T07:28:22Z")

</div>

Hi, Just realising I don’t quite understand the different between the variable name to use (say in a controller method) in terms of either “a” or “@a”. Both seem to work find re passing it to a local method in the c…

---

## [Ready to use blogs, forums, newsletter features in Rails](https://www.ruby-forum.com/t/ready-to-use-blogs-forums-newsletter-features-in-rails/91651)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 6:42am UTC](https://www.ruby-forum.com/t/ready-to-use-blogs-forums-newsletter-features-in-rails/91651 "2007-04-11T06:42:47Z")

</div>

Hi, I am trying to learn more about RoR to implement a solution that features blogs, forums, data acquisitions, newsletter. After spending some time learning Ruby, I am impressed with ease of programming with RoR. Bu…

---

## [Displaying query results with no looping](https://www.ruby-forum.com/t/displaying-query-results-with-no-looping/91645)

<div class="topic-metadata">

**Author:** [@Roy\_Kolak](https://www.ruby-forum.com/u/Roy_Kolak)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 6:30am UTC](https://www.ruby-forum.com/t/displaying-query-results-with-no-looping/91645 "2007-04-11T06:30:41Z")

</div>

Hello, Rails Noob here. ok, I wrote a little query that is doing what it should be doing. I run the debug() function on the returned results and I get this… \<%= debug(@total)%\> !ruby/object:Association attributes…

---

## [Can one prevent nil from being submitted when ":include\_bla](https://www.ruby-forum.com/t/can-one-prevent-nil-from-being-submitted-when-include-bla/91606)

<div class="topic-metadata">

**Author:** [@rovnak](https://www.ruby-forum.com/u/rovnak)\
**Replies:** 5\
**Last updated:** [April 11, 2007, 6:26am UTC](https://www.ruby-forum.com/t/can-one-prevent-nil-from-being-submitted-when-include-bla/91606 "2007-04-11T06:26:46Z")

</div>

I’m very close to getting some cool functionality with nearly zero extra controller coding …but one sticking point. I have a simple select Country\<%= collection\_select( :country\_id, nil, ViewCountry.find(:all), :id,…

---

## [Google Maps](https://www.ruby-forum.com/t/google-maps/91648)

<div class="topic-metadata">

**Author:** [@chris\_loper](https://www.ruby-forum.com/u/chris_loper)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 5:25am UTC](https://www.ruby-forum.com/t/google-maps/91648 "2007-04-11T05:25:43Z")

</div>

Fellow users of Rails, I am working on an app that needs to allow people to create a camping location. They would need to add a placemarker via google maps to get a longitude/latitude. This is easy to store in two dec…

---

## [Skipping a data migration for Test environment](https://www.ruby-forum.com/t/skipping-a-data-migration-for-test-environment/91577)

<div class="topic-metadata">

**Author:** [@jimmyether](https://www.ruby-forum.com/u/jimmyether)\
**Replies:** 6\
**Last updated:** [April 11, 2007, 4:48am UTC](https://www.ruby-forum.com/t/skipping-a-data-migration-for-test-environment/91577 "2007-04-11T04:48:40Z")

</div>

Hi all, I’m loading fixture data via migrations into my application using the method described in the Agile book. This works beautifully for development and production environments. The only problem is, I don’t want …

---

## [How to Work with Tables That Don't Have a Numeric PK?](https://www.ruby-forum.com/t/how-to-work-with-tables-that-dont-have-a-numeric-pk/91522)

<div class="topic-metadata">

**Author:** [@geopappas](https://www.ruby-forum.com/u/geopappas)\
**Replies:** 9\
**Last updated:** [April 11, 2007, 4:34am UTC](https://www.ruby-forum.com/t/how-to-work-with-tables-that-dont-have-a-numeric-pk/91522 "2007-04-11T04:34:40Z")

</div>

My understanding is that RoR needs a primary key (PK) that is numeric. The default column name for the table is ID. I am a big advocate for using a “dumb” or non-intelligent primary key for transaction tables. But it…

---

## [Acts\_as\_tree - how do I let the user create subnodes?](https://www.ruby-forum.com/t/acts-as-tree-how-do-i-let-the-user-create-subnodes/91525)

<div class="topic-metadata">

**Author:** [@alex](https://www.ruby-forum.com/u/alex)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 3:52am UTC](https://www.ruby-forum.com/t/acts-as-tree-how-do-i-let-the-user-create-subnodes/91525 "2007-04-11T03:52:38Z")

</div>

Hi, Noob here, so apologies in advance for my certain misunderstandings. I have hierarchal category structure which I’ve modeled using acts\_as\_trees. I have successfully created the code to display the categories in…

---

## [Flickr.rb won't accept tags with only one photo](https://www.ruby-forum.com/t/flickr-rb-wont-accept-tags-with-only-one-photo/91643)

<div class="topic-metadata">

**Author:** [@Stegg](https://www.ruby-forum.com/u/Stegg)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 2:45am UTC](https://www.ruby-forum.com/t/flickr-rb-wont-accept-tags-with-only-one-photo/91643 "2007-04-11T02:45:35Z")

</div>

I have been playing around with flickr.rb for the photos section of my website, and it’s been going well except for one hitch. Whenever I try to grab the photos from my flickr acount by tag, and there is only one pho…

---

## [NoMethodError](https://www.ruby-forum.com/t/nomethoderror/91642)

<div class="topic-metadata">

**Author:** [@Zkidd](https://www.ruby-forum.com/u/Zkidd)\
**Replies:** 1\
**Last updated:** [April 11, 2007, 2:20am UTC](https://www.ruby-forum.com/t/nomethoderror/91642 "2007-04-11T02:20:34Z")

</div>

Why, when I am trying to manually assign permalinks, would I get this from the ruby console: s.update\_attribute :permalink, ‘my-shiny-weblog’ NoMethodError: undefined method permalink=' for #\<Story:0x32361c8\> from /us…

---

## [Could eBay be built with Rails?](https://www.ruby-forum.com/t/could-ebay-be-built-with-rails/91537)

<div class="topic-metadata">

**Author:** [@DigitalRealm](https://www.ruby-forum.com/u/DigitalRealm)\
**Replies:** 10\
**Last updated:** [April 11, 2007, 1:58am UTC](https://www.ruby-forum.com/t/could-ebay-be-built-with-rails/91537 "2007-04-11T01:58:33Z")

</div>

My friend and I (both new to RoR) were having a discussion today about whether or not you could build an exact replica of eBay using on Ruby on Rails. I think that it could in fact be done, or at least a very close mo…

---

## [Link to local files](https://www.ruby-forum.com/t/link-to-local-files/91624)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 11, 2007, 1:25am UTC](https://www.ruby-forum.com/t/link-to-local-files/91624 "2007-04-11T01:25:31Z")

</div>

I have a small rails system I am building. Part of the code allow uploading files in to RailsRoot/public/files folder I am running this system is several places that have different domain and folder combinations. ca…

---

## [Mongrel as service....odd](https://www.ruby-forum.com/t/mongrel-as-service-odd/86166)

<div class="topic-metadata">

**Author:** [@dieffe](https://www.ruby-forum.com/u/dieffe)\
**Replies:** 29\
**Last updated:** [April 11, 2007, 1:10am UTC](https://www.ruby-forum.com/t/mongrel-as-service-odd/86166 "2007-04-11T01:10:54Z")

</div>

I have an odd ( at least for me ) problem with Mongrel running as service. Im trying to deploy RoR on a Win2003 server using Mongrel as service and isapi rewriter for IIS. When i run mongrel from shell (ruby script/s…

---

## [Populating a column automatically based on the sum of other](https://www.ruby-forum.com/t/populating-a-column-automatically-based-on-the-sum-of-other/91637)

<div class="topic-metadata">

**Author:** [@idmkid](https://www.ruby-forum.com/u/idmkid)\
**Replies:** 2\
**Last updated:** [April 11, 2007, 12:56am UTC](https://www.ruby-forum.com/t/populating-a-column-automatically-based-on-the-sum-of-other/91637 "2007-04-11T00:56:29Z")

</div>

I am new to Ruby on Rails and love what I see. I am also new to MySQL. I am using a generic table with the ajax\_scaffold. The table and application are working great. However, I want to populate one column for a new r…

---

## [Programming Career For You](https://www.ruby-forum.com/t/programming-career-for-you/91635)

<div class="topic-metadata">

**Author:** [@samatha](https://www.ruby-forum.com/u/samatha)\
**Replies:** 0\
**Last updated:** [April 11, 2007, 12:35am UTC](https://www.ruby-forum.com/t/programming-career-for-you/91635 "2007-04-11T00:35:29Z")

</div>

Find Your Programming Job Vacancy and resources here → http://www.jobbankdata.com/job-programming.htm

---

## [AJAX and non-xml entities](https://www.ruby-forum.com/t/ajax-and-non-xml-entities/91626)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/ajax-and-non-xml-entities/91626 "2007-04-10T23:55:25Z")

</div>

Recently I made some changes so that I am serving up XHTML 1.1. I’m talking about real XHTML where the mime type is changed to application/ xhtml+xml and firefox raises hell when there are errors rather then trying to…

---

## [Ruby on Rails site with 10 million users?](https://www.ruby-forum.com/t/ruby-on-rails-site-with-10-million-users/91625)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [April 10, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-site-with-10-million-users/91625 "2007-04-10T23:52:25Z")

</div>

How big could a Ruby on Rails site scale interests me. Take 37signals who have just over 1 million users. Amazing products but not mass market like myspace or youtube… If someone released a site that got huge traffic …

---

## [Mappoint (Microsoft mapping) and ruby on rails](https://www.ruby-forum.com/t/mappoint-microsoft-mapping-and-ruby-on-rails/91628)

<div class="topic-metadata">

**Author:** [@adi\_azar](https://www.ruby-forum.com/u/adi_azar)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 11:21pm UTC](https://www.ruby-forum.com/t/mappoint-microsoft-mapping-and-ruby-on-rails/91628 "2007-04-10T23:21:15Z")

</div>

Hello guys, Have any one tried to use Microsoft Mappoint with Ruby on rails? How did you talk to the service? Adi

---

## [Big Error, need help fast :(](https://www.ruby-forum.com/t/big-error-need-help-fast/91623)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 8\
**Last updated:** [April 10, 2007, 11:13pm UTC](https://www.ruby-forum.com/t/big-error-need-help-fast/91623 "2007-04-10T23:13:22Z")

</div>

I was trying to clean up my rails application, and now I’m getting this error in my development log. No page in my site will come up when I start up the web server. Anyone know how to fix this?? ==== Development Log n…

---

## [How To: Remove a Partial](https://www.ruby-forum.com/t/how-to-remove-a-partial/91614)

<div class="topic-metadata">

**Author:** [@d6veteran](https://www.ruby-forum.com/u/d6veteran)\
**Replies:** 4\
**Last updated:** [April 10, 2007, 10:29pm UTC](https://www.ruby-forum.com/t/how-to-remove-a-partial/91614 "2007-04-10T22:29:17Z")

</div>

Right now I have a login partial that expands so the user can login. After the user logins in I want that partial to go away. What is the recommended way of doing this?

---

## [Two RailsConf tickets for sale](https://www.ruby-forum.com/t/two-railsconf-tickets-for-sale/91622)

<div class="topic-metadata">

**Author:** [@sdelmont](https://www.ruby-forum.com/u/sdelmont)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/two-railsconf-tickets-for-sale/91622 "2007-04-10T22:05:16Z")

</div>

I have two RailsConf tickets available for sale, if anyone is interested, send an email to removed\_email\_address@domain.invalid.

---

## [Namespaces in ruby - question about 2 classes with the same](https://www.ruby-forum.com/t/namespaces-in-ruby-question-about-2-classes-with-the-same/91503)

<div class="topic-metadata">

**Author:** [@durexlw](https://www.ruby-forum.com/u/durexlw)\
**Replies:** 2\
**Last updated:** [April 10, 2007, 9:53pm UTC](https://www.ruby-forum.com/t/namespaces-in-ruby-question-about-2-classes-with-the-same/91503 "2007-04-10T21:53:11Z")

</div>

I have a report model class in app/models/report.rb. I also have a report class in the lib directory which is inside a namespace ChipIn::Reports. I am trying to access the app/models report class from within the Chi…

---

## [Action\_profiler choking on Rails 1.2.2](https://www.ruby-forum.com/t/action-profiler-choking-on-rails-1-2-2/91617)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [April 10, 2007, 9:45pm UTC](https://www.ruby-forum.com/t/action-profiler-choking-on-rails-1-2-2/91617 "2007-04-10T21:45:10Z")

</div>

Hi All, I’m having trouble getting action\_profiler (http://rails- analyzer.rubyforge.org/action\_profiler/) running on my app. I am running on Rails 1.2.2, and am using ActiveRecordStore to store my sessions. I’ve inc…

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

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