# Top

**URL:** https://www.ruby-forum.com/top.md?page=1779

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

---

## [Lost in routing](https://www.ruby-forum.com/t/lost-in-routing/99590)

<div class="topic-metadata">

**Author:** [@justsomeone](https://www.ruby-forum.com/u/justsomeone)\
**Replies:** 3\
**Last updated:** [February 1, 2006, 4:49am UTC](https://www.ruby-forum.com/t/lost-in-routing/99590 "2006-02-01T04:49:57Z")

</div>

I’m trying to create a modules based system where my controllers are all under modules. So the structure looks something like: app/ controllers/ message/ news\_controller.rb email\_controller.rb library books\_contr…

---

## [Error Handling](https://www.ruby-forum.com/t/error-handling/94542)

<div class="topic-metadata">

**Author:** [@sainaba](https://www.ruby-forum.com/u/sainaba)\
**Replies:** 3\
**Last updated:** [January 6, 2006, 1:53pm UTC](https://www.ruby-forum.com/t/error-handling/94542 "2006-01-06T13:53:15Z")

</div>

Hi, I am doing a project on invoice. For that I have to use a page both for crating new invoices and for updation of existing invoices. The problem is that when an error occures, I can’t maintain the same page for err…

---

## [Detect Browser Dimension](https://www.ruby-forum.com/t/detect-browser-dimension/53611)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [December 16, 2005, 4:30am UTC](https://www.ruby-forum.com/t/detect-browser-dimension/53611 "2005-12-16T04:30:10Z")

</div>

Dear all, I’ve just been turned on to Ruby and am trying to code a first Ruby CGI. I’ve already hit a brick wall. I’m looking to see if there is a method similar to PHP’s screen.width() and screen.height() so I can …

---

## [Problem calling has\_many's defined attributes on a specific](https://www.ruby-forum.com/t/problem-calling-has-manys-defined-attributes-on-a-specific/47946)

<div class="topic-metadata">

**Author:** [@agenteo](https://www.ruby-forum.com/u/agenteo)\
**Replies:** 3\
**Last updated:** [November 15, 2005, 3:30pm UTC](https://www.ruby-forum.com/t/problem-calling-has-manys-defined-attributes-on-a-specific/47946 "2005-11-15T15:30:29Z")

</div>

Hi, I’ve got two postgres tables: CREATE TABLE prodotti (it’s a products table) ( id serial NOT NULL, descrizione varchar NOT NULL, client\_id int8 NOT NULL, CONSTRAINT prodotti\_pkey PRIMARY KEY (id) ) WITHOUT OI…

---

## [Cloning AR doesn't clone associations?](https://www.ruby-forum.com/t/cloning-ar-doesnt-clone-associations/47639)

<div class="topic-metadata">

**Author:** [@jeroen](https://www.ruby-forum.com/u/jeroen)\
**Replies:** 3\
**Last updated:** [November 12, 2005, 12:49pm UTC](https://www.ruby-forum.com/t/cloning-ar-doesnt-clone-associations/47639 "2005-11-12T12:49:52Z")

</div>

Hi, Am I right in thinking that cloning an ActiveRecord does not close its associations? If so, any particluar reason for this? Jeroen

---

## [Ground the USRP1](https://www.ruby-forum.com/t/ground-the-usrp1/180854)

<div class="topic-metadata">

**Author:** [@Johnny\_Vestergaard](https://www.ruby-forum.com/u/Johnny_Vestergaard)\
**Replies:** 6\
**Last updated:** [January 5, 2010, 5:52am UTC](https://www.ruby-forum.com/t/ground-the-usrp1/180854 "2010-01-05T05:52:26Z")

</div>

Hi, I recently acquired a USRP1 and are looking to improve reception of the TVRX board (i know it’s a cable tuner and has noise “issues”). I noticed the GND pins on the USRP1 board and are wondering if i am supposed …

---

## [Multithreading problem](https://www.ruby-forum.com/t/multithreading-problem/130315)

<div class="topic-metadata">

**Author:** [@learningruby](https://www.ruby-forum.com/u/learningruby)\
**Replies:** 6\
**Last updated:** [February 28, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/multithreading-problem/130315 "2008-02-28T18:32:28Z")

</div>

Hi All, I am pretty much a starter in multi-threading. In one of my application, I needed to run three threads along each other. Here is my code require ‘rubygems’ require ‘mechanize’ require ‘fileutils’ re…

---

## [User.roles -- How do you list the role names of the user?](https://www.ruby-forum.com/t/user-roles-how-do-you-list-the-role-names-of-the-user/119686)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 6\
**Last updated:** [November 9, 2007, 7:27am UTC](https://www.ruby-forum.com/t/user-roles-how-do-you-list-the-role-names-of-the-user/119686 "2007-11-09T07:27:39Z")

</div>

Hello, I want to list out the role names that belong to a user. I have user.roles as the table, so I’m interested in the “name” column on that roles table. If I want to separate the names using a comma \[ e.g. using .…

---

## [AJAX request](https://www.ruby-forum.com/t/ajax-request/81049)

<div class="topic-metadata">

**Author:** [@addywaddy](https://www.ruby-forum.com/u/addywaddy)\
**Replies:** 6\
**Last updated:** [January 4, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/ajax-request/81049 "2007-01-04T17:18:24Z")

</div>

I’m having a bit of problem with my remote responses … I’ve got this link: \<%= link\_to\_remote(\_("\_add"), :url =\> {:controller =\> ‘versions’, :action =\> ‘new’, :project =\> @project, :id =\> @document}, :loading =\> “E…

---

## [Application Error](https://www.ruby-forum.com/t/application-error/74289)

<div class="topic-metadata">

**Author:** [@Ryan\_Edwards-Crewe](https://www.ruby-forum.com/u/Ryan_Edwards-Crewe)\
**Replies:** 6\
**Last updated:** [November 7, 2006, 10:59am UTC](https://www.ruby-forum.com/t/application-error/74289 "2006-11-07T10:59:25Z")

</div>

I think I’m relativly close to getting rails up on my domain but I get this application error if I try to run the page. Application error Rails application failed to start properly" At first it was a disptath.cgi err…

---

## [Capistrano is Crazy Delicious!](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567)

<div class="topic-metadata">

**Author:** [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Replies:** 6\
**Last updated:** [September 22, 2006, 12:35am UTC](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567 "2006-09-22T00:35:37Z")

</div>

I just want to say that after finally figuring out how to make Capistrano work, it’s unbelievably cool. I kept hearing people in the Rails community freak out over it, but I had a heck of a hard time making it work …

---

## [Setting image](https://www.ruby-forum.com/t/setting-image/225595)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [January 17, 2013, 3:50pm UTC](https://www.ruby-forum.com/t/setting-image/225595 "2013-01-17T15:50:59Z")

</div>

Hello All, I am uploading an image from disc. While choosing the image I want to show that image on the UI. How can I do that? I am using paperclip gem. Thanks, Avi

---

## [Rails tag issue with html](https://www.ruby-forum.com/t/rails-tag-issue-with-html/218061)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [March 20, 2012, 10:53am UTC](https://www.ruby-forum.com/t/rails-tag-issue-with-html/218061 "2012-03-20T10:53:01Z")

</div>

\<%= form\_tag( { :controller =\> 'businesses', :action =\> 'create' }, { :id =\> 'myform',:class =\> 'form-inline offset3', :method =\> 'post'}) do %\> \<%= text\_field\_tag('mnum' ,nil, :class =\> "input-xlarge", :styl…

---

## [Jquery questions](https://www.ruby-forum.com/t/jquery-questions/214847)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [December 14, 2011, 6:46pm UTC](https://www.ruby-forum.com/t/jquery-questions/214847 "2011-12-14T18:46:19Z")

</div>

Rails 3.1.x 2 questions… Perhaps I am doing this too much in the raw of jquery but I can’t seem to find any other way to do these things 1 - drag\_drop.js has… $.post( "groups/add\_member/", { "add": ui.draggable.te…

---

## [Rails generate tool takes about 20 seconds to start for any action](https://www.ruby-forum.com/t/rails-generate-tool-takes-about-20-seconds-to-start-for-any-action/209853)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [July 25, 2011, 7:43pm UTC](https://www.ruby-forum.com/t/rails-generate-tool-takes-about-20-seconds-to-start-for-any-action/209853 "2011-07-25T19:43:13Z")

</div>

When I run “rails generate -h” it takes a little more than 20 seconds to print anything, the other tools, like controller, model, scaffolding, migrations, etc, too. While the code is executing it uses 100% of CPU (wel…

---

## [ROR Sample applications for training](https://www.ruby-forum.com/t/ror-sample-applications-for-training/189413)

<div class="topic-metadata">

**Author:** [@jsn1](https://www.ruby-forum.com/u/jsn1)\
**Replies:** 4\
**Last updated:** [May 31, 2010, 7:37pm UTC](https://www.ruby-forum.com/t/ror-sample-applications-for-training/189413 "2010-05-31T19:37:56Z")

</div>

Hi all I am currently looking for any ROR sample applciation used for training. I am in the processes of collecting requirements/analyzing/designing a web site that will provide training

---

## [Using AWS RDS with Rails](https://www.ruby-forum.com/t/using-aws-rds-with-rails/187475)

<div class="topic-metadata">

**Author:** [@soesan01](https://www.ruby-forum.com/u/soesan01)\
**Replies:** 4\
**Last updated:** [April 24, 2010, 7:14pm UTC](https://www.ruby-forum.com/t/using-aws-rds-with-rails/187475 "2010-04-24T19:14:10Z")

</div>

Guys, Could you give pointer how I can use AWS RDS with rails? Is there any plugins to accomplish this? Thank you for you help. Yudi

---

## [Question about named route](https://www.ruby-forum.com/t/question-about-named-route/186917)

<div class="topic-metadata">

**Author:** [@makoto\_kuwata](https://www.ruby-forum.com/u/makoto_kuwata)\
**Replies:** 4\
**Last updated:** [April 14, 2010, 4:47pm UTC](https://www.ruby-forum.com/t/question-about-named-route/186917 "2010-04-14T16:47:06Z")

</div>

Hi, I have quetion about ‘named route’. I defined the following in routes.rb to use ‘:title’ instead of ‘:id’. map.movie ‘/ movies/:title’, :controller=\>‘movies’, :action=\>‘show’, :conditions=\>{:method=\>:get} This …

---

## [Counting a string](https://www.ruby-forum.com/t/counting-a-string/184193)

<div class="topic-metadata">

**Author:** [@Benedikt\_MSSS\_ller](https://www.ruby-forum.com/u/Benedikt_MSSS_ller)\
**Replies:** 4\
**Last updated:** [February 26, 2010, 3:50pm UTC](https://www.ruby-forum.com/t/counting-a-string/184193 "2010-02-26T15:50:12Z")

</div>

Hi I want to â€žcountâ€œ a string. I don’t know, how to express it better, because of that I’ll try to explain it. I have a string, say ‘a’. Now I want to increase it, so it would be ‘b’. I increase it again, it woul…

---

## [User management by admin](https://www.ruby-forum.com/t/user-management-by-admin/181035)

<div class="topic-metadata">

**Author:** [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Replies:** 4\
**Last updated:** [January 5, 2010, 2:28am UTC](https://www.ruby-forum.com/t/user-management-by-admin/181035 "2010-01-05T02:28:45Z")

</div>

Hi My requirement is upon sign up a new user is created with the given emailid etc and the admin user get an email about this request.When he approves the request an email is sent to this user and now the user can lo…

---

## [Rewriting a url with a ? in it not working](https://www.ruby-forum.com/t/rewriting-a-url-with-a-in-it-not-working/180494)

<div class="topic-metadata">

**Author:** [@jimxms](https://www.ruby-forum.com/u/jimxms)\
**Replies:** 4\
**Last updated:** [December 20, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/rewriting-a-url-with-a-in-it-not-working/180494 "2009-12-20T14:55:48Z")

</div>

Hi All, I’ve just recently moved over to nginx, so please excuse my stupidity if this is a really easy one to solve. I have the following URL: www.domain.net/content.php?/section/content\_title/1 which I am trying to…

---

## [Help](https://www.ruby-forum.com/t/help/177962)

<div class="topic-metadata">

**Author:** [@antony\_4u](https://www.ruby-forum.com/u/antony_4u)\
**Replies:** 4\
**Last updated:** [October 27, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/help/177962 "2009-10-27T13:39:08Z")

</div>

In View I have the Following HTML Tag I want to use the id of the button in Controller … Can you specify what are all the ways available … Thanks In Advance Antony Prabhu N.

---

## [I just can't understand why this program is not working](https://www.ruby-forum.com/t/i-just-cant-understand-why-this-program-is-not-working/172762)

<div class="topic-metadata">

**Author:** [@prateekagarwal](https://www.ruby-forum.com/u/prateekagarwal)\
**Replies:** 4\
**Last updated:** [July 27, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/i-just-cant-understand-why-this-program-is-not-working/172762 "2009-07-27T19:55:48Z")

</div>

Can someone please tell me what the problem with this program is? When I run it, I am able to input the values but I am not getting any results. It just hangs after that. Then I press ‘ctrl+c’, and I get some ‘interru…

---

## [Advanced search for a model (including keywords)](https://www.ruby-forum.com/t/advanced-search-for-a-model-including-keywords/163860)

<div class="topic-metadata">

**Author:** [@aupayo](https://www.ruby-forum.com/u/aupayo)\
**Replies:** 4\
**Last updated:** [March 25, 2009, 11:12pm UTC](https://www.ruby-forum.com/t/advanced-search-for-a-model-including-keywords/163860 "2009-03-25T23:12:37Z")

</div>

Hello, I am new in rails and I am working in an application which requires advanced search. I have a model called Item which has various attributes like “weight”, “price”, “category”, “age”…and then it has some “keyw…

---

## [Simple Rewrite Question](https://www.ruby-forum.com/t/simple-rewrite-question/157892)

<div class="topic-metadata">

**Author:** [@alanwatts](https://www.ruby-forum.com/u/alanwatts)\
**Replies:** 4\
**Last updated:** [January 16, 2009, 2:02pm UTC](https://www.ruby-forum.com/t/simple-rewrite-question/157892 "2009-01-16T14:02:12Z")

</div>

Morning all. I have a very simple request to clean up I basically need to catch URI’s that end with “/” and if they do, append index.htm to them. The upstream proxy doesn’t like to see “/”. so a request: http://xy…

---

## [Embedding struct RArray](https://www.ruby-forum.com/t/embedding-struct-rarray/149936)

<div class="topic-metadata">

**Author:** [@Yugui\_SYuki\_S.S](https://www.ruby-forum.com/u/Yugui_SYuki_S.S)\
**Replies:** 4\
**Last updated:** [October 7, 2008, 3:59pm UTC](https://www.ruby-forum.com/t/embedding-struct-rarray/149936 "2008-10-07T15:59:22Z")

</div>

\-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yuguiã§ã™ã€‚ 3è¦ç´ ä»¥ä¸‹ã®é…åˆ—ã‚’RVALUEã«åŸ‹ã‚è¾¼ã‚€ãƒ‘ãƒƒãƒã‚’æ›¸ãã¾ã—ãŸã€‚object, struct, string, hashã¨åˆã‚ã›ã¦ã€ã“ã‚Œã§ä¸€é€šã‚Šã®ã‚ªãƒ–ã‚¸ã‚§…

---

## [Controller instance variables](https://www.ruby-forum.com/t/controller-instance-variables/150144)

<div class="topic-metadata">

**Author:** [@mrpete](https://www.ruby-forum.com/u/mrpete)\
**Replies:** 4\
**Last updated:** [October 4, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/controller-instance-variables/150144 "2008-10-04T19:31:39Z")

</div>

hi, i’m very new to ruby and rails so be gentle. i am trying to set up a form that uses some validation but i’m having issues. i have a controller class that contains 2 methods: one for showing the form and another …

---

## [Instance variable acting like class variable?](https://www.ruby-forum.com/t/instance-variable-acting-like-class-variable/149152)

<div class="topic-metadata">

**Author:** [@cobra050](https://www.ruby-forum.com/u/cobra050)\
**Replies:** 4\
**Last updated:** [September 22, 2008, 12:08am UTC](https://www.ruby-forum.com/t/instance-variable-acting-like-class-variable/149152 "2008-09-22T00:08:33Z")

</div>

I’ve written a Node class that I’m using to write a few programs for in a course. class Node A node represents a spot on the grid. It knows its location and parent node, the total cost so far, and the directions take …

---

## [Gem update](https://www.ruby-forum.com/t/gem-update/142797)

<div class="topic-metadata">

**Author:** [@phdjlc](https://www.ruby-forum.com/u/phdjlc)\
**Replies:** 4\
**Last updated:** [July 11, 2008, 6:07pm UTC](https://www.ruby-forum.com/t/gem-update/142797 "2008-07-11T18:07:40Z")

</div>

Hi, I’m behind a firewall. How can I update ruby modules? If I try to do a gem update --system I get the following error: ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) getaddrinfo: no address ass…

---

## [Check version](https://www.ruby-forum.com/t/check-version/142123)

<div class="topic-metadata">

**Author:** [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Replies:** 4\
**Last updated:** [July 3, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/check-version/142123 "2008-07-03T19:20:39Z")

</div>

How do I check what version of Ruby I have, besides ruby -v? I’m trying to figure out what version of 1.8.6 I have.

---

## [Require load error](https://www.ruby-forum.com/t/require-load-error/137522)

<div class="topic-metadata">

**Author:** [@haris](https://www.ruby-forum.com/u/haris)\
**Replies:** 4\
**Last updated:** [May 14, 2008, 12:24am UTC](https://www.ruby-forum.com/t/require-load-error/137522 "2008-05-14T00:24:57Z")

</div>

Hi, I installed ‘hpricot’ and ‘wx’ (wxruby) libraries with gem command and when I try to start a program which uses those two libraries I get ‘require - no such file to load - hpricot (or wx)’. I have ruby 1.9.0. de…

---

## [Non-conventional actions and Atom feeds](https://www.ruby-forum.com/t/non-conventional-actions-and-atom-feeds/135228)

<div class="topic-metadata">

**Author:** [@evensoul](https://www.ruby-forum.com/u/evensoul)\
**Replies:** 4\
**Last updated:** [April 20, 2008, 7:35pm UTC](https://www.ruby-forum.com/t/non-conventional-actions-and-atom-feeds/135228 "2008-04-20T19:35:00Z")

</div>

I would like to provide Atom feeds in response to different actions. I am aware that eg map.resources :posts helps me generate a feed as a request for /posts.:format, but as I am getting into problems, I see that I do…

---

## [Create and run multiple rails apps from within a rails app](https://www.ruby-forum.com/t/create-and-run-multiple-rails-apps-from-within-a-rails-app/133991)

<div class="topic-metadata">

**Author:** [@DyingToLearn](https://www.ruby-forum.com/u/DyingToLearn)\
**Replies:** 4\
**Last updated:** [April 6, 2008, 9:22am UTC](https://www.ruby-forum.com/t/create-and-run-multiple-rails-apps-from-within-a-rails-app/133991 "2008-04-06T09:22:55Z")

</div>

Hi, I am hoping to build a rails app that can create other rails apps and run them. Basically the user fills in some parameters and a new rails app is generated. Once generated, then the new application is running. I…

---

## [Demo Popup Emails?](https://www.ruby-forum.com/t/demo-popup-emails/132993)

<div class="topic-metadata">

**Author:** [@Danimal](https://www.ruby-forum.com/u/Danimal)\
**Replies:** 4\
**Last updated:** [March 26, 2008, 9:00pm UTC](https://www.ruby-forum.com/t/demo-popup-emails/132993 "2008-03-26T21:00:25Z")

</div>

I’m wondering if anyone can suggest a feature/mechanism for me? I’m building a web app and want to simulate the email system in some reasonable way so that the system can be run in “demo mode” if you will. My thought…

---

## [How to pass a hash into a function](https://www.ruby-forum.com/t/how-to-pass-a-hash-into-a-function/129151)

<div class="topic-metadata">

**Author:** [@pimeamark](https://www.ruby-forum.com/u/pimeamark)\
**Replies:** 4\
**Last updated:** [February 15, 2008, 3:57am UTC](https://www.ruby-forum.com/t/how-to-pass-a-hash-into-a-function/129151 "2008-02-15T03:57:40Z")

</div>

Hi, I have a hash and i need to pass it to a function in another controller. Here’s what I have to do that \<%= link\_to ‘View’, :controller =\> :attempts, :action =\> :show\_cbam, :id =\> a.code, :percentiles =\>@percentile…

---

## [Gem API](https://www.ruby-forum.com/t/gem-api/127425)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 4\
**Last updated:** [January 31, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/gem-api/127425 "2008-01-31T14:10:35Z")

</div>

I’m curious is there a flag or an easy way to extend gem when calling it from the command line to do the following: remove lines such as: \\n\*\*\* LOCAL GEMS \\n\\n and \\n REMOTE GEMS \*\*\*\\n\\n and to control the output f…

---

## [How to use a javascript funtion](https://www.ruby-forum.com/t/how-to-use-a-javascript-funtion/126899)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 4\
**Last updated:** [January 24, 2008, 8:36am UTC](https://www.ruby-forum.com/t/how-to-use-a-javascript-funtion/126899 "2008-01-24T08:36:18Z")

</div>

how to use a javascript funtion which should run when i am clicking any link or submit in whole form? except in onclick tag (or) on submit tag

---

## [Hash.clear("value")](https://www.ruby-forum.com/t/hash-clear-value/121547)

<div class="topic-metadata">

**Author:** [@starmaerker](https://www.ruby-forum.com/u/starmaerker)\
**Replies:** 4\
**Last updated:** [November 30, 2007, 7:10am UTC](https://www.ruby-forum.com/t/hash-clear-value/121547 "2007-11-30T07:10:41Z")

</div>

Hello all, Was just wondering if there was something simple like: hash.clear(“value”) This would remove all entries from the hash whose value == “value”. Yeah, I know about delete\_if, this would just be more succinct…

---

## [Rendering a view and passing a variable](https://www.ruby-forum.com/t/rendering-a-view-and-passing-a-variable/121705)

<div class="topic-metadata">

**Author:** [@reivilo](https://www.ruby-forum.com/u/reivilo)\
**Replies:** 4\
**Last updated:** [November 30, 2007, 3:44am UTC](https://www.ruby-forum.com/t/rendering-a-view-and-passing-a-variable/121705 "2007-11-30T03:44:24Z")

</div>

Hello all, I have a view which display html based on the value of a variable. Here’s the code : \<% if @language == ‘e’ %\> \<%= link\_to “Français”, :action =\> :index, :id =\> “f” %\> \<% end %\> In my test, I’m trying to…

---

## [Cap deploy:spec](https://www.ruby-forum.com/t/cap-deploy-spec/120836)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 4\
**Last updated:** [November 21, 2007, 3:29am UTC](https://www.ruby-forum.com/t/cap-deploy-spec/120836 "2007-11-21T03:29:03Z")

</div>

fyi, I just posted this http://www.vaporbase.com/postings/Running\_rspec\_after\_you\_deploy linoj

---

## [MySQL failed to install due to priveleges](https://www.ruby-forum.com/t/mysql-failed-to-install-due-to-priveleges/120118)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 4\
**Last updated:** [November 17, 2007, 4:25am UTC](https://www.ruby-forum.com/t/mysql-failed-to-install-due-to-priveleges/120118 "2007-11-17T04:25:46Z")

</div>

MySQL failed to install and gave the following error: Product: MySQL Server 5.0 – Error 1925.You do not have sufficient privileges to complete this installation for all users of the machine. Log on as an administrato…

---

## [How to architect a global application \[in Rails\]](https://www.ruby-forum.com/t/how-to-architect-a-global-application-in-rails/119887)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 4\
**Last updated:** [November 13, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/how-to-architect-a-global-application-in-rails/119887 "2007-11-13T18:32:55Z")

</div>

Hello list, I’m building an application that will soon probably be translated and localized for different languages and cultures (countries). And here lies the issue. I’m not sure how to architect the application so t…

---

## [Quick and Simple: How do I get rid of the subdir for my railsapp? (Making it root dir)](https://www.ruby-forum.com/t/quick-and-simple-how-do-i-get-rid-of-the-subdir-for-my-railsapp-making-it-root-dir/115680)

<div class="topic-metadata">

**Author:** [@ARARAR](https://www.ruby-forum.com/u/ARARAR)\
**Replies:** 4\
**Last updated:** [September 27, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/quick-and-simple-how-do-i-get-rid-of-the-subdir-for-my-railsapp-making-it-root-dir/115680 "2007-09-27T17:09:10Z")

</div>

Ok, I created my rails application called “word”. It consists of: controllers/application.rb (empty, whatever the default is) controllers/word.rb (my project) views/index.rhtml (my view) If I go to localhost:3000, I…

---

## [Issue with using has\_many](https://www.ruby-forum.com/t/issue-with-using-has-many/113801)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 4\
**Last updated:** [September 6, 2007, 3:39am UTC](https://www.ruby-forum.com/t/issue-with-using-has-many/113801 "2007-09-06T03:39:26Z")

</div>

I"m getting information for a Gm and his players through a tEam table. The relationship looks like this. Gms -\> teams \<- nhl\_stats So teams is the join / lookup table with FK’s to gm.id and nhl\_stats\_id class Gm \< Ac…

---

## [Dynamic methods](https://www.ruby-forum.com/t/dynamic-methods/112884)

<div class="topic-metadata">

**Author:** [@S-jb](https://www.ruby-forum.com/u/S-jb)\
**Replies:** 4\
**Last updated:** [August 24, 2007, 1:37pm UTC](https://www.ruby-forum.com/t/dynamic-methods/112884 "2007-08-24T13:37:41Z")

</div>

I have seen examples of catching unkown methods called on a class with method\_missing. For example: class Example def initialize(…) #… end def method\_missing(item) call = item.id2name process(call) end end Bu…

---

## [How do you check if text is in between certain \<tags\>?](https://www.ruby-forum.com/t/how-do-you-check-if-text-is-in-between-certain-tags/112150)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 4\
**Last updated:** [August 16, 2007, 2:46am UTC](https://www.ruby-forum.com/t/how-do-you-check-if-text-is-in-between-certain-tags/112150 "2007-08-16T02:46:43Z")

</div>

For instance, I have a similar block of text like so: @text = “Lorem ipsum \[some code here\] dolor sit” What sytax would I use to check if the text is in between the tags? That is: “If @text is in between ‘’ and ‘’…

---

## [Nil.each error](https://www.ruby-forum.com/t/nil-each-error/108463)

<div class="topic-metadata">

**Author:** [@jfoxny](https://www.ruby-forum.com/u/jfoxny)\
**Replies:** 4\
**Last updated:** [July 3, 2007, 9:29pm UTC](https://www.ruby-forum.com/t/nil-each-error/108463 "2007-07-03T21:29:23Z")

</div>

When I run the following code in the console I get the following error: s\_date = Date.new(2007,6,3) e\_date = Date.new(2007,7,3) due\_dates = DueDate.find(:all, :conditions =\> \[‘stamp \>= ? and stamp \<= ?’,s\_date.to\_s(:…

---

## [Passing rails data to javascript](https://www.ruby-forum.com/t/passing-rails-data-to-javascript/88255)

<div class="topic-metadata">

**Author:** [@Jorge\_Mario\_GSMazo](https://www.ruby-forum.com/u/Jorge_Mario_GSMazo)\
**Replies:** 4\
**Last updated:** [March 10, 2007, 4:09am UTC](https://www.ruby-forum.com/t/passing-rails-data-to-javascript/88255 "2007-03-10T04:09:48Z")

</div>

Hi there how do I pass rails data to a JS array? like arr\[0\] = @user.name arr\[1\] = @user.location something like that I’ve been trying differente approaches but no luck so far thanks in advance

---

## [Common actions "split" amoung several controllers? how to?](https://www.ruby-forum.com/t/common-actions-split-amoung-several-controllers-how-to/77457)

<div class="topic-metadata">

**Author:** [@phallstrom](https://www.ruby-forum.com/u/phallstrom)\
**Replies:** 4\
**Last updated:** [November 28, 2006, 4:19am UTC](https://www.ruby-forum.com/t/common-actions-split-amoung-several-controllers-how-to/77457 "2006-11-28T04:19:41Z")

</div>

Hi all - I’ve got a set of common actions (for displaying photo thumbnails and their preview) that I’d like to share b/n a couple of controllers (ie. photos for people and photos for events). I’m trying to figure out…

---

## [Logging actions](https://www.ruby-forum.com/t/logging-actions/77252)

<div class="topic-metadata">

**Author:** [@nicken](https://www.ruby-forum.com/u/nicken)\
**Replies:** 4\
**Last updated:** [November 25, 2006, 6:06pm UTC](https://www.ruby-forum.com/t/logging-actions/77252 "2006-11-25T18:06:03Z")

</div>

Hey, I want to log the actions of the users. I do it like this when creating a product: in the controller def create @product = Product.new(params\[:product\]) if @product.save if isLogging() createLog(@product,co…

[Previous page](https://www.ruby-forum.com/top.md?page=1778&per_page=50)

[Next page](https://www.ruby-forum.com/top.md?page=1780&per_page=50)
