# Rails

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

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

---

## [Upload document](https://www.ruby-forum.com/t/upload-document/143860)

<div class="topic-metadata">

**Author:** [@sujith](https://www.ruby-forum.com/u/sujith)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 11:02am UTC](https://www.ruby-forum.com/t/upload-document/143860 "2008-07-23T11:02:17Z")

</div>

i uploaded one document in word format it saved in public folder,now i want to read the following document,tell some solition

---

## [Rails and Giropay Integration help needed?](https://www.ruby-forum.com/t/rails-and-giropay-integration-help-needed/143760)

<div class="topic-metadata">

**Author:** [@ratnavel](https://www.ruby-forum.com/u/ratnavel)\
**Replies:** 1\
**Last updated:** [July 23, 2008, 10:02am UTC](https://www.ruby-forum.com/t/rails-and-giropay-integration-help-needed/143760 "2008-07-23T10:02:21Z")

</div>

Hi, I have a requirement to integrate paypal, google checkout, giropay to my application for payment processing. Am done with Paypal and google code. I need help in integrating giropay since my cliet is from Germany…

---

## [Conditional Sessions](https://www.ruby-forum.com/t/conditional-sessions/143627)

<div class="topic-metadata">

**Author:** [@bud](https://www.ruby-forum.com/u/bud)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 9:53am UTC](https://www.ruby-forum.com/t/conditional-sessions/143627 "2008-07-23T09:53:28Z")

</div>

I am new to rails but have been able to cobble together a pretty decent storefront and taken it live. However, creating a lot of false sessions. Tried to implement a check for user\_agent. The problem is that when I…

---

## [Howto turn off HTML escaping in form helper 'select'](https://www.ruby-forum.com/t/howto-turn-off-html-escaping-in-form-helper-select/143764)

<div class="topic-metadata">

**Author:** [@jeanluca](https://www.ruby-forum.com/u/jeanluca)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 9:20am UTC](https://www.ruby-forum.com/t/howto-turn-off-html-escaping-in-form-helper-select/143764 "2008-07-23T09:20:27Z")

</div>

Hi All I noticed that the form helper ‘select’ does automatically do HTML escaping for values within the option tag. I need to show thing like the euro sign, so I need to be able to turn this feature off. Controller: …

---

## [Using a has\_many association with a LEFt JOIN](https://www.ruby-forum.com/t/using-a-has-many-association-with-a-left-join/143757)

<div class="topic-metadata">

**Author:** [@Rory\_McKinley](https://www.ruby-forum.com/u/Rory_McKinley)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 7:00am UTC](https://www.ruby-forum.com/t/using-a-has-many-association-with-a-left-join/143757 "2008-07-23T07:00:21Z")

</div>

Hello List I have a Milestone model as follows: class Milestone \< ActiveRecord::Base belongs\_to :goal belongs\_to :user has\_many :progresses, :order =\> ‘created\_at DESC’ has\_many :views Which has an association wit…

---

## [RailsDB 0.3 Released](https://www.ruby-forum.com/t/railsdb-0-3-released/143836)

<div class="topic-metadata">

**Author:** [@destiney](https://www.ruby-forum.com/u/destiney)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 5:22am UTC](https://www.ruby-forum.com/t/railsdb-0-3-released/143836 "2008-07-23T05:22:34Z")

</div>

A new 0.3 revision of RailsDB has been released: Homepage: http://railsdb.org/ Download: http://railsdb.org/src/railsdb\_0.3.tar.bz2 Recent updates include: Support added for exporting data in several different form…

---

## [Undefined method \`first' for :users:Symbol](https://www.ruby-forum.com/t/undefined-method-first-for-symbol/143830)

<div class="topic-metadata">

**Author:** [@amrita](https://www.ruby-forum.com/u/amrita)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 4:18am UTC](https://www.ruby-forum.com/t/undefined-method-first-for-symbol/143830 "2008-07-23T04:18:17Z")

</div>

Hello, I am trying to move an existing fully functional Rails application from my laptop (Running Leopard) to my Desktop (Running Debian). I created a new Rails application on the Debian desktop and installed the res…

---

## [Bizarre auto\_complete problem](https://www.ruby-forum.com/t/bizarre-auto-complete-problem/143663)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [July 23, 2008, 3:53am UTC](https://www.ruby-forum.com/t/bizarre-auto-complete-problem/143663 "2008-07-23T03:53:43Z")

</div>

Hi - I’m having a really weird problem with text\_field\_with\_auto\_complete. I use this for looking up tags. When I type in the beginning of a tag, the drop down appears, and sometimes the contents of the is trunca…

---

## [Prompted to download octet-stream](https://www.ruby-forum.com/t/prompted-to-download-octet-stream/143735)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 1\
**Last updated:** [July 23, 2008, 3:52am UTC](https://www.ruby-forum.com/t/prompted-to-download-octet-stream/143735 "2008-07-23T03:52:33Z")

</div>

Hi - I have a rails site which works fine on my dev machine, works fine on my host with ie6, but with firefox, on certain pages, it prompts me to download an octet-stream. Anyone ever seen this and any ideas why? If…

---

## [Named\_scope](https://www.ruby-forum.com/t/named-scope/143743)

<div class="topic-metadata">

**Author:** [@casp](https://www.ruby-forum.com/u/casp)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 3:48am UTC](https://www.ruby-forum.com/t/named-scope/143743 "2008-07-23T03:48:27Z")

</div>

Hi, I’m trying to make a named\_scope that only lists Products with at least 1 comment. product.comments.size \> 0 \*Product has\_many :comments \*Comment belongs\_to :product I haven’t figured out how to using count/si…

---

## [Default URL and nested resources](https://www.ruby-forum.com/t/default-url-and-nested-resources/143824)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 3:18am UTC](https://www.ruby-forum.com/t/default-url-and-nested-resources/143824 "2008-07-23T03:18:33Z")

</div>

Say you have resources post and comments, post has many comments. You are in CommentsController#index because you asked for /posts/8/comments, and you need to generate a link to self with additional query string param…

---

## [Can someone please help a very eager Rails newbie?](https://www.ruby-forum.com/t/can-someone-please-help-a-very-eager-rails-newbie/143819)

<div class="topic-metadata">

**Author:** [@A\_Love\_of\_Surf](https://www.ruby-forum.com/u/A_Love_of_Surf)\
**Replies:** 4\
**Last updated:** [July 23, 2008, 3:15am UTC](https://www.ruby-forum.com/t/can-someone-please-help-a-very-eager-rails-newbie/143819 "2008-07-23T03:15:02Z")

</div>

ok, so I am trying to learn the ‘c’ in crud from a tutorial right now. Using the source below, I am loading the action ‘new’, filling out a form to create a new record, and submitting the form to save the record. Th…

---

## [Get a rails locale language value in a javascript function](https://www.ruby-forum.com/t/get-a-rails-locale-language-value-in-a-javascript-function/143814)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [July 23, 2008, 1:53am UTC](https://www.ruby-forum.com/t/get-a-rails-locale-language-value-in-a-javascript-function/143814 "2008-07-23T01:53:19Z")

</div>

in my environment.rb, the languge is defined : GLoc.set\_config :default\_language =\> :en when loading another page , a specific javascript function need to get this local as a var var useLanguage = “##” is it possib…

---

## [Routes dependent on subdomain](https://www.ruby-forum.com/t/routes-dependent-on-subdomain/143818)

<div class="topic-metadata">

**Author:** [@Hubert\_SSSSSSSSSpic](https://www.ruby-forum.com/u/Hubert_SSSSSSSSSpic)\
**Replies:** 0\
**Last updated:** [July 23, 2008, 1:18am UTC](https://www.ruby-forum.com/t/routes-dependent-on-subdomain/143818 "2008-07-23T01:18:49Z")

</div>

Hi, I’m having little problem getting my idea to work, would be very thankful if you could help me. I have one Ruby on Rails application sitting on server, and multiple subdomains, pointing to the same server/app. Fo…

---

## [How to detect if a string contains any funny characters from non English alphabets](https://www.ruby-forum.com/t/how-to-detect-if-a-string-contains-any-funny-characters-from-non-english-alphabets/143811)

<div class="topic-metadata">

**Author:** [@Chris\_Nowlan](https://www.ruby-forum.com/u/Chris_Nowlan)\
**Replies:** 2\
**Last updated:** [July 23, 2008, 1:11am UTC](https://www.ruby-forum.com/t/how-to-detect-if-a-string-contains-any-funny-characters-from-non-english-alphabets/143811 "2008-07-23T01:11:49Z")

</div>

Hello! I have a specific problem that maybe you can help with. Given an input of string (up to 1000 characters), how do I detect if the string is not written in “Roman Alphabets (A-Z)”, and by that I mean that the st…

---

## [REST w/ multiple views](https://www.ruby-forum.com/t/rest-w-multiple-views/143810)

<div class="topic-metadata">

**Author:** [@Mike\_Joslyn](https://www.ruby-forum.com/u/Mike_Joslyn)\
**Replies:** 3\
**Last updated:** [July 23, 2008, 12:17am UTC](https://www.ruby-forum.com/t/rest-w-multiple-views/143810 "2008-07-23T00:17:22Z")

</div>

I have app that will need to be able to display records matching a search criteria. What is the RESTful way to do this? Just an plain index action with search parameters? Should the query parameters be built into the …

---

## [Recommendation for separating bilingual contents](https://www.ruby-forum.com/t/recommendation-for-separating-bilingual-contents/143658)

<div class="topic-metadata">

**Author:** [@tadatoshi](https://www.ruby-forum.com/u/tadatoshi)\
**Replies:** 4\
**Last updated:** [July 22, 2008, 11:56pm UTC](https://www.ruby-forum.com/t/recommendation-for-separating-bilingual-contents/143658 "2008-07-22T23:56:51Z")

</div>

Hi, Is there any recommended way to separate the contents for different languages e.g. English and French? Especially, when the content is added by the user separately in English and French for the same one topic, ho…

---

## [Rails find condition that references an array generates error unless debugger is on](https://www.ruby-forum.com/t/rails-find-condition-that-references-an-array-generates-error-unless-debugger-is-on/142979)

<div class="topic-metadata">

**Author:** [@dacbo](https://www.ruby-forum.com/u/dacbo)\
**Replies:** 4\
**Last updated:** [July 22, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/rails-find-condition-that-references-an-array-generates-error-unless-debugger-is-on/142979 "2008-07-22T23:51:00Z")

</div>

I am getting inconsistent results when trying to pass an array as a find condition (using SQL WHERE…IN…). My code generates a StatementInvalid error unless execution is interrupted by the debugger, in which case the a…

---

## [ActiveRecord Associations issue](https://www.ruby-forum.com/t/activerecord-associations-issue/143756)

<div class="topic-metadata">

**Author:** [@CrazyMenConnected](https://www.ruby-forum.com/u/CrazyMenConnected)\
**Replies:** 3\
**Last updated:** [July 22, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/activerecord-associations-issue/143756 "2008-07-22T23:40:25Z")

</div>

Hello all and thank you for reading this message. I am new to RoR, and ruby too, but i am quite excited about it. I am developing a RoR project and with active record associations in the following manner Tables (all…

---

## [Social search engine -beta](https://www.ruby-forum.com/t/social-search-engine-beta/143813)

<div class="topic-metadata">

**Author:** [@Reddy\_On\_Rails](https://www.ruby-forum.com/u/Reddy_On_Rails)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/social-search-engine-beta/143813 "2008-07-22T23:39:50Z")

</div>

Hey, I am a rails developer. I like the following search engine… Please post ur comments about it… looks like this was developed using RoR Did you hear about Scour? It is the next gen search engine with Google/Yah…

---

## [Ruby On Rails! San Francisco, CA, Closure on Friday rate- open/hr C2C 1 months +](https://www.ruby-forum.com/t/ruby-on-rails-san-francisco-ca-closure-on-friday-rate-open-hr-c2c-1-months/143812)

<div class="topic-metadata">

**Author:** [@beanish.arti](https://www.ruby-forum.com/u/beanish.arti)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 11:38pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-san-francisco-ca-closure-on-friday-rate-open-hr-c2c-1-months/143812 "2008-07-22T23:38:39Z")

</div>

Project Description:The project is a web based application, whereby users can search for their favorite destinations using Google maps. These destinations will then be saved in an online database, individual to each u…

---

## [Help creating array/struct for select tag](https://www.ruby-forum.com/t/help-creating-array-struct-for-select-tag/143797)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 7\
**Last updated:** [July 22, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/help-creating-array-struct-for-select-tag/143797 "2008-07-22T23:15:49Z")

</div>

here is my current code \<%= select\_tag(:order, options\_for\_select(@orders, params\[:order\].to\_s)) %\> I am using some data that is not in a database so I generated a hash like the following: @orders = {'Name =\> ‘name’…

---

## [Retrieving whole URL in rails](https://www.ruby-forum.com/t/retrieving-whole-url-in-rails/143793)

<div class="topic-metadata">

**Author:** [@gattone](https://www.ruby-forum.com/u/gattone)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/retrieving-whole-url-in-rails/143793 "2008-07-22T23:15:14Z")

</div>

I was wondering if there is a method (or a way in any sense) to gather the whole URL (the current one, the url in which a hypothetical user is seeing in the moment), with all the detail (with all the http://,subdomain…

---

## [Maintaining referental Integrity](https://www.ruby-forum.com/t/maintaining-referental-integrity/143787)

<div class="topic-metadata">

**Author:** [@mitch\_newbie](https://www.ruby-forum.com/u/mitch_newbie)\
**Replies:** 5\
**Last updated:** [July 22, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/maintaining-referental-integrity/143787 "2008-07-22T23:01:46Z")

</div>

If I have two models that are in a one-to-one relationship in Ruby on Rails, and I wish to delete a record. How do I make sure I will delete all the related data from both tables? Is there a simple elegant Ruby way t…

---

## [Module methods as controller actions](https://www.ruby-forum.com/t/module-methods-as-controller-actions/143655)

<div class="topic-metadata">

**Author:** [@blackflash](https://www.ruby-forum.com/u/blackflash)\
**Replies:** 6\
**Last updated:** [July 22, 2008, 10:56pm UTC](https://www.ruby-forum.com/t/module-methods-as-controller-actions/143655 "2008-07-22T22:56:29Z")

</div>

Is it possible to include module methods as controller actions and use them?

---

## [Sessions](https://www.ruby-forum.com/t/sessions/143802)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 2\
**Last updated:** [July 22, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/sessions/143802 "2008-07-22T22:34:37Z")

</div>

If I set every user’s session\[:user\_id\] = user.id (model object.id) and saved it in activerecord table sessions, how would I extract everyone’s session\[:user\_id\] from the sessions table, so I can display who’s online? …

---

## [Model error\_messages\_for](https://www.ruby-forum.com/t/model-error-messages-for/143795)

<div class="topic-metadata">

**Author:** [@jturney](https://www.ruby-forum.com/u/jturney)\
**Replies:** 4\
**Last updated:** [July 22, 2008, 10:06pm UTC](https://www.ruby-forum.com/t/model-error-messages-for/143795 "2008-07-22T22:06:38Z")

</div>

I have this in my form view: \<%= error\_messages\_for ‘post’ %\> I’m not using form\_for, just a regular form\_tag: \<% form\_tag :action =\> ‘save\_requirement’ do %\> The error messages do not pop up, any suggestions? Thank…

---

## [RoR broken on my Mac; please help](https://www.ruby-forum.com/t/ror-broken-on-my-mac-please-help/143604)

<div class="topic-metadata">

**Author:** [@lego8](https://www.ruby-forum.com/u/lego8)\
**Replies:** 6\
**Last updated:** [July 22, 2008, 9:14pm UTC](https://www.ruby-forum.com/t/ror-broken-on-my-mac-please-help/143604 "2008-07-22T21:14:22Z")

</div>

Hi, I’m new to the RoR language, and I’m being set back by an uncooperative installation of Ruby (and Rails). I followed the instructions at Dan Benjamin but my problem still persists. Whenever I try to do a gem co…

---

## [Rails front-end to OpenLDAP directory](https://www.ruby-forum.com/t/rails-front-end-to-openldap-directory/143794)

<div class="topic-metadata">

**Author:** [@Mitchell\_Smith](https://www.ruby-forum.com/u/Mitchell_Smith)\
**Replies:** 1\
**Last updated:** [July 22, 2008, 8:29pm UTC](https://www.ruby-forum.com/t/rails-front-end-to-openldap-directory/143794 "2008-07-22T20:29:11Z")

</div>

Greetings, I am trying to locate some doco on building a rails front-end to an LDAP directory. If anyone has some pointers on how to go about modelling my LDAP directory structure in such a way that it behaves like a…

---

## [Voting with sessions](https://www.ruby-forum.com/t/voting-with-sessions/143791)

<div class="topic-metadata">

**Author:** [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Replies:** 0\
**Last updated:** [July 22, 2008, 8:11pm UTC](https://www.ruby-forum.com/t/voting-with-sessions/143791 "2008-07-22T20:11:35Z")

</div>

hi - i want to enable voting on my site, but i don’t want to require a login. i realize people might clear their cookies and revote, that’s fine for now. the questions are: how should i do this? Do i grab the id…

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

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