# Rails

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

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

---

## [Rake test fails - pending migrations](https://www.ruby-forum.com/t/rake-test-fails-pending-migrations/154796)

<div class="topic-metadata">

**Author:** [@shantanu-uab](https://www.ruby-forum.com/u/shantanu-uab)\
**Replies:** 10\
**Last updated:** [December 4, 2008, 5:28pm UTC](https://www.ruby-forum.com/t/rake-test-fails-pending-migrations/154796 "2008-12-04T17:28:28Z")

</div>

After running ‘down’ some migrations using ‘rake db:migrate:down’, I am unable to performs any tests. The message received is: You have 3 pending migrations: blah blahblah blahblahblah Run “rake db:migrate” to updat…

---

## [Problems with view\_paths](https://www.ruby-forum.com/t/problems-with-view-paths/154864)

<div class="topic-metadata">

**Author:** [@tanker](https://www.ruby-forum.com/u/tanker)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 5:27pm UTC](https://www.ruby-forum.com/t/problems-with-view-paths/154864 "2008-12-04T17:27:48Z")

</div>

Hello i’m trying do add view paths to my project In my local machine it is working fine but when i’m trying to host my project it is not working i don’t understand why? I’m using rails 2.0.2 This is my controller cl…

---

## [Route alias](https://www.ruby-forum.com/t/route-alias/154861)

<div class="topic-metadata">

**Author:** [@jah4711](https://www.ruby-forum.com/u/jah4711)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/route-alias/154861 "2008-12-04T16:56:32Z")

</div>

Hi, the Rails app I am currently working on will have a public API (REST) so other can communicate with it. I am thinking right now which URLs to use. I saw some apps which use a prefix for their API, e.g. /api/v1/pr…

---

## [JOBS : ProKarma Need Ruby on Rail Developer/ CA](https://www.ruby-forum.com/t/jobs-prokarma-need-ruby-on-rail-developer-ca/154780)

<div class="topic-metadata">

**Author:** [@Shveta](https://www.ruby-forum.com/u/Shveta)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/jobs-prokarma-need-ruby-on-rail-developer-ca/154780 "2008-12-04T16:50:01Z")

</div>

Hello Folks, We need Ruby on Rails Developer in Bay Area. Please let me know if anyone interested. Please get back to me at removed\_email\_address@domain.invalid Thank you, Shveta removed\_email\_address@domain.invali…

---

## [Using a model in a library](https://www.ruby-forum.com/t/using-a-model-in-a-library/154400)

<div class="topic-metadata">

**Author:** [@clauer](https://www.ruby-forum.com/u/clauer)\
**Replies:** 3\
**Last updated:** [December 4, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/using-a-model-in-a-library/154400 "2008-12-04T16:31:11Z")

</div>

Hi, I’m trying to verify that a parameter is an instance of a specific class in Rails: def schedule(action, \*args) if arg.is\_a? Aircraft … end end I’m doing this in a library class (the file is in lib/) and I get…

---

## [Full text search using tsearch2](https://www.ruby-forum.com/t/full-text-search-using-tsearch2/154681)

<div class="topic-metadata">

**Author:** [@VPVPVP](https://www.ruby-forum.com/u/VPVPVP)\
**Replies:** 7\
**Last updated:** [December 4, 2008, 4:21pm UTC](https://www.ruby-forum.com/t/full-text-search-using-tsearch2/154681 "2008-12-04T16:21:46Z")

</div>

Hi, I implemented a full text search using postgres \> 8.3. My performance is very good to index (using triggers/after\_filter or crontab time based index update) and to search for something. With Postgres i can index…

---

## [Needs some help with eager loading issue on a has\_many through relationship](https://www.ruby-forum.com/t/needs-some-help-with-eager-loading-issue-on-a-has-many-through-relationship/154688)

<div class="topic-metadata">

**Author:** [@hoenth](https://www.ruby-forum.com/u/hoenth)\
**Replies:** 7\
**Last updated:** [December 4, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/needs-some-help-with-eager-loading-issue-on-a-has-many-through-relationship/154688 "2008-12-04T16:18:50Z")

</div>

I have the following: A model called Student, which is an STI sub-class of Person Student has the following associations has\_many :homerooms has\_many :classrooms, :through =\> :homerooms has\_one :current\_classroom, …

---

## [Action caching with dynamic cache names](https://www.ruby-forum.com/t/action-caching-with-dynamic-cache-names/154857)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/action-caching-with-dynamic-cache-names/154857 "2008-12-04T16:14:44Z")

</div>

Hi, I am attempting to cache a page that varies depending on the URL that you go to. For example, http://mydomain.com/member\_name goes to the same action and controller as http://mydomain.com/other\_member, but the p…

---

## [Can i create web page with web page](https://www.ruby-forum.com/t/can-i-create-web-page-with-web-page/154853)

<div class="topic-metadata">

**Author:** [@mahmoud\_cs](https://www.ruby-forum.com/u/mahmoud_cs)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 4:02pm UTC](https://www.ruby-forum.com/t/can-i-create-web-page-with-web-page/154853 "2008-12-04T16:02:25Z")

</div>

can i create web page with web page using ajax in run time

---

## [Ruby fun with MegaMillions](https://www.ruby-forum.com/t/ruby-fun-with-megamillions/154813)

<div class="topic-metadata">

**Author:** [@sunfish](https://www.ruby-forum.com/u/sunfish)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/ruby-fun-with-megamillions/154813 "2008-12-04T14:31:06Z")

</div>

I thought I would write a lottery number generator since I have not had any luck winning the big jackpot - http://megamillions.com/. So far, after over 1.2 million tries, I still have not hit all the numbers from yes…

---

## [Render and/or redirect were called multiple times in this action](https://www.ruby-forum.com/t/render-and-or-redirect-were-called-multiple-times-in-this-action/154834)

<div class="topic-metadata">

**Author:** [@BarefootSanders](https://www.ruby-forum.com/u/BarefootSanders)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/render-and-or-redirect-were-called-multiple-times-in-this-action/154834 "2008-12-04T14:11:07Z")

</div>

I’m trying to add an application enabled/disabled flag in my application… This is my code. \[code=\] # application.rb … before\_filter :check\_enabled\_flag private def check\_enabled\_flag application\_flag = Applicatio…

---

## [How to implement the tags using acts\_as\_taggable\_on\_steroids](https://www.ruby-forum.com/t/how-to-implement-the-tags-using-acts-as-taggable-on-steroids/154732)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 18\
**Last updated:** [December 4, 2008, 2:11pm UTC](https://www.ruby-forum.com/t/how-to-implement-the-tags-using-acts-as-taggable-on-steroids/154732 "2008-12-04T14:11:07Z")

</div>

Here is the my application details: work environment:windows instantrails2.0 1.i have created a controller and a model for ‘aticle’ and ‘announcements’. 2.i added acts\_as\_taggable in both the models(i.e article.rb …

---

## [Attatchment fu - NO DELETE ability](https://www.ruby-forum.com/t/attatchment-fu-no-delete-ability/154844)

<div class="topic-metadata">

**Author:** [@denver](https://www.ruby-forum.com/u/denver)\
**Replies:** 3\
**Last updated:** [December 4, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/attatchment-fu-no-delete-ability/154844 "2008-12-04T13:58:45Z")

</div>

Hi Guys, I have installed the attatchment\_fu plugin and got it working so can upload images to my application. I used Mike C.'s Weblog as a guide. http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu. I can uploa…

---

## [Need sample application developed using acts\_as\_taggable\_on\_steroids](https://www.ruby-forum.com/t/need-sample-application-developed-using-acts-as-taggable-on-steroids/154849)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 1:55pm UTC](https://www.ruby-forum.com/t/need-sample-application-developed-using-acts-as-taggable-on-steroids/154849 "2008-12-04T13:55:12Z")

</div>

hi all, i am working stream database creation using rails2.0.So i need some sample project for understanding how to proceed fos tags and all.can any one share the sample application. thanks

---

## [How to implement tags using acts\_as\_taggable\_on\_steroids?](https://www.ruby-forum.com/t/how-to-implement-tags-using-acts-as-taggable-on-steroids/154852)

<div class="topic-metadata">

**Author:** [@srikanth](https://www.ruby-forum.com/u/srikanth)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/how-to-implement-tags-using-acts-as-taggable-on-steroids/154852 "2008-12-04T13:47:34Z")

</div>

hi all: im using rails 2.0 on windows: i instaled acts\_as\_taggable\_on\_steroids i have a controller and a model for streams table. i did migration for tag support also everything is working fine i.e if i run http://…

---

## [Ruby and Soap Soap4r](https://www.ruby-forum.com/t/ruby-and-soap-soap4r/154848)

<div class="topic-metadata">

**Author:** [@noisewaterphd](https://www.ruby-forum.com/u/noisewaterphd)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 1:33pm UTC](https://www.ruby-forum.com/t/ruby-and-soap-soap4r/154848 "2008-12-04T13:33:26Z")

</div>

I can’t wrap my head around a soap4r issue i’m having, need some help please! So here is what I have: This is the example envelope from a .net web service to authorize: POST /PublicAPIReport/publicapiservice.asmx HTT…

---

## [Problem with destroying multiple records](https://www.ruby-forum.com/t/problem-with-destroying-multiple-records/154745)

<div class="topic-metadata">

**Author:** [@dharmdip](https://www.ruby-forum.com/u/dharmdip)\
**Replies:** 6\
**Last updated:** [December 4, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/problem-with-destroying-multiple-records/154745 "2008-12-04T13:23:26Z")

</div>

Hi , i am facing problem while i am writing code e.g. People.find\_by\_id(params\[:id\]) comment.find\_by\_id(params\[:id\]) when this execute it will delete only one record from the database which it get first. It will ke…

---

## [Upload test images using rake with populator](https://www.ruby-forum.com/t/upload-test-images-using-rake-with-populator/154843)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/upload-test-images-using-rake-with-populator/154843 "2008-12-04T12:54:31Z")

</div>

I am wondering if it is possible to upload test images to the database along with the other fake user data. I am using populator along with faker for fake test data and it is working very well. I am able to do thing…

---

## [Is passing model objects to a view ok (i.e. best practice)?](https://www.ruby-forum.com/t/is-passing-model-objects-to-a-view-ok-i-e-best-practice/154827)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/is-passing-model-objects-to-a-view-ok-i-e-best-practice/154827 "2008-12-04T12:52:45Z")

</div>

Hi, A Rails Best Practice question: Question - Is passing model objects (or a collection of model object) from the controller to a view best practice is rails? i.e. or is one supposed to create the most minimal set…

---

## [To store the combo box id value from one table another table in database+rails](https://www.ruby-forum.com/t/to-store-the-combo-box-id-value-from-one-table-another-table-in-database-rails/154532)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 21\
**Last updated:** [December 4, 2008, 11:49am UTC](https://www.ruby-forum.com/t/to-store-the-combo-box-id-value-from-one-table-another-table-in-database-rails/154532 "2008-12-04T11:49:47Z")

</div>

Hi. I am new in ruby on rails… Im using Two tables. one is Resortclass and another is Resortbasic. Resortclass table using masterpage.View Resort Classes …

---

## [How to impliment tagging with steroids?](https://www.ruby-forum.com/t/how-to-impliment-tagging-with-steroids/154839)

<div class="topic-metadata">

**Author:** [@sreekanth.G](https://www.ruby-forum.com/u/sreekanth.G)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 10:56am UTC](https://www.ruby-forum.com/t/how-to-impliment-tagging-with-steroids/154839 "2008-12-04T10:56:51Z")

</div>

hi, Can any on egive the idea of taaging using acts\_as\_taggable\_on\_steroids? thanks

---

## [Re: config.gem dependencies broken?](https://www.ruby-forum.com/t/re-config-gem-dependencies-broken/154837)

<div class="topic-metadata">

**Author:** [@Sander\_Voerman](https://www.ruby-forum.com/u/Sander_Voerman)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 10:47am UTC](https://www.ruby-forum.com/t/re-config-gem-dependencies-broken/154837 "2008-12-04T10:47:25Z")

</div>

Hi Joerg, This is a real bug and it has been solved. See the following thread. http://groups.google.com/group/rubyonrails-core/browse\_thread/thread/73f21c47d114b88e To solve the problem apply the patch on: http://rai…

---

## [MySQL Adapter on Rails 2.2](https://www.ruby-forum.com/t/mysql-adapter-on-rails-2-2/154635)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 11\
**Last updated:** [December 4, 2008, 10:27am UTC](https://www.ruby-forum.com/t/mysql-adapter-on-rails-2-2/154635 "2008-12-04T10:27:56Z")

</div>

Hi all, I’ve been searching through the list about configuring MySQL adapter on Rails 2.2, and it seems that this question is asked over and over again without any solution :smiley: Why did Rails 2.2 made configuring …

---

## [RoR Listbox help](https://www.ruby-forum.com/t/ror-listbox-help/154835)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 9:58am UTC](https://www.ruby-forum.com/t/ror-listbox-help/154835 "2008-12-04T09:58:55Z")

</div>

Totally new to RoR, have done Riding on Rails Revisited and the Getting started with Rails Tutorial. Plus I have read why’s poignant guide on ruby (very helpful guide btw, helped me understand a lot. After doing the …

---

## [How to use the tags with acts\_as\_taggable\_on\_steroids of rails 2.0?](https://www.ruby-forum.com/t/how-to-use-the-tags-with-acts-as-taggable-on-steroids-of-rails-2-0/154832)

<div class="topic-metadata">

**Author:** [@sreekanth.G](https://www.ruby-forum.com/u/sreekanth.G)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 9:19am UTC](https://www.ruby-forum.com/t/how-to-use-the-tags-with-acts-as-taggable-on-steroids-of-rails-2-0/154832 "2008-12-04T09:19:33Z")

</div>

hi all, 1)actaully i have a table called article with colummns: id name body 2)tags table with id and name columns taggins table with id,tag\_id,taggable\_id,taable\_type 4)i have model and controller for artcle .And …

---

## [How to adapt alphabetical order in localized app using country\_select?](https://www.ruby-forum.com/t/how-to-adapt-alphabetical-order-in-localized-app-using-country-select/154828)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 9:00am UTC](https://www.ruby-forum.com/t/how-to-adapt-alphabetical-order-in-localized-app-using-country-select/154828 "2008-12-04T09:00:10Z")

</div>

I wonder how to assure correct alphabetical order of the country\_select options when using different languages? If the current language is set to english, the order of the country\_select options is as I would expect a…

---

## [Editable Data Grid?](https://www.ruby-forum.com/t/editable-data-grid/154771)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 8:11am UTC](https://www.ruby-forum.com/t/editable-data-grid/154771 "2008-12-04T08:11:34Z")

</div>

Hello, Being a new transfer to rails from ASP.NET, I’m looking for some help on how to approach an old problem with RoR. I build and maintain my company’s internal data site. We deal with finances, and thus I have pa…

---

## [One Controller+Five tables+ Five forms( 5 pages)+One model](https://www.ruby-forum.com/t/one-controller-five-tables-five-forms-5-pages-one-model/154824)

<div class="topic-metadata">

**Author:** [@rbalaji](https://www.ruby-forum.com/u/rbalaji)\
**Replies:** 0\
**Last updated:** [December 4, 2008, 7:11am UTC](https://www.ruby-forum.com/t/one-controller-five-tables-five-forms-5-pages-one-model/154824 "2008-12-04T07:11:33Z")

</div>

Hi I have 5 forms(5 stages) to create my rails application.im using One Controller+Five tables+ Five forms( 5 pages)+One model/ 1st form: to enter the data and click the next button.To get the values in session. 2n…

---

## [Document Management System in Rails](https://www.ruby-forum.com/t/document-management-system-in-rails/102378)

<div class="topic-metadata">

**Author:** [@daya](https://www.ruby-forum.com/u/daya)\
**Replies:** 2\
**Last updated:** [December 4, 2008, 7:11am UTC](https://www.ruby-forum.com/t/document-management-system-in-rails/102378 "2008-12-04T07:11:08Z")

</div>

Hi Is anyone aware of any Document Management System in Rails. Googling didn’t help me find any Rails based solution. The DMS I need, need to have the following feature apart form the usual ones. Version control o…

---

## [Is Rails "create\_table" smart enough to know if a table already exists](https://www.ruby-forum.com/t/is-rails-create-table-smart-enough-to-know-if-a-table-already-exists/154816)

<div class="topic-metadata">

**Author:** [@Teedub](https://www.ruby-forum.com/u/Teedub)\
**Replies:** 1\
**Last updated:** [December 4, 2008, 6:31am UTC](https://www.ruby-forum.com/t/is-rails-create-table-smart-enough-to-know-if-a-table-already-exists/154816 "2008-12-04T06:31:06Z")

</div>

If I run a migration and the table already exists, is rails “create\_table” smart enough to drop the table first, or should I add something like line #1 below. And… if the foreign key ‘fk\_seats\_venues’ existed, would …

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

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