# Top

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

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

---

## [Way to divide long article and store in database](https://www.ruby-forum.com/t/way-to-divide-long-article-and-store-in-database/169214)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 4\
**Last updated:** [June 1, 2009, 9:23am UTC](https://www.ruby-forum.com/t/way-to-divide-long-article-and-store-in-database/169214 "2009-06-01T09:23:41Z")

</div>

I wonder if a Ruby on Rails developer has encounter this before: suppose it is a long article (say 100,000 words), and I need to write a Ruby file to display page 1, 2, or page 38 of the article, by display.html.erb?p…

---

## [Forms without a database backend](https://www.ruby-forum.com/t/forms-without-a-database-backend/164102)

<div class="topic-metadata">

**Author:** [@devbanana](https://www.ruby-forum.com/u/devbanana)\
**Replies:** 4\
**Last updated:** [March 28, 2009, 12:56am UTC](https://www.ruby-forum.com/t/forms-without-a-database-backend/164102 "2009-03-28T00:56:08Z")

</div>

Hi, I’m trying to create a simple contact form. It might use the database later for storing the messages, but not yet, I don’t think. However, I’d still like to be able to validate the fields easily, like you would w…

---

## [Which command is used to list the gems used by an application?](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192)

<div class="topic-metadata">

**Author:** [@olivierntk](https://www.ruby-forum.com/u/olivierntk)\
**Replies:** 4\
**Last updated:** [February 2, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192 "2009-02-02T13:38:24Z")

</div>

Hi, I have been working on an application for a few months and installed some gems, but I don’t remember the exact list. I want to deploy my app and I need to install the gems I used. Which command line is used for th…

---

## [Ftp](https://www.ruby-forum.com/t/ftp/156073)

<div class="topic-metadata">

**Author:** [@pratstercs](https://www.ruby-forum.com/u/pratstercs)\
**Replies:** 4\
**Last updated:** [December 22, 2008, 11:22am UTC](https://www.ruby-forum.com/t/ftp/156073 "2008-12-22T11:22:57Z")

</div>

Hi, I’m a complete novice to Ruby, but I would like to write an FTP server to collect the files from my computer (internet connected) and copy them to my server nightly. My server is a Ubuntu Linux setup with FTP and …

---

## [Nginx for webhosting company](https://www.ruby-forum.com/t/nginx-for-webhosting-company/147334)

<div class="topic-metadata">

**Author:** [@sovok](https://www.ruby-forum.com/u/sovok)\
**Replies:** 4\
**Last updated:** [September 1, 2008, 6:02pm UTC](https://www.ruby-forum.com/t/nginx-for-webhosting-company/147334 "2008-09-01T18:02:38Z")

</div>

Is it possible to use nginx for a web hosting company, like every users can set his/her “rewrite” options, without “restart” of nginx and without need of root access. I am asking something on the idea like shared host…

---

## [Changing a file inline on Windows](https://www.ruby-forum.com/t/changing-a-file-inline-on-windows/141119)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 4\
**Last updated:** [June 23, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/changing-a-file-inline-on-windows/141119 "2008-06-23T15:50:21Z")

</div>

Here is my current method for editing files: filename = File.join(‘path’, ‘to’, ‘file’) content = \[\] File.open(filename, ‘r’) do |file| content = file.readlines end content.collect! do |line| line.gsub!(/six/, “h…

---

## [View Testing: Action with parameters](https://www.ruby-forum.com/t/view-testing-action-with-parameters/141094)

<div class="topic-metadata">

**Author:** [@Britt\_Mileshosky](https://www.ruby-forum.com/u/Britt_Mileshosky)\
**Replies:** 4\
**Last updated:** [June 22, 2008, 12:46am UTC](https://www.ruby-forum.com/t/view-testing-action-with-parameters/141094 "2008-06-22T00:46:17Z")

</div>

I’m looking for the solution to testing for the correct format of a form action with extra parameters in the url in my view tests. I’m probably overlooking something simple, but I cannot figure out why this is not wor…

---

## [Pulling a class from a ruby file](https://www.ruby-forum.com/t/pulling-a-class-from-a-ruby-file/137830)

<div class="topic-metadata">

**Author:** [@twdev](https://www.ruby-forum.com/u/twdev)\
**Replies:** 4\
**Last updated:** [May 18, 2008, 1:27am UTC](https://www.ruby-forum.com/t/pulling-a-class-from-a-ruby-file/137830 "2008-05-18T01:27:31Z")

</div>

I have a single ruby file, consisting of a class definition, and some code outside the class. Our tech lead wants this keep all this in a single file. I also have a unit test in a seperate ruby file which tests the cl…

---

## [Loading a file in a buffer](https://www.ruby-forum.com/t/loading-a-file-in-a-buffer/130825)

<div class="topic-metadata">

**Author:** [@z4n9ief](https://www.ruby-forum.com/u/z4n9ief)\
**Replies:** 4\
**Last updated:** [March 3, 2008, 6:52pm UTC](https://www.ruby-forum.com/t/loading-a-file-in-a-buffer/130825 "2008-03-03T18:52:48Z")

</div>

Hello everybody, I would like to load the exact content of a file in a buffer (with the same carriage return). To do so, I had trying this: file = File.open(’/home/my\_file’) To verify if that work normally, I had try…

---

## [Question about iterators and reading a file](https://www.ruby-forum.com/t/question-about-iterators-and-reading-a-file/122464)

<div class="topic-metadata">

**Author:** [@jbhruby](https://www.ruby-forum.com/u/jbhruby)\
**Replies:** 4\
**Last updated:** [December 7, 2007, 11:48pm UTC](https://www.ruby-forum.com/t/question-about-iterators-and-reading-a-file/122464 "2007-12-07T23:48:38Z")

</div>

Hi All, I’m trying to write a loop to read in a file with the following structure: ... ... And I have this piece of loop: f = open(File, ‘r’).each do |l| strIn = l.chomp # Now what!?!! end I need to advance…

---

## [Irb and script/console problem](https://www.ruby-forum.com/t/irb-and-script-console-problem/115518)

<div class="topic-metadata">

**Author:** [@bjhess](https://www.ruby-forum.com/u/bjhess)\
**Replies:** 4\
**Last updated:** [October 22, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/irb-and-script-console-problem/115518 "2007-10-22T20:43:37Z")

</div>

I’ve had a problem with irb and script/console since about mid-summer and it’s absolutely killing me. In either environment, I’m unable to use the spacebar. It simply doesn’t register. I’ve tried using Terminal.app …

---

## [Optional Partials in the Layout](https://www.ruby-forum.com/t/optional-partials-in-the-layout/116598)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 4\
**Last updated:** [October 8, 2007, 11:27pm UTC](https://www.ruby-forum.com/t/optional-partials-in-the-layout/116598 "2007-10-08T23:27:05Z")

</div>

I want to include a partial in the layout that might not exist. :o) Here’s an example: Some flows have specific CSS or JavaScript and I’d like to automatically include those in the HTML (via the layout), so it woul…

---

## [Validation question](https://www.ruby-forum.com/t/validation-question/103606)

<div class="topic-metadata">

**Author:** [@John\_McAuley](https://www.ruby-forum.com/u/John_McAuley)\
**Replies:** 4\
**Last updated:** [May 8, 2007, 1:46pm UTC](https://www.ruby-forum.com/t/validation-question/103606 "2007-05-08T13:46:10Z")

</div>

Hello all, I have a controller with a couple of actions and one model. The model is as so: validates\_presence\_of :name, :email, :name validates\_presence\_of :password, :password\_confirmation The first action is creat…

---

## [Find\_by\_sql sanity check](https://www.ruby-forum.com/t/find-by-sql-sanity-check/82742)

<div class="topic-metadata">

**Author:** [@daveamos](https://www.ruby-forum.com/u/daveamos)\
**Replies:** 4\
**Last updated:** [January 20, 2007, 7:43am UTC](https://www.ruby-forum.com/t/find-by-sql-sanity-check/82742 "2007-01-20T07:43:57Z")

</div>

Hi everyone, I’m doing a find\_by\_sql to do a paginated list of a users’ friends’ recipes, but I keep getting an error with my find\_by\_sql line (Wrong number of arguments 0 for 1). Is there anything I’m obviously doin…

---

## [Why this script doesn't work?](https://www.ruby-forum.com/t/why-this-script-doesnt-work/78219)

<div class="topic-metadata">

**Author:** [@alex-osu3](https://www.ruby-forum.com/u/alex-osu3)\
**Replies:** 4\
**Last updated:** [December 4, 2006, 10:34am UTC](https://www.ruby-forum.com/t/why-this-script-doesnt-work/78219 "2006-12-04T10:34:08Z")

</div>

Hi all, I copy a script from WIN32OLE documentation and run it. I find that Ruby complains it at line cells = sheets.cells(“A1:A5”). Do I miss something? Thanks, Li require ‘win32ole’ excel = WIN32OLE.new(‘Exc…

---

## [FXApp.create problem after fresh One-Click win98 install](https://www.ruby-forum.com/t/fxapp-create-problem-after-fresh-one-click-win98-install/101433)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 4\
**Last updated:** [August 4, 2006, 11:22pm UTC](https://www.ruby-forum.com/t/fxapp-create-problem-after-fresh-one-click-win98-install/101433 "2006-08-04T23:22:33Z")

</div>

just ran ruby184-20.exe on win98 box and rebooted getting this after running FXRuby test.rb “abnormal program termination” require ‘fox16’ include Fox application = FXApp.new(“Hello”, “FoxTest”) main = FXMainWindow…

---

## [Ajax.Request with page reload?](https://www.ruby-forum.com/t/ajax-request-with-page-reload/64279)

<div class="topic-metadata">

**Author:** [@stickstone](https://www.ruby-forum.com/u/stickstone)\
**Replies:** 4\
**Last updated:** [June 24, 2006, 9:40am UTC](https://www.ruby-forum.com/t/ajax-request-with-page-reload/64279 "2006-06-24T09:40:36Z")

</div>

I need to send a POST request via a link, along with paramater data for an action, and the page needs to reload. link\_to\_remote worked great when I was updating a DOM element but obviously won’t work when I need to re…

---

## [Stylesheet linking and layouts](https://www.ruby-forum.com/t/stylesheet-linking-and-layouts/64199)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [June 24, 2006, 6:24am UTC](https://www.ruby-forum.com/t/stylesheet-linking-and-layouts/64199 "2006-06-24T06:24:29Z")

</div>

In my layout, I have something like (shortened for clarity): \<%= stylesheet\_link\_tag "index", :media =\> "all" %\> ... \<%= @content\_for\_layout %\> ... A view action has another stylesheet defined in the opening…

---

## [Mysql gem not buidling on OSX 10.4.6](https://www.ruby-forum.com/t/mysql-gem-not-buidling-on-osx-10-4-6/63204)

<div class="topic-metadata">

**Author:** [@silent11](https://www.ruby-forum.com/u/silent11)\
**Replies:** 4\
**Last updated:** [June 13, 2006, 11:35pm UTC](https://www.ruby-forum.com/t/mysql-gem-not-buidling-on-osx-10-4-6/63204 "2006-06-13T23:35:33Z")

</div>

When I sudo gem install mysql I get the following: –snip– $ sudo gem install mysql Attempting local installation of ‘mysql’ Local gem file not found: mysql\*.gem Attempting remote installation of ‘mysql’ Updating Ge…

---

## [Ruby app to rails?](https://www.ruby-forum.com/t/ruby-app-to-rails/63225)

<div class="topic-metadata">

**Author:** [@lassethomsen](https://www.ruby-forum.com/u/lassethomsen)\
**Replies:** 4\
**Last updated:** [June 13, 2006, 10:51pm UTC](https://www.ruby-forum.com/t/ruby-app-to-rails/63225 "2006-06-13T22:51:48Z")

</div>

Hi. Im am considering porting an c++ application to Ruby, and me company would also like to have an web-version of this particular application. If say there is an XML validator in the app. Then can Ruby and RoR share …

---

## [Drb and PStore behaviour](https://www.ruby-forum.com/t/drb-and-pstore-behaviour/61139)

<div class="topic-metadata">

**Author:** [@javier\_v](https://www.ruby-forum.com/u/javier_v)\
**Replies:** 4\
**Last updated:** [May 21, 2006, 8:11am UTC](https://www.ruby-forum.com/t/drb-and-pstore-behaviour/61139 "2006-05-21T08:11:02Z")

</div>

I’m doing a remote database object so i can do: result = database.find do |record| record\[:name\] == “john” end in the server object i have something like: class Foo include DRb::DRbUndumped def find(&block) …

---

## [/public content security](https://www.ruby-forum.com/t/public-content-security/60250)

<div class="topic-metadata">

**Author:** [@loridan](https://www.ruby-forum.com/u/loridan)\
**Replies:** 4\
**Last updated:** [May 12, 2006, 6:29am UTC](https://www.ruby-forum.com/t/public-content-security/60250 "2006-05-12T06:29:52Z")

</div>

Hello all, I have a question regarding the security of my new web zine. The idea is that I have editors that can log into the site, and then upload comics in the form of a jpg. The way that I have this set up righ…

---

## [A few block-related questions](https://www.ruby-forum.com/t/a-few-block-related-questions/59896)

<div class="topic-metadata">

**Author:** [@victor123789](https://www.ruby-forum.com/u/victor123789)\
**Replies:** 4\
**Last updated:** [May 8, 2006, 3:51pm UTC](https://www.ruby-forum.com/t/a-few-block-related-questions/59896 "2006-05-08T15:51:31Z")

</div>

Hi all. Here is the code: str = ‘some string’ blk = lambda{|arg| self.text = str; self.text = arg} class A def text=(str) #blah end end A.new.instance\_eval( &blk ) Questions about the code: str would be alway…

---

## [Rails stack on debian](https://www.ruby-forum.com/t/rails-stack-on-debian/57640)

<div class="topic-metadata">

**Author:** [@rsaccon](https://www.ruby-forum.com/u/rsaccon)\
**Replies:** 4\
**Last updated:** [April 13, 2006, 3:06am UTC](https://www.ruby-forum.com/t/rails-stack-on-debian/57640 "2006-04-13T03:06:45Z")

</div>

I am putting a rails stack on a debian linux box. Ezra did a great job with his tutorial http://brainspl.at/rails\_stack.html What I am in doubt is what is recommended / common practise to install stuff which is not …

---

## [Newbie File\_Column and Console Question](https://www.ruby-forum.com/t/newbie-file-column-and-console-question/93568)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 4\
**Last updated:** [April 11, 2006, 4:15am UTC](https://www.ruby-forum.com/t/newbie-file-column-and-console-question/93568 "2006-04-11T04:15:34Z")

</div>

I recently got File\_Column installed and working and it is great, but now I find myself needing to resize all the images I already uploaded. Through the web I found that the answer lies in going to the script/console …

---

## [Tools to improve testing](https://www.ruby-forum.com/t/tools-to-improve-testing/90062)

<div class="topic-metadata">

**Author:** [@Imobach\_GonzSSSSlez](https://www.ruby-forum.com/u/Imobach_GonzSSSSlez)\
**Replies:** 4\
**Last updated:** [March 30, 2006, 12:00am UTC](https://www.ruby-forum.com/t/tools-to-improve-testing/90062 "2006-03-30T00:00:38Z")

</div>

Hi all, An easy one: what tools do you use to improve testing? I’ve read some about ZenTest and looks very nice. But I’d like to hear more about tools (or frameworks) to make Ruby programmers happy even when writing …

---

## [Updating records](https://www.ruby-forum.com/t/updating-records/185962)

<div class="topic-metadata">

**Author:** [@xman2000](https://www.ruby-forum.com/u/xman2000)\
**Replies:** 6\
**Last updated:** [March 30, 2010, 9:29am UTC](https://www.ruby-forum.com/t/updating-records/185962 "2010-03-30T09:29:57Z")

</div>

So I would like to be able to update a record without having to load the edit page. Lets use checking out a book as an example. From the front page of my application I would like to be able to have a form field wher…

---

## [Active Scaffold Without Database connection --- Help](https://www.ruby-forum.com/t/active-scaffold-without-database-connection-help/178666)

<div class="topic-metadata">

**Author:** [@antony\_4u](https://www.ruby-forum.com/u/antony_4u)\
**Replies:** 6\
**Last updated:** [November 10, 2009, 6:02am UTC](https://www.ruby-forum.com/t/active-scaffold-without-database-connection-help/178666 "2009-11-10T06:02:19Z")

</div>

Hi Friends, I want to know what are ways or how to use the Active Scaffold without Database connection … I mean Instead of Database I will have a CSV or Flat file… Thro Active Scaffold Plug-in how to read this file …

---

## [:Partial and :locals question](https://www.ruby-forum.com/t/partial-and-locals-question/172232)

<div class="topic-metadata">

**Author:** [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Replies:** 6\
**Last updated:** [July 19, 2009, 10:11pm UTC](https://www.ruby-forum.com/t/partial-and-locals-question/172232 "2009-07-19T22:11:10Z")

</div>

Hello, I want to be able to call a partial with and without a local. E.g.: 1 - \<%= render :partial =\> “/contacts/phones/create”, :locals =\> { :parent\_form =\> contact\_form, :phone =\> Phone.new} %\> 2 - \<%= render :par…

---

## [Persistence + Round robin](https://www.ruby-forum.com/t/persistence-round-robin/149428)

<div class="topic-metadata">

**Author:** [@Brian\_Moschel](https://www.ruby-forum.com/u/Brian_Moschel)\
**Replies:** 6\
**Last updated:** [September 25, 2008, 10:23am UTC](https://www.ruby-forum.com/t/persistence-round-robin/149428 "2008-09-25T10:23:43Z")

</div>

Hey guys, I’ve read through the docs and this doesn’t seem possible in the current setup, but I could be wrong. Here’s what I need: Load balancing using a uri param, but if its not found, fall back to round robin, …

---

## [Syntaxerror while starting server](https://www.ruby-forum.com/t/syntaxerror-while-starting-server/130912)

<div class="topic-metadata">

**Author:** [@emuen](https://www.ruby-forum.com/u/emuen)\
**Replies:** 6\
**Last updated:** [March 4, 2008, 5:31pm UTC](https://www.ruby-forum.com/t/syntaxerror-while-starting-server/130912 "2008-03-04T17:31:01Z")

</div>

Hi there. I get an syntax error on this line (135) when i start my server. I have out-commented the line for now, but would really appreciate any help. \[code\] error\_messages = objects.map {|object| object.errors.full…

---

## [Run an sql query](https://www.ruby-forum.com/t/run-an-sql-query/129522)

<div class="topic-metadata">

**Author:** [@amitjain](https://www.ruby-forum.com/u/amitjain)\
**Replies:** 6\
**Last updated:** [February 19, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/run-an-sql-query/129522 "2008-02-19T17:13:14Z")

</div>

Hello All, Iam new to Ruby on Rails. I am moving my application to Ruby on rails. Is there an way i can call C++ API from ruby, so that i dont have to do much porting on Ruby on Rails. I have alread an DB and i want …

---

## [Private encapsulation question](https://www.ruby-forum.com/t/private-encapsulation-question/128685)

<div class="topic-metadata">

**Author:** [@andrea](https://www.ruby-forum.com/u/andrea)\
**Replies:** 6\
**Last updated:** [February 10, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/private-encapsulation-question/128685 "2008-02-10T22:09:34Z")

</div>

Hello, I am trying to improve my understanding of encapsulation but I can’t understand the reason why the last 2 method calls in the following code produce different results (cut and paste in irb, plus return key): c…

---

## [Data for eigenclass](https://www.ruby-forum.com/t/data-for-eigenclass/128267)

<div class="topic-metadata">

**Author:** [@Jari\_W](https://www.ruby-forum.com/u/Jari_W)\
**Replies:** 6\
**Last updated:** [February 6, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/data-for-eigenclass/128267 "2008-02-06T16:17:31Z")

</div>

How do I set data at the eigenclass level (data should basically be connected to the class name)? The @@my\_data syntax seems to attach only to the original class in which it was defined, not for any subclasses. And th…

---

## [Relationship between tables](https://www.ruby-forum.com/t/relationship-between-tables/118153)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 6\
**Last updated:** [October 24, 2007, 12:11pm UTC](https://www.ruby-forum.com/t/relationship-between-tables/118153 "2007-10-24T12:11:53Z")

</div>

Hi, I have a users table(below) and now i want to create a new table “occupation” so the users can fill in there occupation and store it in the occupation-table. Question: how can i realize a realionship between the …

---

## [Ruby methods question](https://www.ruby-forum.com/t/ruby-methods-question/88477)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [March 12, 2007, 9:55am UTC](https://www.ruby-forum.com/t/ruby-methods-question/88477 "2007-03-12T09:55:55Z")

</div>

I followed the online tutorials on how to write plugins. So I have acts\_as\_fox.rb: require ‘active\_record’ module Foo module Acts #:nodoc: module Fox #:nodoc: def self.included(mod) mod.extend(ClassMethods) …

---

## [Validation in a model that is not to be saved](https://www.ruby-forum.com/t/validation-in-a-model-that-is-not-to-be-saved/79906)

<div class="topic-metadata">

**Author:** [@Jason1706](https://www.ruby-forum.com/u/Jason1706)\
**Replies:** 6\
**Last updated:** [December 23, 2006, 8:46am UTC](https://www.ruby-forum.com/t/validation-in-a-model-that-is-not-to-be-saved/79906 "2006-12-23T08:46:46Z")

</div>

Hi group, I built an input form that’s spread over multiple pages. I store the already given data (that match my models and my tables) in a cart-like object. That works so far. But since I dont save the data, when th…

---

## [In need of a Rails Application Support Specialist - Please h](https://www.ruby-forum.com/t/in-need-of-a-rails-application-support-specialist-please-h/68566)

<div class="topic-metadata">

**Author:** [@jkaplan](https://www.ruby-forum.com/u/jkaplan)\
**Replies:** 6\
**Last updated:** [September 13, 2006, 11:26pm UTC](https://www.ruby-forum.com/t/in-need-of-a-rails-application-support-specialist-please-h/68566 "2006-09-13T23:26:44Z")

</div>

Hi all, Thanks in advance for any help. I’ve been contracted by a company to develop a website; somewhat of a ‘social networking’ site that’s fairly complicated. I’m working by myself. My background is as a develop…

---

## [This is only a "new topic" test - please ignore](https://www.ruby-forum.com/t/this-is-only-a-new-topic-test-please-ignore/67424)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 6\
**Last updated:** [September 7, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/this-is-only-a-new-topic-test-please-ignore/67424 "2006-09-07T15:41:10Z")

</div>

This is only a “new topic” test - please ignore

---

## [Degrading link\_to\_remote](https://www.ruby-forum.com/t/degrading-link-to-remote/65757)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 6\
**Last updated:** [September 4, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/degrading-link-to-remote/65757 "2006-09-04T14:46:13Z")

</div>

i have some items that use the link\_to\_remote helper and i would like them to also link directly to the page that they are calling if javascript is not available. i have tried putting the action and id in like i would…

---

## [Out of order Ajax responses](https://www.ruby-forum.com/t/out-of-order-ajax-responses/206601)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 5\
**Last updated:** [May 5, 2011, 7:57pm UTC](https://www.ruby-forum.com/t/out-of-order-ajax-responses/206601 "2011-05-05T19:57:57Z")

</div>

I have several links on my Website that make Ajax calls and replace an div with the response. If I click several of these links quickly, it looks like the responses may replace the wrong div. Response times of the …

---

## [Rewrite problem](https://www.ruby-forum.com/t/rewrite-problem/195093)

<div class="topic-metadata">

**Author:** [@st1905](https://www.ruby-forum.com/u/st1905)\
**Replies:** 5\
**Last updated:** [September 18, 2010, 6:56pm UTC](https://www.ruby-forum.com/t/rewrite-problem/195093 "2010-09-18T18:56:35Z")

</div>

Hello, location ~ /admin/ Above matches every admin folder on the domain but i just want to match “/admin” on the url like http://domain.com/admin Tried this location = /admin/ But that did not work. I\`m suing this …

---

## [Very noobish question](https://www.ruby-forum.com/t/very-noobish-question/191361)

<div class="topic-metadata">

**Author:** [@denniss](https://www.ruby-forum.com/u/denniss)\
**Replies:** 5\
**Last updated:** [July 10, 2010, 10:19pm UTC](https://www.ruby-forum.com/t/very-noobish-question/191361 "2010-07-10T22:19:49Z")

</div>

So I just started with rails a few days ago and I am wondering why this does not work. I get an ArgumentError in User#create Extracted source (around line #2): 1: 2: \<% form.for :user, @user, :url =\> {:action =\> “cre…

---

## [Default DAC setting](https://www.ruby-forum.com/t/default-dac-setting/181835)

<div class="topic-metadata">

**Author:** [@Yan\_N](https://www.ruby-forum.com/u/Yan_N)\
**Replies:** 5\
**Last updated:** [January 23, 2010, 1:23am UTC](https://www.ruby-forum.com/t/default-dac-setting/181835 "2010-01-23T01:23:20Z")

</div>

Dear all, What’s the default setting, if python doesn’t write any register in AD9862. For example, in gr-sounder project there isn’t any configuration for AD9862 chip. Thanks in advance Regards, Yan

---

## [Dropdownlist in Rubyon Rails](https://www.ruby-forum.com/t/dropdownlist-in-rubyon-rails/179144)

<div class="topic-metadata">

**Author:** [@ladyhawk](https://www.ruby-forum.com/u/ladyhawk)\
**Replies:** 5\
**Last updated:** [November 22, 2009, 3:11pm UTC](https://www.ruby-forum.com/t/dropdownlist-in-rubyon-rails/179144 "2009-11-22T15:11:32Z")

</div>

Hi, I have a model called Plan with fields plan\_id,Title,description. I have another model called Buy with fields title,description,Plan. I would like to create a “New” View for Buy where we have a dropdown listing al…

---

## [Different titles](https://www.ruby-forum.com/t/different-titles/173640)

<div class="topic-metadata">

**Author:** [@webstic](https://www.ruby-forum.com/u/webstic)\
**Replies:** 5\
**Last updated:** [August 14, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/different-titles/173640 "2009-08-14T13:39:57Z")

</div>

hi! I want to have different titles in my weblog. in my app/views/layout/post.html.erb i have this in head: \<%= controller.action\_name %\> :: webstic blog :slight\_smile: thats fine if im in page that listing my blog…

---

## [Creating a dynamic form and referring to a page with dynamic parameters](https://www.ruby-forum.com/t/creating-a-dynamic-form-and-referring-to-a-page-with-dynamic-parameters/169524)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 5\
**Last updated:** [June 4, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/creating-a-dynamic-form-and-referring-to-a-page-with-dynamic-parameters/169524 "2009-06-04T23:06:15Z")

</div>

I want to create a form where a visitor can dynamically add more fields to it. The visitor will input a list of stuff and can be anywere from 1 to over ten. The user will be inputting name of a medication and then dos…

---

## [Application.html.erb problem](https://www.ruby-forum.com/t/application-html-erb-problem/165973)

<div class="topic-metadata">

**Author:** [@preethi](https://www.ruby-forum.com/u/preethi)\
**Replies:** 5\
**Last updated:** [April 20, 2009, 3:56pm UTC](https://www.ruby-forum.com/t/application-html-erb-problem/165973 "2009-04-20T15:56:22Z")

</div>

Hi, This may be a silly question to ask. But as performance issues start popping up I had no other go other than searching for a solution. I’ve application.html.erb where i’ve defined the layout of my whole project, …

---

## [Iterating over directories](https://www.ruby-forum.com/t/iterating-over-directories/165554)

<div class="topic-metadata">

**Author:** [@dafydd](https://www.ruby-forum.com/u/dafydd)\
**Replies:** 5\
**Last updated:** [April 15, 2009, 9:31am UTC](https://www.ruby-forum.com/t/iterating-over-directories/165554 "2009-04-15T09:31:58Z")

</div>

I got this oneliner that isn’t producing the output I was expecting (it printing all of the directories in the linux root directory). irb(main):012:0\> Dir.new("/").each { |name| puts name if File.directory?(name) } … …

---

## [Named\_scopes - any reason why you should not alway use a named scope (c.f. a custom method to return](https://www.ruby-forum.com/t/named-scopes-any-reason-why-you-should-not-alway-use-a-named-scope-c-f-a-custom-method-to-return/158171)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 5\
**Last updated:** [January 22, 2009, 10:02am UTC](https://www.ruby-forum.com/t/named-scopes-any-reason-why-you-should-not-alway-use-a-named-scope-c-f-a-custom-method-to-return/158171 "2009-01-22T10:02:22Z")

</div>

Hi, I’ve just discovered the “named\_scope” method which seems great. I’m wondering there is any reason why you wouldn’t always use a named scope (to get the advantages), over a custom method on your model to return …

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

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