# Rails

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

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

---

## [How I do different has\_and\_belongs\_to\_many for the same model?](https://www.ruby-forum.com/t/how-i-do-different-has-and-belongs-to-many-for-the-same-model/184414)

<div class="topic-metadata">

**Author:** [@frank\_programmer](https://www.ruby-forum.com/u/frank_programmer)\
**Replies:** 10\
**Last updated:** [March 3, 2010, 12:54am UTC](https://www.ruby-forum.com/t/how-i-do-different-has-and-belongs-to-many-for-the-same-model/184414 "2010-03-03T00:54:52Z")

</div>

Hi, I have a team which has and belongs to many players. class Team \< ActiveRecord::Base has\_and\_belongs\_to\_many :players end class Player \< ActiveRecord::Base has\_and\_belongs\_to\_many :teams end What I’d like to …

---

## [Anyone using globalize2\_versioning?](https://www.ruby-forum.com/t/anyone-using-globalize2-versioning/184451)

<div class="topic-metadata">

**Author:** [@Kyle\_F](https://www.ruby-forum.com/u/Kyle_F)\
**Replies:** 4\
**Last updated:** [March 3, 2010, 12:40am UTC](https://www.ruby-forum.com/t/anyone-using-globalize2-versioning/184451 "2010-03-03T00:40:14Z")

</div>

Globalize2 looks awesome, but our app also requires versioning. I’m looking at globalize2\_versioning\[1\] but it looks fairly out of date, and I can’t seem to get it to load properly. (I’m using both as rails plugins)…

---

## [Interpolation-feature suggestion:](https://www.ruby-forum.com/t/interpolation-feature-suggestion/182705)

<div class="topic-metadata">

**Author:** [@grimen](https://www.ruby-forum.com/u/grimen)\
**Replies:** 10\
**Last updated:** [March 3, 2010, 12:09am UTC](https://www.ruby-forum.com/t/interpolation-feature-suggestion/182705 "2010-03-03T00:09:48Z")

</div>

Messaged to Sven directly, but maybe makes more sense to share: After using i18n for quite some time and extending i with own extensions/powers I found one features that is lacking that really should be useful feature…

---

## [\[JOBS\] Lead Web Developer Opportunity at the Pandora for Wine (San Francisco, CA)](https://www.ruby-forum.com/t/jobs-lead-web-developer-opportunity-at-the-pandora-for-wine-san-francisco-ca/184463)

<div class="topic-metadata">

**Author:** [@WineTamer](https://www.ruby-forum.com/u/WineTamer)\
**Replies:** 0\
**Last updated:** [March 2, 2010, 11:03pm UTC](https://www.ruby-forum.com/t/jobs-lead-web-developer-opportunity-at-the-pandora-for-wine-san-francisco-ca/184463 "2010-03-02T23:03:03Z")

</div>

Description: We are a new start-up based in San Francisco looking for a lead developer. We are building the “Pandora for Wine.” If you like challenges and free wine, we have plenty of both. As the Lead Developer at W…

---

## [Unicode](https://www.ruby-forum.com/t/unicode/184417)

<div class="topic-metadata">

**Author:** [@ash34](https://www.ruby-forum.com/u/ash34)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 10:31pm UTC](https://www.ruby-forum.com/t/unicode/184417 "2010-03-02T22:31:52Z")

</div>

I am using rails 2.3 and an existing oracle database with utf8 encoding. Also have the following tag in my layout. Can someone point me to any documentation for setting up my environment to save and display chinese c…

---

## [Photo gallery for each User](https://www.ruby-forum.com/t/photo-gallery-for-each-user/183849)

<div class="topic-metadata">

**Author:** [@Learn\_by\_D](https://www.ruby-forum.com/u/Learn_by_D)\
**Replies:** 3\
**Last updated:** [March 2, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/photo-gallery-for-each-user/183849 "2010-03-02T21:02:28Z")

</div>

What is the fastest and easiest way to build a photo gallery for each user in my User model? I’d just like to have a very simple gallery for each user, perhaps limited to just 5 small photos each to display to other u…

---

## [Does a ror "per-site scoped login" Content Management System exists ( not radiant)?](https://www.ruby-forum.com/t/does-a-ror-per-site-scoped-login-content-management-system-exists-not-radiant/184372)

<div class="topic-metadata">

**Author:** [@rubybox](https://www.ruby-forum.com/u/rubybox)\
**Replies:** 2\
**Last updated:** [March 2, 2010, 8:08pm UTC](https://www.ruby-forum.com/t/does-a-ror-per-site-scoped-login-content-management-system-exists-not-radiant/184372 "2010-03-02T20:08:36Z")

</div>

Are there any CMS systems out there that have multisite support with a single user login per site ? Radiant has this functionality if you combine several extensions for it, but it does not feel stable yet and is a pai…

---

## [Remove apostrophe in query](https://www.ruby-forum.com/t/remove-apostrophe-in-query/184353)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 3\
**Last updated:** [March 2, 2010, 8:03pm UTC](https://www.ruby-forum.com/t/remove-apostrophe-in-query/184353 "2010-03-02T20:03:55Z")

</div>

Hi, I want to generate a query with conditions like that :conditions =\> \[“score\_team\_1 ? score\_team\_2”, compare\_sign\] . The resulting query ends e.g. with score\_team\_1 ‘=’ score\_team\_2 How can i remove the apos…

---

## ["generate scaffold" generated plural name in routes.rb -- why?](https://www.ruby-forum.com/t/generate-scaffold-generated-plural-name-in-routes-rb-why/184429)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [March 2, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/generate-scaffold-generated-plural-name-in-routes-rb-why/184429 "2010-03-02T18:49:33Z")

</div>

Hi, I ran: http://localhost:3000/ I got: Routing Error No route matches “/” with {:method=\>:get} I had just run: ruby script/generate scaffold vendor nickname:string qbname:string rename public\\index.html to --i…

---

## [Request.remote\_ip with AJAX](https://www.ruby-forum.com/t/request-remote-ip-with-ajax/184409)

<div class="topic-metadata">

**Author:** [@ajaxrequest](https://www.ruby-forum.com/u/ajaxrequest)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/request-remote-ip-with-ajax/184409 "2010-03-02T18:25:59Z")

</div>

Hello everyone. I have a problem with “request.remote\_ip” I made an array: 1 ip = request.remote\_ip 2 $ address \[ip\] = (: test =\> “OK”) … … … 11 ip = request.remote\_ip # (along with a lot of AJAX calls…

---

## [Post Methods](https://www.ruby-forum.com/t/post-methods/184440)

<div class="topic-metadata">

**Author:** [@Alvaro\_Diaz](https://www.ruby-forum.com/u/Alvaro_Diaz)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 5:39pm UTC](https://www.ruby-forum.com/t/post-methods/184440 "2010-03-02T17:39:18Z")

</div>

Hello!, I’m a RoR begginer, i need it to make a web interface for a bigger project that i’m developing in Ruby, but i don’t know how to do the next: I want to read a config file of my main program (a normal conf file)…

---

## [What is InvalidAuthenticityToken?](https://www.ruby-forum.com/t/what-is-invalidauthenticitytoken/184432)

<div class="topic-metadata">

**Author:** [@rubyernewbie](https://www.ruby-forum.com/u/rubyernewbie)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 5:36pm UTC](https://www.ruby-forum.com/t/what-is-invalidauthenticitytoken/184432 "2010-03-02T17:36:23Z")

</div>

I create a ruby script to submit a post to my local rails application, but doesn’t return a data. so I open a log file, saw this. ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): …

---

## [Cancel periodically\_call\_remote?](https://www.ruby-forum.com/t/cancel-periodically-call-remote/110380)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 10\
**Last updated:** [March 2, 2010, 5:03pm UTC](https://www.ruby-forum.com/t/cancel-periodically-call-remote/110380 "2010-03-02T17:03:58Z")

</div>

So I have a periodically\_call\_remote call happenign every 5 seconds. After about 10-20 seconds at most, everything that it needs to do is done, and it doesn’t need to fire anymore. Now, I can take advantage of the :co…

---

## [Multiple RoR Opportunities in NYC](https://www.ruby-forum.com/t/multiple-ror-opportunities-in-nyc/184443)

<div class="topic-metadata">

**Author:** [@silversearchjobs](https://www.ruby-forum.com/u/silversearchjobs)\
**Replies:** 0\
**Last updated:** [March 2, 2010, 4:56pm UTC](https://www.ruby-forum.com/t/multiple-ror-opportunities-in-nyc/184443 "2010-03-02T16:56:46Z")

</div>

Please email me for more details at jaya at silversearchinc dot com This is a ground floor opportunity to build an entirely new Web Presence for one of the worldâ€™s leading organizations. The company dominates their…

---

## [Update in transactions](https://www.ruby-forum.com/t/update-in-transactions/184433)

<div class="topic-metadata">

**Author:** [@hemantborole](https://www.ruby-forum.com/u/hemantborole)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/update-in-transactions/184433 "2010-03-02T16:54:12Z")

</div>

Can i update attributes in transaction… I mean while saving a record i do like this:- object = Model.new(params\[:model\]) Model.transaction do object.save! end Can we also do it for updating a record… i mean like th…

---

## [Gem or Plug-in to implement PayPal Adaptive Payment : Send money API](https://www.ruby-forum.com/t/gem-or-plug-in-to-implement-paypal-adaptive-payment-send-money-api/184439)

<div class="topic-metadata">

**Author:** [@sathish\_kumar](https://www.ruby-forum.com/u/sathish_kumar)\
**Replies:** 0\
**Last updated:** [March 2, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/gem-or-plug-in-to-implement-paypal-adaptive-payment-send-money-api/184439 "2010-03-02T16:44:15Z")

</div>

Hi All, I was searching for the gem which is supporting PayPal’s almost API. Then I found ActiveMerchant. Our project payment flow is, Scenario 1: User will send payment to admin user (there two kind of users one is…

---

## [Unable to run RoR project(redmine) under the Xampp(windows)!](https://www.ruby-forum.com/t/unable-to-run-ror-project-redmine-under-the-xampp-windows/184438)

<div class="topic-metadata">

**Author:** [@prince\_shahnawaz](https://www.ruby-forum.com/u/prince_shahnawaz)\
**Replies:** 0\
**Last updated:** [March 2, 2010, 4:44pm UTC](https://www.ruby-forum.com/t/unable-to-run-ror-project-redmine-under-the-xampp-windows/184438 "2010-03-02T16:44:15Z")

</div>

I have been trying to set-up & run Ruby On Rails project(Redmine) on my existing working environment under the xampp. I also set-up so many things which really needs for running Ruby On Rails Projects. But still facin…

---

## [Page.toggle](https://www.ruby-forum.com/t/page-toggle/184435)

<div class="topic-metadata">

**Author:** [@erwillie](https://www.ruby-forum.com/u/erwillie)\
**Replies:** 0\
**Last updated:** [March 2, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/page-toggle/184435 "2010-03-02T16:08:03Z")

</div>

Hi everybody: I want to hide an image while it loading, I think that page.toggle itÂ´s a good idea but it doesnÂ´t work, some one can help me. Here my source code \<%= javascript\_include\_tag 'prototype' %\> \<%= page…

---

## [Available - SAP FSCM Treasury, MQ developer, QA](https://www.ruby-forum.com/t/available-sap-fscm-treasury-mq-developer-qa/184430)

<div class="topic-metadata">

**Author:** [@Robinson\_Crusoe\_Abe](https://www.ruby-forum.com/u/Robinson_Crusoe_Abe)\
**Replies:** 0\
**Last updated:** [March 2, 2010, 2:37pm UTC](https://www.ruby-forum.com/t/available-sap-fscm-treasury-mq-developer-qa/184430 "2010-03-02T14:37:15Z")

</div>

Hi All, Please reply me back in case you have any suitable requirements for the below candidates. All are our W2 candidates and willing to relocate anywhere in US. Aldrin - SAP Treasury FSCM ï‚§ Overall 18 years of…

---

## [Localized host in ActionMailer Views](https://www.ruby-forum.com/t/localized-host-in-actionmailer-views/184426)

<div class="topic-metadata">

**Author:** [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 2:07pm UTC](https://www.ruby-forum.com/t/localized-host-in-actionmailer-views/184426 "2010-03-02T14:07:24Z")

</div>

Hi, I’ve got some domains , lets say example.com and example.de and I want that the link in a ActionMailerView contains the correct localized host e.g. with \<%= @root\_url %\> . Currently the host is set in the environ…

---

## [Available - SAP FSCM, MQ developer, QA](https://www.ruby-forum.com/t/available-sap-fscm-mq-developer-qa/184428)

<div class="topic-metadata">

**Author:** [@Robinson\_Crusoe\_Abe](https://www.ruby-forum.com/u/Robinson_Crusoe_Abe)\
**Replies:** 0\
**Last updated:** [March 2, 2010, 1:55pm UTC](https://www.ruby-forum.com/t/available-sap-fscm-mq-developer-qa/184428 "2010-03-02T13:55:06Z")

</div>

Hi Rahul, Please reply me back in case you have any suitable requirements for the below candidates. All are our W2 candidates and willing to relocate anywhere in US. Aldrin - SAP Treasury FSCM ï‚§ Overall 18 years …

---

## [No such file to load -- opendirectory/user](https://www.ruby-forum.com/t/no-such-file-to-load-opendirectory-user/184425)

<div class="topic-metadata">

**Author:** [@ClSSSSment47](https://www.ruby-forum.com/u/ClSSSSment47)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 12:03pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-opendirectory-user/184425 "2010-03-02T12:03:53Z")

</div>

Hello everyone, I encountered a problem when i launch a Rails Application with “Run as” in RadRails. It is not a problem on my project but on the installation of RadRails or the gem package or Ruby On Rails… I am los…

---

## [Date\_select with Searchlogic](https://www.ruby-forum.com/t/date-select-with-searchlogic/184117)

<div class="topic-metadata">

**Author:** [@sclarke](https://www.ruby-forum.com/u/sclarke)\
**Replies:** 2\
**Last updated:** [March 2, 2010, 11:53am UTC](https://www.ruby-forum.com/t/date-select-with-searchlogic/184117 "2010-03-02T11:53:04Z")

</div>

I am aware that date selects params are supposed to supported by Searchlogic. But I’m battling to get them working. I am using one of the named\_scopes that it makes, and it works perfectly in the console: User.creat…

---

## [Any training institutes for RoR in India?](https://www.ruby-forum.com/t/any-training-institutes-for-ror-in-india/184317)

<div class="topic-metadata">

**Author:** [@meghana](https://www.ruby-forum.com/u/meghana)\
**Replies:** 13\
**Last updated:** [March 2, 2010, 11:20am UTC](https://www.ruby-forum.com/t/any-training-institutes-for-ror-in-india/184317 "2010-03-02T11:20:59Z")

</div>

Hello friends, Are there any good training institutes for RoR in India ?? Would be of great help. Thank you

---

## [Is there a .NET equivalent to Rails Migrations? (anyone know?)](https://www.ruby-forum.com/t/is-there-a-net-equivalent-to-rails-migrations-anyone-know/184355)

<div class="topic-metadata">

**Author:** [@greghauptmann](https://www.ruby-forum.com/u/greghauptmann)\
**Replies:** 2\
**Last updated:** [March 2, 2010, 11:19am UTC](https://www.ruby-forum.com/t/is-there-a-net-equivalent-to-rails-migrations-anyone-know/184355 "2010-03-02T11:19:24Z")

</div>

is there a .NET equivalent to Rails Migrations? (anyone know?) (e.g. for managing database changes across versions for a .NET C# project)

---

## [How to get unescaped value of request.url AS-IS?](https://www.ruby-forum.com/t/how-to-get-unescaped-value-of-request-url-as-is/184420)

<div class="topic-metadata">

**Author:** [@ct9a](https://www.ruby-forum.com/u/ct9a)\
**Replies:** 0\
**Last updated:** [March 2, 2010, 11:03am UTC](https://www.ruby-forum.com/t/how-to-get-unescaped-value-of-request-url-as-is/184420 "2010-03-02T11:03:35Z")

</div>

hi guys, Calling request.url returns “http://gozila-underground.com/search? search%5Bby\_keyword%5D=&commit=Search” which is an escaped version of “http://gozila-underground.com:3000/search? search\[by\_keyword\]=&commit…

---

## [Redirect issue](https://www.ruby-forum.com/t/redirect-issue/184415)

<div class="topic-metadata">

**Author:** [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Replies:** 1\
**Last updated:** [March 2, 2010, 8:11am UTC](https://www.ruby-forum.com/t/redirect-issue/184415 "2010-03-02T08:11:43Z")

</div>

Dear Friendz, I have found a unique issue. This is the first time iam getting a issue like this. I have created a add, delete page. after adding or deleting functionality it should redirect to list page. Everything wa…

---

## [Problem with regexp split](https://www.ruby-forum.com/t/problem-with-regexp-split/184376)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 8\
**Last updated:** [March 2, 2010, 2:13am UTC](https://www.ruby-forum.com/t/problem-with-regexp-split/184376 "2010-03-02T02:13:45Z")

</div>

I am trying to split some text into an array seperated by one or more Here is some test code: s = “one two three four” p s.split(/( )+/); it should split into \[“one”,“two”,“three”,“four”\] because the / ( )+…

---

## [Tweetstream](https://www.ruby-forum.com/t/tweetstream/184392)

<div class="topic-metadata">

**Author:** [@jcain](https://www.ruby-forum.com/u/jcain)\
**Replies:** 3\
**Last updated:** [March 2, 2010, 1:56am UTC](https://www.ruby-forum.com/t/tweetstream/184392 "2010-03-02T01:56:18Z")

</div>

Hi, I want to use the TweetStream gem http://github.com/intridea/tweetstreamin my Rails app I can’t seem to figure out how to do it, because it opens a connection and then won’t move on. I got it to work in a Ruby s…

---

## [Rails 3 engine plugin's routes not recognized](https://www.ruby-forum.com/t/rails-3-engine-plugins-routes-not-recognized/183494)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 3\
**Last updated:** [March 2, 2010, 1:31am UTC](https://www.ruby-forum.com/t/rails-3-engine-plugins-routes-not-recognized/183494 "2010-03-02T01:31:43Z")

</div>

Hi, my Rails 3 engine plugin’s routes are not recognized (‘No route matches…’) even though they seem to get registered ok (they show up in Rails.application.routes) - any idea why anybody? Thanks! Ingo

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

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