# Rails

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

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

---

## [TypeError: $\_ value need to be String (nil given)](https://www.ruby-forum.com/t/typeerror-value-need-to-be-string-nil-given/111673)

<div class="topic-metadata">

**Author:** [@jlrc](https://www.ruby-forum.com/u/jlrc)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 6:19pm UTC](https://www.ruby-forum.com/t/typeerror-value-need-to-be-string-nil-given/111673 "2007-08-09T18:19:26Z")

</div>

Hello all, I am trying to run a unit test in a Rails project of mine (Rails 1.2.2, Ruby 1.8.4 (2005-12-24) \[i486-linux\]), and am running into the following error: Error: test\_pattern\_splits(PatternSplitTest): Type…

---

## [Increment feature is not working](https://www.ruby-forum.com/t/increment-feature-is-not-working/111661)

<div class="topic-metadata">

**Author:** [@Ajit](https://www.ruby-forum.com/u/Ajit)\
**Replies:** 3\
**Last updated:** [August 9, 2007, 6:16pm UTC](https://www.ruby-forum.com/t/increment-feature-is-not-working/111661 "2007-08-09T18:16:26Z")

</div>

Hello i have a custom query which is getting max number from one of column. I want to get that number increment by 1 and then save that in different table. please refer following code: def getmaxphasenumber(templaid) …

---

## [How to use AtomFeedHelper?](https://www.ruby-forum.com/t/how-to-use-atomfeedhelper/111656)

<div class="topic-metadata">

**Author:** [@pkpkpk](https://www.ruby-forum.com/u/pkpkpk)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 5:51pm UTC](https://www.ruby-forum.com/t/how-to-use-atomfeedhelper/111656 "2007-08-09T17:51:20Z")

</div>

All, Ive installed the latest version of the AtomFeedHelper plugin into my application, and am using it as explained in the README file, however its just not working. It complains about everything from the lack of a…

---

## [Redirect from a model](https://www.ruby-forum.com/t/redirect-from-a-model/111488)

<div class="topic-metadata">

**Author:** [@Scott\_Parks](https://www.ruby-forum.com/u/Scott_Parks)\
**Replies:** 7\
**Last updated:** [August 9, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/redirect-from-a-model/111488 "2007-08-09T17:38:19Z")

</div>

What is the best way to call a redirect from a model? Using the Rails Recipes book I have the authentication working and adding conditions if someone submits the form blank, but in the book they have a raise “Invalid…

---

## [Automating form creation](https://www.ruby-forum.com/t/automating-form-creation/111670)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 5:35pm UTC](https://www.ruby-forum.com/t/automating-form-creation/111670 "2007-08-09T17:35:53Z")

</div>

Hi! I want to auto-select the form method in my form creator to automate the creation of forms. Do you know any better way to do this? : (I want a better solution for this: form\_method f, @resource, attribute ) The e…

---

## [Partner (engineer) to build startup](https://www.ruby-forum.com/t/partner-engineer-to-build-startup/111669)

<div class="topic-metadata">

**Author:** [@bogea](https://www.ruby-forum.com/u/bogea)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 5:32pm UTC](https://www.ruby-forum.com/t/partner-engineer-to-build-startup/111669 "2007-08-09T17:32:17Z")

</div>

Hello, I’m looking for a partner to develop a web / mobile 2.0 project. I have a good idea and the goal is to build a team, develop a prototype and get investment to create a startup. I have a deep experience in mobi…

---

## [Optimize WINDOWS XP](https://www.ruby-forum.com/t/optimize-windows-xp/111667)

<div class="topic-metadata">

**Author:** [@John\_Travolta](https://www.ruby-forum.com/u/John_Travolta)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 5:27pm UTC](https://www.ruby-forum.com/t/optimize-windows-xp/111667 "2007-08-09T17:27:18Z")

</div>

Learn how to optimize your Windows XP with powerful tips and tricks

---

## [Using jEdit with Ruby on Rails](https://www.ruby-forum.com/t/using-jedit-with-ruby-on-rails/111668)

<div class="topic-metadata">

**Author:** [@iorion](https://www.ruby-forum.com/u/iorion)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/using-jedit-with-ruby-on-rails/111668 "2007-08-09T17:24:17Z")

</div>

Hi, first a note. I’m a new user who downloaded instant rails for win32, jedit, agile rails, and started working through the tutorials. I can’t believe how well it all works. Fantastic. I did run into one problem, w…

---

## [Has Many - Polymorphism Help](https://www.ruby-forum.com/t/has-many-polymorphism-help/111640)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 4\
**Last updated:** [August 9, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/has-many-polymorphism-help/111640 "2007-08-09T17:17:17Z")

</div>

Hello, I am working with a classification system. The client’s needs are outpacing my understanding of Rails model relationship concepts. There are sectors, and subsectors: A sector has\_many subsectors and a subsect…

---

## [Bids & Tenders](https://www.ruby-forum.com/t/bids-tenders/111666)

<div class="topic-metadata">

**Author:** [@mindtonic](https://www.ruby-forum.com/u/mindtonic)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/bids-tenders/111666 "2007-08-09T17:17:17Z")

</div>

Has anyone on here ever had experience translating government and business bid requests and tenders into a usable database? Is there a rails plugin for this type of thing?

---

## [Tuned cars!](https://www.ruby-forum.com/t/tuned-cars/111665)

<div class="topic-metadata">

**Author:** [@knjaz\_milos](https://www.ruby-forum.com/u/knjaz_milos)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/tuned-cars/111665 "2007-08-09T17:16:16Z")

</div>

Only for biggest fans

---

## [Problems with getting firstname from user in habtm relations](https://www.ruby-forum.com/t/problems-with-getting-firstname-from-user-in-habtm-relations/111639)

<div class="topic-metadata">

**Author:** [@Jesper\_Christiansen](https://www.ruby-forum.com/u/Jesper_Christiansen)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/problems-with-getting-firstname-from-user-in-habtm-relations/111639 "2007-08-09T16:49:14Z")

</div>

Hey there… In my view i have: \<%= @event.invited %\> In my event.rb I have: class Event \< ActiveRecord::Base has\_and\_belongs\_to\_many :users def invited users.compact.join(", ") end end In my users.rb I have: cl…

---

## [Dont know how to use :include](https://www.ruby-forum.com/t/dont-know-how-to-use-include/111579)

<div class="topic-metadata">

**Author:** [@Ajit](https://www.ruby-forum.com/u/Ajit)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/dont-know-how-to-use-include/111579 "2007-08-09T16:21:11Z")

</div>

Hi i have two tables treatmentcategories and treatmentitems. each category has many items. i have specified has\_many :treatmentitems in treatmentcategories.rb model and belongs\_to :treatmentcategories in treatmentit…

---

## [Use table instead of selectbox](https://www.ruby-forum.com/t/use-table-instead-of-selectbox/111658)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/use-table-instead-of-selectbox/111658 "2007-08-09T16:14:24Z")

</div>

Hi @all i hope someone can help me with my problem or give me a hint;-) okay let’s start : I have a “has and belongs to many”-association. I dont want to use a select box to show and edit the associations (\<%= selec…

---

## [Ruby on Rails hosting](https://www.ruby-forum.com/t/ruby-on-rails-hosting/111657)

<div class="topic-metadata">

**Author:** [@webmaster](https://www.ruby-forum.com/u/webmaster)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 4:11pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-hosting/111657 "2007-08-09T16:11:10Z")

</div>

top Ruby on Rails hosting can be found here with cheap prices http://www.thetopwebhost.com

---

## [Get error message](https://www.ruby-forum.com/t/get-error-message/111612)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 6\
**Last updated:** [August 9, 2007, 3:25pm UTC](https://www.ruby-forum.com/t/get-error-message/111612 "2007-08-09T15:25:11Z")

</div>

I have been programming in RoR for about 2 months now, but the projects that I have started I have aloways started in the middle, so I have never built anything from the ground up. I’m now trying to start from the beg…

---

## [Unauthorised unless request.format.xml?](https://www.ruby-forum.com/t/unauthorised-unless-request-format-xml/111630)

<div class="topic-metadata">

**Author:** [@tobycatlin](https://www.ruby-forum.com/u/tobycatlin)\
**Replies:** 4\
**Last updated:** [August 9, 2007, 2:29pm UTC](https://www.ruby-forum.com/t/unauthorised-unless-request-format-xml/111630 "2007-08-09T14:29:55Z")

</div>

Hi, I’m using REST in my controller so therefore using respond to blocks but I’d like to return an unauthorised header for certain methods (create, update, delete) unless the request is for xml. I don’t want any acti…

---

## [No route found to match "/rails/info/properties" with {:meth](https://www.ruby-forum.com/t/no-route-found-to-match-rails-info-properties-with-meth/111644)

<div class="topic-metadata">

**Author:** [@le\_colibri](https://www.ruby-forum.com/u/le_colibri)\
**Replies:** 4\
**Last updated:** [August 9, 2007, 2:11pm UTC](https://www.ruby-forum.com/t/no-route-found-to-match-rails-info-properties-with-meth/111644 "2007-08-09T14:11:52Z")

</div>

After a new install (Ruby, Rails en Gem) on a newly installed OS. I’m getting a ‘no route found to match’ error. I Googled a bit, and saw that more people had this problem with older rails versions. I’m on Ruby 1.8.6,…

---

## [FlexImage plugin, what are the valid image types?](https://www.ruby-forum.com/t/fleximage-plugin-what-are-the-valid-image-types/111645)

<div class="topic-metadata">

**Author:** [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 1:48pm UTC](https://www.ruby-forum.com/t/fleximage-plugin-what-are-the-valid-image-types/111645 "2007-08-09T13:48:32Z")

</div>

Hi, I have been unable to find the answer to this in any of the documentation and there does not seem to be a way to restrict file types? Does anyone know what are the valid image types this FlexImage plugin accepts…

---

## [Rmovie on windows](https://www.ruby-forum.com/t/rmovie-on-windows/111637)

<div class="topic-metadata">

**Author:** [@Thushan](https://www.ruby-forum.com/u/Thushan)\
**Replies:** 2\
**Last updated:** [August 9, 2007, 1:00pm UTC](https://www.ruby-forum.com/t/rmovie-on-windows/111637 "2007-08-09T13:00:44Z")

</div>

Can rmovie be installed in a windows environment? When I run “gem install rmovie”. It gives the following error: Building native extensions. This could take a while… ERROR: While executing gem … (Gem::Installer::Ex…

---

## [IMPORTANT, please help me!](https://www.ruby-forum.com/t/important-please-help-me/111444)

<div class="topic-metadata">

**Author:** [@demoversion](https://www.ruby-forum.com/u/demoversion)\
**Replies:** 11\
**Last updated:** [August 9, 2007, 12:28pm UTC](https://www.ruby-forum.com/t/important-please-help-me/111444 "2007-08-09T12:28:01Z")

</div>

Hello! I’m new to webhosting and choosing hoster, so i asked proffesionals who host own applications. I need to host my application - its a web-catalog of companies,products, with price-lists, some general informatio…

---

## [Password management / SVN / Capistrano](https://www.ruby-forum.com/t/password-management-svn-capistrano/111629)

<div class="topic-metadata">

**Author:** [@micktaiwan](https://www.ruby-forum.com/u/micktaiwan)\
**Replies:** 2\
**Last updated:** [August 9, 2007, 12:03pm UTC](https://www.ruby-forum.com/t/password-management-svn-capistrano/111629 "2007-08-09T12:03:35Z")

</div>

Hi, SVN I have recently put my project on Google Code. I didn’t want to put the database.yml in the SVN repository, as it contains my production server db password. I put a “database.yml.template” on the public svn …

---

## [How to replace string on the last?](https://www.ruby-forum.com/t/how-to-replace-string-on-the-last/111617)

<div class="topic-metadata">

**Author:** [@netskie](https://www.ruby-forum.com/u/netskie)\
**Replies:** 9\
**Last updated:** [August 9, 2007, 11:54am UTC](https://www.ruby-forum.com/t/how-to-replace-string-on-the-last/111617 "2007-08-09T11:54:34Z")

</div>

hello… if i have a string '12-34-56-78', how can i replace the '78' with ‘91’…pls…help… thanks

---

## [Is there something like Open VMS commons for Rails?](https://www.ruby-forum.com/t/is-there-something-like-open-vms-commons-for-rails/111636)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 11:46am UTC](https://www.ruby-forum.com/t/is-there-something-like-open-vms-commons-for-rails/111636 "2007-08-09T11:46:33Z")

</div>

Hello Back in the days on Digital Open VMS we were using commons to store large amounts of data in memory instead of going to the database each request. These commons are flushed to disc so after restarting the app, …

---

## [Globalize does'nt work: HELP ME PLEASE](https://www.ruby-forum.com/t/globalize-doesnt-work-help-me-please/111635)

<div class="topic-metadata">

**Author:** [@gianluca\_t](https://www.ruby-forum.com/u/gianluca_t)\
**Replies:** 0\
**Last updated:** [August 9, 2007, 11:29am UTC](https://www.ruby-forum.com/t/globalize-doesnt-work-help-me-please/111635 "2007-08-09T11:29:32Z")

</div>

Hi to all, seems that Globalize creates wrong sql statements on dinamic finders on translated columns (find\_by\_{attribute}) when locale is not en-US. Globalize Plugin (for\_1\_2) installed on vendor/plugins under appli…

---

## [PRoblem with Mongrel](https://www.ruby-forum.com/t/problem-with-mongrel/111619)

<div class="topic-metadata">

**Author:** [@neha-rohan](https://www.ruby-forum.com/u/neha-rohan)\
**Replies:** 4\
**Last updated:** [August 9, 2007, 11:21am UTC](https://www.ruby-forum.com/t/problem-with-mongrel/111619 "2007-08-09T11:21:16Z")

</div>

Hi, I have a strange problem. I have a mongrel cluster and when i am trying to access my url, then it s failing 1 out of 10 times. Then we tried it by accessing the url by specifying the mongrel id and we found that…

---

## [Getting up to speed on rest with edge rails](https://www.ruby-forum.com/t/getting-up-to-speed-on-rest-with-edge-rails/111600)

<div class="topic-metadata">

**Author:** [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 10:45am UTC](https://www.ruby-forum.com/t/getting-up-to-speed-on-rest-with-edge-rails/111600 "2007-08-09T10:45:12Z")

</div>

Other then digging through the edge rails docs and trying to put it all together that way, is there a good resource for using REST in edge rails? It’s what I don’t know that I’m worried about. I don’t want to get to…

---

## [Rendering XML to a web page](https://www.ruby-forum.com/t/rendering-xml-to-a-web-page/111545)

<div class="topic-metadata">

**Author:** [@magiclava](https://www.ruby-forum.com/u/magiclava)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 9:20am UTC](https://www.ruby-forum.com/t/rendering-xml-to-a-web-page/111545 "2007-08-09T09:20:53Z")

</div>

I have a couple of issues… First my XML looks like this: … … … … … …Here is the answer to your question … … …Here is the question … … So basically i would like to output each question within the questio…

---

## [Partial repeating the output from a collection](https://www.ruby-forum.com/t/partial-repeating-the-output-from-a-collection/111573)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 9, 2007, 9:16am UTC](https://www.ruby-forum.com/t/partial-repeating-the-output-from-a-collection/111573 "2007-08-09T09:16:32Z")

</div>

I have an array I’m trying to output with partials. The query find entries in the database correctly but the results are getting outputted repeatedly. For example, if there are 3 results from the query it would displa…

---

## [Execute additional commands after creating database?](https://www.ruby-forum.com/t/execute-additional-commands-after-creating-database/111429)

<div class="topic-metadata">

**Author:** [@martinos](https://www.ruby-forum.com/u/martinos)\
**Replies:** 4\
**Last updated:** [August 9, 2007, 9:05am UTC](https://www.ruby-forum.com/t/execute-additional-commands-after-creating-database/111429 "2007-08-09T09:05:17Z")

</div>

I’m writing some code that accesses some lagacy database on PostgreSQL. Since the old database had some really ughly and weird naming conventions (like CamelCase). To work around this I created a second schema (named …

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

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