# Top

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

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

---

## [Can I really add Databases a lot easier to my website?](https://www.ruby-forum.com/t/can-i-really-add-databases-a-lot-easier-to-my-website/110618)

<div class="topic-metadata">

**Author:** [@efilm66](https://www.ruby-forum.com/u/efilm66)\
**Replies:** 3\
**Last updated:** [July 30, 2007, 4:10am UTC](https://www.ruby-forum.com/t/can-i-really-add-databases-a-lot-easier-to-my-website/110618 "2007-07-30T04:10:55Z")

</div>

Since you’re the experts, maybe you guys can verify this fact for me~ Is it definitely easier and much faster (how fast) to add a database or major feature into an existing site than if i were programming in PHP? I am…

---

## [Keep getting an error saying that this array value is nil, h](https://www.ruby-forum.com/t/keep-getting-an-error-saying-that-this-array-value-is-nil-h/108754)

<div class="topic-metadata">

**Author:** [@shadowcipher](https://www.ruby-forum.com/u/shadowcipher)\
**Replies:** 3\
**Last updated:** [July 6, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/keep-getting-an-error-saying-that-this-array-value-is-nil-h/108754 "2007-07-06T20:14:25Z")

</div>

elemkeysraw = str.split(/=(?!\>)/) i = elemkeysraw.length scr.printw(“This is the value of hashargs is #{hashargs} and it’s class is #{hashargs.class} and elemkeysraw\[i\] is #{elemkeysraw\[i\]} elemkeysraw\[i\].split(/=\>/…

---

## [Private method clarification, please](https://www.ruby-forum.com/t/private-method-clarification-please/108460)

<div class="topic-metadata">

**Author:** [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Replies:** 3\
**Last updated:** [July 3, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/private-method-clarification-please/108460 "2007-07-03T20:35:13Z")

</div>

Is this behavior expected? $ cat t.rb class C def meth1() private\_method end def meth2() self.private\_method end def private\_method() puts ‘you called?’ end private :private\_method end c = C.new c.meth1 c.meth2 …

---

## [1.9 coredump](https://www.ruby-forum.com/t/1-9-coredump/104412)

<div class="topic-metadata">

**Author:** [@WATANABE\_Tetsuya](https://www.ruby-forum.com/u/WATANABE_Tetsuya)\
**Replies:** 3\
**Last updated:** [May 30, 2007, 3:49am UTC](https://www.ruby-forum.com/t/1-9-coredump/104412 "2007-05-30T03:49:10Z")

</div>

e$BEOJUE/Li$G$9!#e(B ruby 1.9.0 (2007-05-17 patchlevel 0) \[i686-linux\] e$B\>e$Ge(B core e$B$7$FMn$A$^$9$N$GJs9p$7$^$9!#e(B $ ./ruby-1.9.0 -Ke /tmp/j.rb \*.c \*.h /.c zsh: 29641 segmentation fault (core dumped) ./ruby-…

---

## [How to share a collection of model files across many apps?](https://www.ruby-forum.com/t/how-to-share-a-collection-of-model-files-across-many-apps/89895)

<div class="topic-metadata">

**Author:** [@eblatt](https://www.ruby-forum.com/u/eblatt)\
**Replies:** 3\
**Last updated:** [March 23, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/how-to-share-a-collection-of-model-files-across-many-apps/89895 "2007-03-23T18:44:58Z")

</div>

Hi, I’ve got three files that (a.rb, b.rb, c.rb) that currently live in app/models. I’d like these models to shared by multiple rails apps. These models are associated with a separate database. My rails projects are…

---

## [Best way to determine the memory footprint of an object](https://www.ruby-forum.com/t/best-way-to-determine-the-memory-footprint-of-an-object/87827)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [March 6, 2007, 2:51pm UTC](https://www.ruby-forum.com/t/best-way-to-determine-the-memory-footprint-of-an-object/87827 "2007-03-06T14:51:02Z")

</div>

I’d like to be able to estimate how much memory a given object requires. What is the best/easiest way to do this? One thing that occurred to me was the Marshal.dump the object to a file and look at that, although loo…

---

## [Basic question about form\_for](https://www.ruby-forum.com/t/basic-question-about-form-for/86287)

<div class="topic-metadata">

**Author:** [@suer\_rick](https://www.ruby-forum.com/u/suer_rick)\
**Replies:** 3\
**Last updated:** [February 26, 2007, 12:25am UTC](https://www.ruby-forum.com/t/basic-question-about-form-for/86287 "2007-02-26T00:25:14Z")

</div>

The form\_for api docs have this example: \<% form\_for :person, @person, :url =\> { :action =\> “update” } do |f| %\> Can someone explain the function of :person and @person? I guess that @person was set in the controller…

---

## [Find\_by\_sql across multiple tables](https://www.ruby-forum.com/t/find-by-sql-across-multiple-tables/86319)

<div class="topic-metadata">

**Author:** [@elliterate](https://www.ruby-forum.com/u/elliterate)\
**Replies:** 3\
**Last updated:** [February 22, 2007, 3:23pm UTC](https://www.ruby-forum.com/t/find-by-sql-across-multiple-tables/86319 "2007-02-22T15:23:41Z")

</div>

Hi, I have a rather complex algorithm that needs to return an ordered result set, the only problem is that the results contain rows for two different tables, thus meaning if I do Images.find\_by\_sql, the rows that aren…

---

## [Which architecture to choose for a common website](https://www.ruby-forum.com/t/which-architecture-to-choose-for-a-common-website/83000)

<div class="topic-metadata">

**Author:** [@Matthieu](https://www.ruby-forum.com/u/Matthieu)\
**Replies:** 3\
**Last updated:** [January 23, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/which-architecture-to-choose-for-a-common-website/83000 "2007-01-23T21:02:52Z")

</div>

Hello! I’ve just started using ruby on rails, and I’d like for a first try create a simple website. But I can’t figure out how to organise it from the RoR point of view. Here is my problem: I’d like to set up a webs…

---

## [Bug in @flash deprecation?](https://www.ruby-forum.com/t/bug-in-flash-deprecation/82926)

<div class="topic-metadata">

**Author:** [@Jon\_Evans](https://www.ruby-forum.com/u/Jon_Evans)\
**Replies:** 3\
**Last updated:** [January 23, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/bug-in-flash-deprecation/82926 "2007-01-23T14:25:22Z")

</div>

Hi, I’m getting a warning about @flash since updating to Rails 1.2.1, but as far as I can tell I’m not using @flash. Warning is: DEPRECATION WARNING: @flash is deprecated! Call flash.\[\] instead of @flash.\[\]. Args: \[…

---

## [Including a CSS page](https://www.ruby-forum.com/t/including-a-css-page/77206)

<div class="topic-metadata">

**Author:** [@BJ\_Clark](https://www.ruby-forum.com/u/BJ_Clark)\
**Replies:** 3\
**Last updated:** [November 25, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/including-a-css-page/77206 "2006-11-25T22:03:47Z")

</div>

Hello All, n00b question here. I’m setting up my first radiant site. SVN Trunk. I’ve created 2 layous, “normal” and “stylesheet”. In "stylesheet’ I have: \<r:content /\> I’ve created a page (under my homepage) called …

---

## [Singleton Methods](https://www.ruby-forum.com/t/singleton-methods/75591)

<div class="topic-metadata">

**Author:** [@sur\_max](https://www.ruby-forum.com/u/sur_max)\
**Replies:** 3\
**Last updated:** [November 11, 2006, 11:00am UTC](https://www.ruby-forum.com/t/singleton-methods/75591 "2006-11-11T11:00:57Z")

</div>

Could anyone explain what exactly we meant by a Singleton Method ? See if i am thinking it right… class A end a = A.new a.instance\_eval \<\<-EOS def wishing\_hello puts “HELLO !!” end EOS so, here wishing\_hello w…

---

## [FC6 fusb compile breaker](https://www.ruby-forum.com/t/fc6-fusb-compile-breaker/73773)

<div class="topic-metadata">

**Author:** [@Kyle\_Jamieson](https://www.ruby-forum.com/u/Kyle_Jamieson)\
**Replies:** 3\
**Last updated:** [October 28, 2006, 6:23pm UTC](https://www.ruby-forum.com/t/fc6-fusb-compile-breaker/73773 "2006-10-28T18:23:35Z")

</div>

After upgrading to FC6, usrp/host/lib/fusb\_linux.cc fails to compile (can’t find linux/compiler.h). Turns out for me, that include file isn’t needed at all (trivial patch attached). I wonder if I’ve broken somethin…

---

## [Regex parsing against filenames](https://www.ruby-forum.com/t/regex-parsing-against-filenames/72030)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 3\
**Last updated:** [October 13, 2006, 8:31pm UTC](https://www.ruby-forum.com/t/regex-parsing-against-filenames/72030 "2006-10-13T20:31:03Z")

</div>

Hi, I need to match incoming filenames in a directory on my server, so that I can do stuff in a table. In my testing, I’ve got 9 files: pq181b1p.ps pq181b1t.ps pq181b2p.ps pq181b2t.ps pq181b3t.ps pq192b1p.ps pq1…

---

## [Rubygems front end?](https://www.ruby-forum.com/t/rubygems-front-end/70385)

<div class="topic-metadata">

**Author:** [@ezra\_z](https://www.ruby-forum.com/u/ezra_z)\
**Replies:** 3\
**Last updated:** [September 29, 2006, 5:33pm UTC](https://www.ruby-forum.com/t/rubygems-front-end/70385 "2006-09-29T17:33:02Z")

</div>

Does one exist? I wanted to have a look at how one would go about it. Or to be more specific, I need to make a web interface that I can use to search the available gems, and list their descriptions and versions. I can…

---

## [Date\_select Doesn't Support Multiple Records? No \[\]?](https://www.ruby-forum.com/t/date-select-doesnt-support-multiple-records-no/70413)

<div class="topic-metadata">

**Author:** [@HHHHHH](https://www.ruby-forum.com/u/HHHHHH)\
**Replies:** 3\
**Last updated:** [September 29, 2006, 3:10am UTC](https://www.ruby-forum.com/t/date-select-doesnt-support-multiple-records-no/70413 "2006-09-29T03:10:22Z")

</div>

I am submitting multiple records in a single POST. I am trying to use date\_select as follows: \<%= date\_select(‘event\_date\[\]’, :occurs\_at) %\> Usually, the \[\] in the object name instructs the tag to put the object ID i…

---

## [Using set\_primary\_key breaks acts\_as\_tree with non-integer c](https://www.ruby-forum.com/t/using-set-primary-key-breaks-acts-as-tree-with-non-integer-c/63848)

<div class="topic-metadata">

**Author:** [@jwigal](https://www.ruby-forum.com/u/jwigal)\
**Replies:** 3\
**Last updated:** [June 19, 2006, 11:42pm UTC](https://www.ruby-forum.com/t/using-set-primary-key-breaks-acts-as-tree-with-non-integer-c/63848 "2006-06-19T23:42:42Z")

</div>

I just switched from using the standard “id” column into using my own primary key and generating my own unique id for each record. But, this breaks acts\_as\_tree. Because my new primary key is not an integer, it breaks…

---

## [Requiring /lib files in a cross-platform way](https://www.ruby-forum.com/t/requiring-lib-files-in-a-cross-platform-way/62199)

<div class="topic-metadata">

**Author:** [@alder](https://www.ruby-forum.com/u/alder)\
**Replies:** 3\
**Last updated:** [June 2, 2006, 2:35am UTC](https://www.ruby-forum.com/t/requiring-lib-files-in-a-cross-platform-way/62199 "2006-06-02T02:35:02Z")

</div>

Hi. When you have library foo.rb in your Rails project /lib directory, I notice that on some platforms - e.g. Windows with WEBrick as a server you can require it by simply: require ‘lib/foo’ However on other platfo…

---

## [Validate unless, LoginGenerator difficulty](https://www.ruby-forum.com/t/validate-unless-logingenerator-difficulty/62135)

<div class="topic-metadata">

**Author:** [@Julie\_Fuller](https://www.ruby-forum.com/u/Julie_Fuller)\
**Replies:** 3\
**Last updated:** [May 31, 2006, 10:55pm UTC](https://www.ruby-forum.com/t/validate-unless-logingenerator-difficulty/62135 "2006-05-31T22:55:02Z")

</div>

I apologize if this is a very simple question; I’ve searched the forums, wiki, Google, and Agile Web D. with Rails to no avail. Is there a way to put conditional validation in the model? For instance, if I want to li…

---

## [What's the main inside the block](https://www.ruby-forum.com/t/whats-the-main-inside-the-block/61598)

<div class="topic-metadata">

**Author:** [@taq](https://www.ruby-forum.com/u/taq)\
**Replies:** 3\
**Last updated:** [May 25, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/whats-the-main-inside-the-block/61598 "2006-05-25T15:32:47Z")

</div>

Hi there. I’m wondering what “main” inside a block means. For example: %w(one).each { puts self } =\> main What is exactly the “main” thing there? Btw, to make the block recognize the object instance context where it…

---

## [Quick q on script/generate scaffold](https://www.ruby-forum.com/t/quick-q-on-script-generate-scaffold/58681)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 3\
**Last updated:** [May 24, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/quick-q-on-script-generate-scaffold/58681 "2006-05-24T21:33:17Z")

</div>

I want a scaffold to manager both products and users. To get the products scaffold I used script/generate scaffold Product Admin if I use, script/generate scaffold User Admin will it overwrite my product admin cont…

---

## [Sortable list not saving to database](https://www.ruby-forum.com/t/sortable-list-not-saving-to-database/93706)

<div class="topic-metadata">

**Author:** [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Replies:** 3\
**Last updated:** [April 7, 2006, 2:55pm UTC](https://www.ruby-forum.com/t/sortable-list-not-saving-to-database/93706 "2006-04-07T14:55:21Z")

</div>

i am trying to use a sortable list on my app. i used the chapter in Rails recipes as a reference on how to do it. i have the following code in my controllerr: def sort @user\_list = User.find(params\[:id\]) @user\_list.…

---

## [Newbie - HABTM problems writing to Join Table in SQL](https://www.ruby-forum.com/t/newbie-habtm-problems-writing-to-join-table-in-sql/93600)

<div class="topic-metadata">

**Author:** [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Replies:** 3\
**Last updated:** [April 5, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/newbie-habtm-problems-writing-to-join-table-in-sql/93600 "2006-04-05T18:25:55Z")

</div>

I am attempting to document a join between two tables. There seems to be no writing to my database. Please help me out it is driving me absolutly crazy. Basically i’ve got a table of directors that is called when the …

---

## [Ready to call this a bug](https://www.ruby-forum.com/t/ready-to-call-this-a-bug/93494)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 3\
**Last updated:** [April 4, 2006, 6:00pm UTC](https://www.ruby-forum.com/t/ready-to-call-this-a-bug/93494 "2006-04-04T18:00:46Z")

</div>

I’ve been trying to get a handle on AJAX today and am ready to call “BUG!” I started with the code from Curt’s “AJAX on Rails”. It used \<ul=“my\_list”\> and and worked fine. Except I need a table instead of a list.…

---

## [Problems with flickr gem: already initialized constant](https://www.ruby-forum.com/t/problems-with-flickr-gem-already-initialized-constant/102006)

<div class="topic-metadata">

**Author:** [@Chris\_T](https://www.ruby-forum.com/u/Chris_T)\
**Replies:** 3\
**Last updated:** [February 21, 2006, 2:47pm UTC](https://www.ruby-forum.com/t/problems-with-flickr-gem-already-initialized-constant/102006 "2006-02-21T14:47:54Z")

</div>

New to rails so please bear with me. Am having difficulties with the flickr plugin. trying to follow the video as a starter, and keep hitting the following problem when I require ‘flickr’ in the environment.rb file te…

---

## [Re: ODBA 1.0.2](https://www.ruby-forum.com/t/re-odba-1-0-2/102036)

<div class="topic-metadata">

**Author:** [@mifi](https://www.ruby-forum.com/u/mifi)\
**Replies:** 3\
**Last updated:** [February 7, 2006, 9:13pm UTC](https://www.ruby-forum.com/t/re-odba-1-0-2/102036 "2006-02-07T21:13:42Z")

</div>

Hey Hannes, Really interesting work, but I’m not sure, but your approach reminds me of Og are you aware of that and could you give a short summary of the differences between them? you can find Og at NitroHq.com is…

---

## [Medical APIs](https://www.ruby-forum.com/t/medical-apis/77961)

<div class="topic-metadata">

**Author:** [@tomjerry](https://www.ruby-forum.com/u/tomjerry)\
**Replies:** 3\
**Last updated:** [January 2, 2006, 5:59pm UTC](https://www.ruby-forum.com/t/medical-apis/77961 "2006-01-02T17:59:00Z")

</div>

Hi All: Are there any ruby libraries or hooks into the medial apis out there? IHE http://www.himss.org/ASP/topics\_IHE.asp DICOM http://medical.nema.org/ http://medical.nema.org/dicom/2004.html http://www.nema.org/…

---

## [What does 'h' do?](https://www.ruby-forum.com/t/what-does-h-do/51347)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 3\
**Last updated:** [December 30, 2005, 12:25am UTC](https://www.ruby-forum.com/t/what-does-h-do/51347 "2005-12-30T00:25:03Z")

</div>

I’m sure a real newbie question, but try searching for ‘h’ in any search engine and you don’t get far. I am wondering what the h does in Ruby as in the code below: \<%= h(truncate(product.description, 80)) %\>

---

## [Problem with gem](https://www.ruby-forum.com/t/problem-with-gem/50784)

<div class="topic-metadata">

**Author:** [@Mohammad\_K](https://www.ruby-forum.com/u/Mohammad_K)\
**Replies:** 3\
**Last updated:** [December 21, 2005, 6:29pm UTC](https://www.ruby-forum.com/t/problem-with-gem/50784 "2005-12-21T18:29:31Z")

</div>

Hello, I am trying to make a gem package for one of my library that I am going to make avaiable soon. Problem is, I can successfully install my gem on the machine where I build the gem. But if I copy that gem to anot…

---

## [KirbyBase 2.5: Problem pdating records](https://www.ruby-forum.com/t/kirbybase-2-5-problem-pdating-records/50125)

<div class="topic-metadata">

**Author:** [@basi](https://www.ruby-forum.com/u/basi)\
**Replies:** 3\
**Last updated:** [December 13, 2005, 6:24pm UTC](https://www.ruby-forum.com/t/kirbybase-2-5-problem-pdating-records/50125 "2005-12-13T18:24:16Z")

</div>

Hello, I’m trying to do record upates as follows: tgl\_analysis.select.each do |t| if t.exception != ‘y’ then tgl\_analysis.update {|r| r.recno == t.recno}.set do |r| r.word = (some value) r.prefix = (…

---

## [Exim mail filter in ruby](https://www.ruby-forum.com/t/exim-mail-filter-in-ruby/49144)

<div class="topic-metadata">

**Author:** [@chrisjroos](https://www.ruby-forum.com/u/chrisjroos)\
**Replies:** 3\
**Last updated:** [November 30, 2005, 9:02pm UTC](https://www.ruby-forum.com/t/exim-mail-filter-in-ruby/49144 "2005-11-30T21:02:05Z")

</div>

Hi, I have a requirement to create a shell script that accepts data on it’s standard input, calls another shell script (out of my control), passing an amended copy of the original input, and collects anything sent to …

---

## [Rake load\_fixtures task doesn't load fixtures in plugins?](https://www.ruby-forum.com/t/rake-load-fixtures-task-doesnt-load-fixtures-in-plugins/101213)

<div class="topic-metadata">

**Author:** [@joevandyk](https://www.ruby-forum.com/u/joevandyk)\
**Replies:** 3\
**Last updated:** [November 29, 2005, 4:29am UTC](https://www.ruby-forum.com/t/rake-load-fixtures-task-doesnt-load-fixtures-in-plugins/101213 "2005-11-29T04:29:36Z")

</div>

I’ve got the login\_engine plugin installed which has a fixtures for ‘users’. When I load ‘rake load\_fixtures’, it doesn’t seem to load the login\_engine’s fixtures into the development database. Should it? Or should …

---

## [Form values not included in submit when ajax generated](https://www.ruby-forum.com/t/form-values-not-included-in-submit-when-ajax-generated/100155)

<div class="topic-metadata">

**Author:** [@AndrSSSS](https://www.ruby-forum.com/u/AndrSSSS)\
**Replies:** 3\
**Last updated:** [November 22, 2005, 10:34pm UTC](https://www.ruby-forum.com/t/form-values-not-included-in-submit-when-ajax-generated/100155 "2005-11-22T22:34:57Z")

</div>

Hi. I have a form with two select lists, named ‘project’ and ‘activity’. The content of the ‘activity’ list is changed when the selected item in project changes, using ‘observe\_field’ where project is observed, and a …

---

## [500 Server Error when running dispatch.\*](https://www.ruby-forum.com/t/500-server-error-when-running-dispatch/47694)

<div class="topic-metadata">

**Author:** [@richard](https://www.ruby-forum.com/u/richard)\
**Replies:** 3\
**Last updated:** [November 13, 2005, 7:08pm UTC](https://www.ruby-forum.com/t/500-server-error-when-running-dispatch/47694 "2005-11-13T19:08:07Z")

</div>

Hi all, I’m trying to setup an app on Dreamhost but was getting the ‘Rails application failed to start’ message. To track this down, I tried to run the dispatchers directly to see what’s happening. Here’s the output: …

---

## [Job](https://www.ruby-forum.com/t/job/238539)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [January 16, 2014, 5:24pm UTC](https://www.ruby-forum.com/t/job/238539 "2014-01-16T17:24:58Z")

</div>

Hi, I am looking for a ruby on rails developer in the NY/ NJ area. I have a company website that needs to be created. anyone have any leads? Thank You!

---

## [Confusion about a exercise](https://www.ruby-forum.com/t/confusion-about-a-exercise/222961)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [September 17, 2012, 2:20pm UTC](https://www.ruby-forum.com/t/confusion-about-a-exercise/222961 "2012-09-17T14:20:50Z")

</div>

Hello, I try to learn myself Ror by following this tutorial : Now I have to make this exercise : Make a Contact page for the sample app. First write a test for the existence of a page at the URI /static\_pages/contact…

---

## [File eliminating 'a'](https://www.ruby-forum.com/t/file-eliminating-a/222017)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [August 9, 2012, 2:53pm UTC](https://www.ruby-forum.com/t/file-eliminating-a/222017 "2012-08-09T14:53:37Z")

</div>

How can I eliminate every ‘a’ in a file if it is not inside double quote? For example: input:“acb"gha"abc” output:“acb"gh"abc” Or simply how can I copy file character by character? I can modify then the program as …

---

## [Best Practices in Error Reporting](https://www.ruby-forum.com/t/best-practices-in-error-reporting/211972)

<div class="topic-metadata">

**Author:** [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Replies:** 4\
**Last updated:** [September 19, 2011, 7:44pm UTC](https://www.ruby-forum.com/t/best-practices-in-error-reporting/211972 "2011-09-19T19:44:02Z")

</div>

Newbie here. What is the best practice for implementing error reporting in a Rails application. I have an example that uses ActiveRecord::Base.logger.error. Are there any risks with this or recommendations on other im…

---

## [How do i use JS.Class in ruby](https://www.ruby-forum.com/t/how-do-i-use-js-class-in-ruby/197801)

<div class="topic-metadata">

**Author:** [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Replies:** 4\
**Last updated:** [October 21, 2010, 12:15am UTC](https://www.ruby-forum.com/t/how-do-i-use-js-class-in-ruby/197801 "2010-10-21T00:15:07Z")

</div>

Hii all, I would like to use JS.Class in ruby but i don’t know where to start it means i downloaded a packege named JS.class but i do i include it in ruby ??And can anyone give me example to how should i use it…

---

## [Nothing is being inserted into the database...help!](https://www.ruby-forum.com/t/nothing-is-being-inserted-into-the-database-help/194418)

<div class="topic-metadata">

**Author:** [@jakx12](https://www.ruby-forum.com/u/jakx12)\
**Replies:** 4\
**Last updated:** [September 7, 2010, 12:34am UTC](https://www.ruby-forum.com/t/nothing-is-being-inserted-into-the-database-help/194418 "2010-09-07T00:34:20Z")

</div>

Hello all, for some reason nothing is being inserted into the database. I have no idea why not! Here is my action: def create @information = CalorieKing.new @information = CalorieKing.get\_information(params\[:id\]) @…

---

## [Time-dependent values/constants in Models: An issue or not?](https://www.ruby-forum.com/t/time-dependent-values-constants-in-models-an-issue-or-not/190748)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 4\
**Last updated:** [June 28, 2010, 9:28pm UTC](https://www.ruby-forum.com/t/time-dependent-values-constants-in-models-an-issue-or-not/190748 "2010-06-28T21:28:25Z")

</div>

Hi there, I remember reading in the comments of a Rails blog something along these lines: “Since a Model is loaded only once in production development (at server start), certain time-dependent ‘constants’ that you ha…

---

## [Route conflict - help resolving](https://www.ruby-forum.com/t/route-conflict-help-resolving/188763)

<div class="topic-metadata">

**Author:** [@sso](https://www.ruby-forum.com/u/sso)\
**Replies:** 4\
**Last updated:** [May 18, 2010, 4:53pm UTC](https://www.ruby-forum.com/t/route-conflict-help-resolving/188763 "2010-05-18T16:53:42Z")

</div>

These are the routes I would like: map.forums\_new\_topic ‘forums/:forum\_id/:subsection\_id/topics/ new’, :controller =\> “topics”, :action =\> “new” map.forums\_show\_topic ‘forums/:forum\_id/:subsection\_id/:topic\_id’, :con…

---

## [Order\_by From another Model Field](https://www.ruby-forum.com/t/order-by-from-another-model-field/186985)

<div class="topic-metadata">

**Author:** [@ashu](https://www.ruby-forum.com/u/ashu)\
**Replies:** 4\
**Last updated:** [April 15, 2010, 10:37am UTC](https://www.ruby-forum.com/t/order-by-from-another-model-field/186985 "2010-04-15T10:37:16Z")

</div>

trying to order\_by From another Model Field if params\[:order\_by\] == ‘name’ @object = Object.paginate(:all, :page =\> self.page\_number, :per\_page =\> 50, :order =\> “#{params\[:order\_by\]}”) elsif params\[:order\_by\] == ‘las…

---

## [Require, from within lib, files located under the local path](https://www.ruby-forum.com/t/require-from-within-lib-files-located-under-the-local-path/185592)

<div class="topic-metadata">

**Author:** [@jdv](https://www.ruby-forum.com/u/jdv)\
**Replies:** 4\
**Last updated:** [March 24, 2010, 4:49am UTC](https://www.ruby-forum.com/t/require-from-within-lib-files-located-under-the-local-path/185592 "2010-03-24T04:49:59Z")

</div>

Hi. Here’s an issue I’ve not been able to solve for some time now. Let’s say I designed a tiny library, following a standard structure: $ tree . |-- LICENSE |-- README.md |-- Rakefile |-- VERSION |-- lib | |-…

---

## [Name that DDL!](https://www.ruby-forum.com/t/name-that-ddl/182853)

<div class="topic-metadata">

**Author:** [@vyper](https://www.ruby-forum.com/u/vyper)\
**Replies:** 4\
**Last updated:** [February 3, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/name-that-ddl/182853 "2010-02-03T23:38:10Z")

</div>

Hi all, I’m working on writing a Ruby script to SSH into one of our VMware Servers and do a little command line work for me. The challenge is that some of the output is in some kind of data definition language I do…

---

## [Newbie question - how set up working with a subset of data (e.g. user's data)?](https://www.ruby-forum.com/t/newbie-question-how-set-up-working-with-a-subset-of-data-e-g-users-data/181648)

<div class="topic-metadata">

**Author:** [@Souschef](https://www.ruby-forum.com/u/Souschef)\
**Replies:** 4\
**Last updated:** [January 22, 2010, 5:44am UTC](https://www.ruby-forum.com/t/newbie-question-how-set-up-working-with-a-subset-of-data-e-g-users-data/181648 "2010-01-22T05:44:26Z")

</div>

I’m new to rails & am building out an application to learn from. From a conceptual perspective, how would I go about working with a subset of data? For example, say I have an application with basic CRUD operations o…

---

## [Encrypt message in html file](https://www.ruby-forum.com/t/encrypt-message-in-html-file/181211)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 4\
**Last updated:** [January 7, 2010, 7:12pm UTC](https://www.ruby-forum.com/t/encrypt-message-in-html-file/181211 "2010-01-07T19:12:01Z")

</div>

Hello. How you can encrypt a message using as a container HTML file, that is, the message must be recorded in the gaps that HTML ignores.

---

## [Link\_to :back problem](https://www.ruby-forum.com/t/link-to-back-problem/167323)

<div class="topic-metadata">

**Author:** [@elliottg](https://www.ruby-forum.com/u/elliottg)\
**Replies:** 4\
**Last updated:** [May 7, 2009, 4:27am UTC](https://www.ruby-forum.com/t/link-to-back-problem/167323 "2009-05-07T04:27:01Z")

</div>

Hello, I have used \<%= link\_to “Back”, :back %\> many times with no issues. This time I am getting this error: Unknown action No action responded to index. Actions: access\_denied, check\_roles, create, new, role\_requi…

---

## [Search Results into new table](https://www.ruby-forum.com/t/search-results-into-new-table/163270)

<div class="topic-metadata">

**Author:** [@nickh](https://www.ruby-forum.com/u/nickh)\
**Replies:** 4\
**Last updated:** [March 19, 2009, 2:46am UTC](https://www.ruby-forum.com/t/search-results-into-new-table/163270 "2009-03-19T02:46:10Z")

</div>

I have a search form on my rails site. once the a user has entered a query it displays the results in a table with an extra field button so it can be added to there own portfolio called add to my stocks. How do i get …

---

## [Dynamically create an unknown number of arrays](https://www.ruby-forum.com/t/dynamically-create-an-unknown-number-of-arrays/159644)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 4\
**Last updated:** [February 6, 2009, 6:34pm UTC](https://www.ruby-forum.com/t/dynamically-create-an-unknown-number-of-arrays/159644 "2009-02-06T18:34:24Z")

</div>

I need to create an unknow number of arrays on the fly (could be 1 array could be 10, I don’t know), is there a way to do this in Ruby and also name them dynamically? I also need to set those array’s to a collection o…

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

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