# Top

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

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

---

## [Error compiling ruby under AIX 5.3 with GCC during the make phase](https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572)

<div class="topic-metadata">

**Author:** [@ribes](https://www.ruby-forum.com/u/ribes)\
**Replies:** 3\
**Last updated:** [May 3, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/error-compiling-ruby-under-aix-5-3-with-gcc-during-the-make-phase/136572 "2008-05-03T23:49:32Z")

</div>

Team, I was trying to compile ruby 1.8.6-p114 under AIX 5.3 with gcc version 4.2.0. During the make phase I received the following error: … rbconfig.rb updated compiling Win32API compiling bigdecimal mkdir -p …/……

---

## [Will Rails 2.0 support my 1.2 rails codes](https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 3\
**Last updated:** [April 15, 2008, 11:27am UTC](https://www.ruby-forum.com/t/will-rails-2-0-support-my-1-2-rails-codes/134798 "2008-04-15T11:27:12Z")

</div>

Hello, I am working with rails 1.2, since many books are available for this. I am also learning few new things with rails 2.0 also. I am just confused with this question. Can i deploy my 1.2 codes on the rails 2.0 fr…

---

## [MetaMonster](https://www.ruby-forum.com/t/metamonster/133482)

<div class="topic-metadata">

**Author:** [@Ruhe](https://www.ruby-forum.com/u/Ruhe)\
**Replies:** 3\
**Last updated:** [April 2, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/metamonster/133482 "2008-04-02T13:29:02Z")

</div>

Hi. I needed something like a Vector class, but with named elements, and default params in constructor. I needed to add, subtract, multiply my own vectors. At the same time a learned a lot about metaprogramming. So …

---

## [Weird "session-bug" when using multiple calls](https://www.ruby-forum.com/t/weird-session-bug-when-using-multiple-calls/130241)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [February 27, 2008, 10:34am UTC](https://www.ruby-forum.com/t/weird-session-bug-when-using-multiple-calls/130241 "2008-02-27T10:34:40Z")

</div>

Hi! Can someone understand why this happens? http://pastebin.com/mde5f1b7 #controller class StartController \< ApplicationController append\_before\_filter :get\_page\_settings def get\_page\_settings() session\[:testlis…

---

## [Help with routing - prefix added automatically? - lookup action wanted](https://www.ruby-forum.com/t/help-with-routing-prefix-added-automatically-lookup-action-wanted/129655)

<div class="topic-metadata">

**Author:** [@tonypm](https://www.ruby-forum.com/u/tonypm)\
**Replies:** 3\
**Last updated:** [February 25, 2008, 11:13am UTC](https://www.ruby-forum.com/t/help-with-routing-prefix-added-automatically-lookup-action-wanted/129655 "2008-02-25T11:13:49Z")

</div>

I want to add a lookup action to my controller. I am trying to stay in the REST framework, so I have used map.resources :products I tried adding :member=\>{:lookup=\>:get} but this created a route that expected an id. …

---

## [Problem migrating to specific schema in PostgreSQL](https://www.ruby-forum.com/t/problem-migrating-to-specific-schema-in-postgresql/129107)

<div class="topic-metadata">

**Author:** [@lgas](https://www.ruby-forum.com/u/lgas)\
**Replies:** 3\
**Last updated:** [February 15, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/problem-migrating-to-specific-schema-in-postgresql/129107 "2008-02-15T13:05:37Z")

</div>

Hi All, I have created a schema named “CFG” in the postgreSQL database named “EIS1”. When run the rake command to migrate. The scripts are always run in the “Public” schema in database “EIS1”. How do I make it run u…

---

## [Build Configuration Q](https://www.ruby-forum.com/t/build-configuration-q/126341)

<div class="topic-metadata">

**Author:** [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Replies:** 3\
**Last updated:** [January 17, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/build-configuration-q/126341 "2008-01-17T20:01:38Z")

</div>

I’m working (again) on the MacPorts port and files associated with GNU Radio, playing with GNU Radio’s “Build Configuration” options in order to get a separate package for each component (e.g. one each for “gnuradio-c…

---

## [Executing code after each step of a story](https://www.ruby-forum.com/t/executing-code-after-each-step-of-a-story/124237)

<div class="topic-metadata">

**Author:** [@Armin\_J](https://www.ruby-forum.com/u/Armin_J)\
**Replies:** 3\
**Last updated:** [January 1, 2008, 1:42pm UTC](https://www.ruby-forum.com/t/executing-code-after-each-step-of-a-story/124237 "2008-01-01T13:42:50Z")

</div>

Hello, how can I execute some code after each step of a story. Is there some kind of listener documentated. Thank you in advance, Armin

---

## [Flex2400 and benchmark\_rx.py - receiving only fraction of packets](https://www.ruby-forum.com/t/flex2400-and-benchmark-rx-py-receiving-only-fraction-of-packets/124109)

<div class="topic-metadata">

**Author:** [@sri\_ram](https://www.ruby-forum.com/u/sri_ram)\
**Replies:** 3\
**Last updated:** [December 24, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/flex2400-and-benchmark-rx-py-receiving-only-fraction-of-packets/124109 "2007-12-24T21:40:33Z")

</div>

Hi all, I am working with Flex2400 boards and the USRP. I have a question about the digital module (GMSK data transfer). I observe this: When I send 660 packets , I receive less than 400 of them and less than 200 are…

---

## [How to get the errors on Controlers](https://www.ruby-forum.com/t/how-to-get-the-errors-on-controlers/121986)

<div class="topic-metadata">

**Author:** [@Anson](https://www.ruby-forum.com/u/Anson)\
**Replies:** 3\
**Last updated:** [December 14, 2007, 10:59am UTC](https://www.ruby-forum.com/t/how-to-get-the-errors-on-controlers/121986 "2007-12-14T10:59:57Z")

</div>

Now i want to get the errors of Model(like some error of validate\_xxx\_of ) How can i do? it seems that no error object on Controllers by API docments, Thanks.

---

## [Sytanx question](https://www.ruby-forum.com/t/sytanx-question/122179)

<div class="topic-metadata">

**Author:** [@wrb](https://www.ruby-forum.com/u/wrb)\
**Replies:** 3\
**Last updated:** [December 5, 2007, 11:55am UTC](https://www.ruby-forum.com/t/sytanx-question/122179 "2007-12-05T11:55:30Z")

</div>

in a template file login.rhtml: \<%= form.password\_field :password, :size =\> 40 %\> and i get this error: undefined method \`password’ for #\<User:0x47e5bcc what is this supposed to mean? and somebody please explain thi…

---

## [System commands](https://www.ruby-forum.com/t/system-commands/109568)

<div class="topic-metadata">

**Author:** [@rorjeff](https://www.ruby-forum.com/u/rorjeff)\
**Replies:** 3\
**Last updated:** [December 2, 2007, 12:40am UTC](https://www.ruby-forum.com/t/system-commands/109568 "2007-12-02T00:40:47Z")

</div>

Let me first apologize I asked this question last week and lost the answer. How do I run Linux commands in side a ruby program? I’ll print it out this time. Thanks Jeff

---

## [Flash\[:symbol\] with html possible?](https://www.ruby-forum.com/t/flash-symbol-with-html-possible/120607)

<div class="topic-metadata">

**Author:** [@yachtman](https://www.ruby-forum.com/u/yachtman)\
**Replies:** 3\
**Last updated:** [November 19, 2007, 9:10am UTC](https://www.ruby-forum.com/t/flash-symbol-with-html-possible/120607 "2007-11-19T09:10:20Z")

</div>

Trying to put in my controller Flash\[:notice\] = "\<%= #{link\_to 'edit', :action =\> 'edit'} =\>" but, I get a “undefined method link\_to” error. I would think that the :notice code would be rendered in the view, which sh…

---

## [How to access a form value in template from controller](https://www.ruby-forum.com/t/how-to-access-a-form-value-in-template-from-controller/113150)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 3\
**Last updated:** [August 28, 2007, 5:29am UTC](https://www.ruby-forum.com/t/how-to-access-a-form-value-in-template-from-controller/113150 "2007-08-28T05:29:56Z")

</div>

I have this in my template \<%= hidden\_field(:content\_provider, :id, {:value =\> ‘1’}) %\> How do I get it’s value (1) in my controller?

---

## [Using unions in ActiveRecord](https://www.ruby-forum.com/t/using-unions-in-activerecord/112233)

<div class="topic-metadata">

**Author:** [@simplydope](https://www.ruby-forum.com/u/simplydope)\
**Replies:** 3\
**Last updated:** [August 17, 2007, 5:17am UTC](https://www.ruby-forum.com/t/using-unions-in-activerecord/112233 "2007-08-17T05:17:02Z")

</div>

I am at a complete loss of how to do this in an ActiveRecord: Example select concat(c.last\_name, ', ', c.first\_name,) as name from customer c inner join basketball b on (c.id=b.cust\_id) where b.start\_date \> ‘8/1/200…

---

## [Working with classname that is stored in a string](https://www.ruby-forum.com/t/working-with-classname-that-is-stored-in-a-string/111966)

<div class="topic-metadata">

**Author:** [@Glen\_H](https://www.ruby-forum.com/u/Glen_H)\
**Replies:** 3\
**Last updated:** [August 13, 2007, 11:29pm UTC](https://www.ruby-forum.com/t/working-with-classname-that-is-stored-in-a-string/111966 "2007-08-13T23:29:18Z")

</div>

Hi all, I’m trying to DRY my latest Rails project and have run into a problem for which the answer appears to lie in my personal sea of ignorance. I want to write a helper that will let me set the fields I want to d…

---

## [Is there any command line editing package?](https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244)

<div class="topic-metadata">

**Author:** [@haomiao](https://www.ruby-forum.com/u/haomiao)\
**Replies:** 3\
**Last updated:** [July 25, 2007, 2:40am UTC](https://www.ruby-forum.com/t/is-there-any-command-line-editing-package/110244 "2007-07-25T02:40:59Z")

</div>

Hi I want to develop a command line environment using ruby, it can - edit the command line online, like vi mode or emacs mode in bash - support command history and history searching - the command is not the real sh…

---

## [Including modules - ordering question](https://www.ruby-forum.com/t/including-modules-ordering-question/107894)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 3\
**Last updated:** [June 27, 2007, 7:21pm UTC](https://www.ruby-forum.com/t/including-modules-ordering-question/107894 "2007-06-27T19:21:37Z")

</div>

Hi, I have a module where I include modules as usual: module A module B end module C include B include D end module D end end When I require this file, I’ll get an error here because module D is being includ…

---

## [When file gets closed in a block](https://www.ruby-forum.com/t/when-file-gets-closed-in-a-block/107216)

<div class="topic-metadata">

**Author:** [@ther](https://www.ruby-forum.com/u/ther)\
**Replies:** 3\
**Last updated:** [June 19, 2007, 4:10pm UTC](https://www.ruby-forum.com/t/when-file-gets-closed-in-a-block/107216 "2007-06-19T16:10:53Z")

</div>

I like to use this a lot: File.new(cName,‘wb+’).write(‘aText’) I have understood that file gets automaticly closed. But when? You can not delete file right after above statement. If you want to delete file you must u…

---

## [Rails store / e-commerce suite?](https://www.ruby-forum.com/t/rails-store-e-commerce-suite/106762)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 3\
**Last updated:** [June 13, 2007, 11:30pm UTC](https://www.ruby-forum.com/t/rails-store-e-commerce-suite/106762 "2007-06-13T23:30:42Z")

</div>

I know the point of rails is to make things so easy that you don’t need to do this, but I have a friend of mine that wants to sell t-shirts. I need a simple / easy to set up a store suite for rails. Is there anything …

---

## [Print name of partial](https://www.ruby-forum.com/t/print-name-of-partial/105498)

<div class="topic-metadata">

**Author:** [@khmckgrp](https://www.ruby-forum.com/u/khmckgrp)\
**Replies:** 3\
**Last updated:** [May 30, 2007, 4:45pm UTC](https://www.ruby-forum.com/t/print-name-of-partial/105498 "2007-05-30T16:45:09Z")

</div>

DRY works, but when applied to partials it does make debugging someone else code more difficult! Is there a way to add a debug line (in each \_file.rhtml) that would print out the name of the partials that comprise a p…

---

## [Unable to use gem cleanup on ubuntu feisty](https://www.ruby-forum.com/t/unable-to-use-gem-cleanup-on-ubuntu-feisty/104403)

<div class="topic-metadata">

**Author:** [@vince](https://www.ruby-forum.com/u/vince)\
**Replies:** 3\
**Last updated:** [May 23, 2007, 12:25am UTC](https://www.ruby-forum.com/t/unable-to-use-gem-cleanup-on-ubuntu-feisty/104403 "2007-05-23T00:25:40Z")

</div>

anyone else having this problem? i got the same error on two clean installs. it@T43:~$ ruby --version ruby 1.8.5 (2006-08-25) \[i486-linux\] it@T43:~$ rails --version Rails 1.2.3 it@T43:~$ gem --version 0.9.3 it@…

---

## [Has\_many :through ... am I missing something here?](https://www.ruby-forum.com/t/has-many-through-am-i-missing-something-here/92577)

<div class="topic-metadata">

**Author:** [@Bryce](https://www.ruby-forum.com/u/Bryce)\
**Replies:** 3\
**Last updated:** [April 21, 2007, 12:55am UTC](https://www.ruby-forum.com/t/has-many-through-am-i-missing-something-here/92577 "2007-04-21T00:55:16Z")

</div>

I have three models. Admin, Stuff, Permission. Each admin can do lots of stuff, but only if they have permission. I have the following relationship set up: class Admin has\_many :stuffs, :through =\> :permissions end …

---

## [Ruby on Rails questions about maintenance and dsl's](https://www.ruby-forum.com/t/ruby-on-rails-questions-about-maintenance-and-dsls/88203)

<div class="topic-metadata">

**Author:** [@Arjen\_van\_Schie](https://www.ruby-forum.com/u/Arjen_van_Schie)\
**Replies:** 3\
**Last updated:** [March 8, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-questions-about-maintenance-and-dsls/88203 "2007-03-08T22:39:18Z")

</div>

Hi, I’m trying to find answers to the following questions and maybe some of you can give me a clue or direction. Especially pointers to publications would be a pro! Is rails a true DSL? I think it is, by fowlers d…

---

## [Help with IMAP documentation](https://www.ruby-forum.com/t/help-with-imap-documentation/85581)

<div class="topic-metadata">

**Author:** [@barjunk](https://www.ruby-forum.com/u/barjunk)\
**Replies:** 3\
**Last updated:** [February 15, 2007, 12:28am UTC](https://www.ruby-forum.com/t/help-with-imap-documentation/85581 "2007-02-15T00:28:57Z")

</div>

Being new to ruby, I’m having a little trouble getting my mind around the documentation for net/imap, located here: http://www.ruby-doc.org/stdlib/libdoc/net/imap/rdoc/index.html I understand that if I do: messagestr…

---

## [Reusable code in AWS](https://www.ruby-forum.com/t/reusable-code-in-aws/81983)

<div class="topic-metadata">

**Author:** [@Ed\_Hickey](https://www.ruby-forum.com/u/Ed_Hickey)\
**Replies:** 3\
**Last updated:** [January 16, 2007, 7:29pm UTC](https://www.ruby-forum.com/t/reusable-code-in-aws/81983 "2007-01-16T19:29:33Z")

</div>

From what I’ve read (manual site, AWDWR), I don’t see the ability to easily re-use your ActionController methods in your ActionWebServices. The problem I’m finding is that the AWS methods require arguments in their …

---

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

<div class="topic-metadata">

**Author:** [@Stewart](https://www.ruby-forum.com/u/Stewart)\
**Replies:** 3\
**Last updated:** [December 21, 2006, 5:00am UTC](https://www.ruby-forum.com/t/link-to/79883 "2006-12-21T05:00:48Z")

</div>

quick question about link\_to if i wanted to pass an id using link to i could do something like this… \<%= link\_to “somewhere”, :action =\> “someaction”, :id =\> somerecord %\> What if i wanted to send 2 id’s with the lin…

---

## [How do you confine a search to a certain page and its childr](https://www.ruby-forum.com/t/how-do-you-confine-a-search-to-a-certain-page-and-its-childr/77608)

<div class="topic-metadata">

**Author:** [@mike-moscow](https://www.ruby-forum.com/u/mike-moscow)\
**Replies:** 3\
**Last updated:** [December 6, 2006, 5:03pm UTC](https://www.ruby-forum.com/t/how-do-you-confine-a-search-to-a-certain-page-and-its-childr/77608 "2006-12-06T17:03:02Z")

</div>

I’m using the search behavior modified by john for ruby-lang. How would I go about restricting the search to just a certain page and it children. So that it could only return results from that page and its children. …

---

## [Uneval,mtime,hash - Meta programming](https://www.ruby-forum.com/t/uneval-mtime-hash-meta-programming/77832)

<div class="topic-metadata">

**Author:** [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Replies:** 3\
**Last updated:** [November 30, 2006, 11:37pm UTC](https://www.ruby-forum.com/t/uneval-mtime-hash-meta-programming/77832 "2006-11-30T23:37:47Z")

</div>

I often do things that take far too much time. So I create “make” like scripts that understand dependencies and targets and when things need to be remade or not. This saves me heaps and heaps of time. So I just had t…

---

## [RubyForge verus JavaForge? for online project/defect track](https://www.ruby-forum.com/t/rubyforge-verus-javaforge-for-online-project-defect-track/74013)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 3\
**Last updated:** [October 29, 2006, 11:20pm UTC](https://www.ruby-forum.com/t/rubyforge-verus-javaforge-for-online-project-defect-track/74013 "2006-10-29T23:20:01Z")

</div>

Hi, Anyone know the difference, or have an opinion, re RubyForge versus JavaForge for setting up an online defect tracking project for one’s project? I see that JavaForge has SVN integration (haven’t tried it yet). …

---

## [Unbalanced code snippet include](https://www.ruby-forum.com/t/unbalanced-code-snippet-include/72268)

<div class="topic-metadata">

**Author:** [@jazcyk](https://www.ruby-forum.com/u/jazcyk)\
**Replies:** 3\
**Last updated:** [October 18, 2006, 10:44am UTC](https://www.ruby-forum.com/t/unbalanced-code-snippet-include/72268 "2006-10-18T10:44:11Z")

</div>

Is there a way to insert code which is unbalanced into Ruby source. For example, I have a condition which is checked in many places, but which i am not yet sure is the correct condition, so i want to keep only that co…

---

## [Setting the default homepage](https://www.ruby-forum.com/t/setting-the-default-homepage/71600)

<div class="topic-metadata">

**Author:** [@Stever](https://www.ruby-forum.com/u/Stever)\
**Replies:** 3\
**Last updated:** [October 10, 2006, 9:09am UTC](https://www.ruby-forum.com/t/setting-the-default-homepage/71600 "2006-10-10T09:09:56Z")

</div>

Hello, Is there a way to set the default homepage? Right now it goes to public/index.html, but i want to to go my standard controller (/user/index). Do I set this in my routes.rb file?

---

## [Rails Time extensions are \_not\_ time difference safe](https://www.ruby-forum.com/t/rails-time-extensions-are-not-time-difference-safe/70574)

<div class="topic-metadata">

**Author:** [@nauhaie](https://www.ruby-forum.com/u/nauhaie)\
**Replies:** 3\
**Last updated:** [October 1, 2006, 4:14pm UTC](https://www.ruby-forum.com/t/rails-time-extensions-are-not-time-difference-safe/70574 "2006-10-01T16:14:47Z")

</div>

=\> Sun Oct 29 09:32:08 +0100 2006 t.beginning\_of\_day =\> Sun Oct 29 01:00:00 +0200 2006 Is 1 am really beginning of day? Nothing more to say. In Europe, pretty much every country adds an hour or remove it twice …

---

## [Slave-0.2.0](https://www.ruby-forum.com/t/slave-0-2-0/69769)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [September 24, 2006, 11:40pm UTC](https://www.ruby-forum.com/t/slave-0-2-0/69769 "2006-09-24T23:40:42Z")

</div>

SYNOPSIS the Slave class forks a process and starts a drb server in the child using any object as the server. the process is detached so it is not required (nor possible) to wait on the child pid. a Heartbeat is s…

---

## [Float#hash collision](https://www.ruby-forum.com/t/float-hash-collision/66287)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 3\
**Last updated:** [August 30, 2006, 5:03am UTC](https://www.ruby-forum.com/t/float-hash-collision/66287 "2006-08-30T05:03:56Z")

</div>

e$B$J$+$@$G$9!#e(B Float#hashe$B$,0\[MM$K\>WFM$9$k$h$&$G$9!#0J2\<$N%3!\<%I$GD4$Y$F$\_$k$H!"e(B e$BM-8zN($Oe(B5%e$BDxEY$G$9!#e(B a = Array.new(10\_000) {rand} h = Hash.new(0) a.each {|x| h\[x.hash\] += 1} p h.size.to\_f / a.…

---

## [Use collection\_select](https://www.ruby-forum.com/t/use-collection-select/65313)

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 3\
**Last updated:** [August 18, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/use-collection-select/65313 "2006-08-18T15:32:28Z")

</div>

I use the following code in my view: \<%= collection\_select(‘datedata’, ‘date’, @allDate, :id, :date) %\> It’s show me the date of all entries in the database (Dropdown menu). Additional, I wrote a helper method “showDa…

---

## [Custom id field auto\_increment increment and offset?](https://www.ruby-forum.com/t/custom-id-field-auto-increment-increment-and-offset/102235)

<div class="topic-metadata">

**Author:** [@giuseb](https://www.ruby-forum.com/u/giuseb)\
**Replies:** 0\
**Last updated:** [August 13, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/custom-id-field-auto-increment-increment-and-offset/102235 "2006-08-13T20:06:02Z")

</div>

Hi all, in mysql, you can set the following environment variables: set @@auto\_increment\_offset = 4; set @@auto\_increment\_increment =10; such that: create table people (id int auto\_increment primary key, name char…

---

## [Calling/Executing javascript functions from controller](https://www.ruby-forum.com/t/calling-executing-javascript-functions-from-controller/101251)

<div class="topic-metadata">

**Author:** [@russ](https://www.ruby-forum.com/u/russ)\
**Replies:** 3\
**Last updated:** [August 4, 2006, 9:55pm UTC](https://www.ruby-forum.com/t/calling-executing-javascript-functions-from-controller/101251 "2006-08-04T21:55:09Z")

</div>

Hey all, How can I call a javascript function from my controller? Is it possible to simply call a javascript function from directly in the controller WITHOUT needing an AJAX request to come through via link\_to\_remote…

---

## [Question on login generators, plugins](https://www.ruby-forum.com/t/question-on-login-generators-plugins/62681)

<div class="topic-metadata">

**Author:** [@Dark\_A](https://www.ruby-forum.com/u/Dark_A)\
**Replies:** 3\
**Last updated:** [August 3, 2006, 2:23pm UTC](https://www.ruby-forum.com/t/question-on-login-generators-plugins/62681 "2006-08-03T14:23:50Z")

</div>

Not sure if I want to build my own or use something already built that’s out there. This is the first step in my project though and a major one, so some of my requirements would be: 1-The ability for a user to regi…

---

## [Instant Rails not finding database](https://www.ruby-forum.com/t/instant-rails-not-finding-database/99107)

<div class="topic-metadata">

**Author:** [@xia](https://www.ruby-forum.com/u/xia)\
**Replies:** 3\
**Last updated:** [July 21, 2006, 1:22am UTC](https://www.ruby-forum.com/t/instant-rails-not-finding-database/99107 "2006-07-21T01:22:53Z")

</div>

Hey there I’ve got instant rails installed, and it’s phpmyadmin can find the database at the ascribed mysql port (3210) …however, altho i have got my ‘depot\_development’ db in there (along with the other dbs that shi…

---

## [Difficult view code logic](https://www.ruby-forum.com/t/difficult-view-code-logic/96855)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 3\
**Last updated:** [July 2, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/difficult-view-code-logic/96855 "2006-07-02T22:19:16Z")

</div>

this one really has me stumped… \<%= user.in\_out == “In” ? {image\_tag url\_for\_file\_column(“personnel”, “image”, “thumb”)} if user.image : user.in\_out %\> What I am wanting to do… if user.in\_out == “In”, load their thum…

---

## [How to use at\_beginning\_of\_year](https://www.ruby-forum.com/t/how-to-use-at-beginning-of-year/63330)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 3\
**Last updated:** [June 14, 2006, 10:36am UTC](https://www.ruby-forum.com/t/how-to-use-at-beginning-of-year/63330 "2006-06-14T10:36:59Z")

</div>

I want to get the Date in formation YYYY-MM-DD for the start of the current year But I cannot think how to do it… This generates a name error .rhtml view. \<%= at\_beginning\_of\_year.Time.now %\>

---

## [Once a day activity](https://www.ruby-forum.com/t/once-a-day-activity/61692)

<div class="topic-metadata">

**Author:** [@joe-dumoulin](https://www.ruby-forum.com/u/joe-dumoulin)\
**Replies:** 3\
**Last updated:** [May 29, 2006, 8:58am UTC](https://www.ruby-forum.com/t/once-a-day-activity/61692 "2006-05-29T08:58:24Z")

</div>

Say I want to send out an email once a day to people who’s name is “Bob”. Would I use script/runner in conjunction with cron? Or is there another cool(er) way now? Thanks, Joe

---

## [Gem install -- need help](https://www.ruby-forum.com/t/gem-install-need-help/60955)

<div class="topic-metadata">

**Author:** [@princenamor](https://www.ruby-forum.com/u/princenamor)\
**Replies:** 3\
**Last updated:** [May 19, 2006, 2:46pm UTC](https://www.ruby-forum.com/t/gem-install-need-help/60955 "2006-05-19T14:46:45Z")

</div>

I am having problems trying to install new gems. Most notably, recently I have attempted to install the fcgi and the mysql gems. In both cases, I get the following error: can’t find header files for ruby. ERROR: W…

---

## [File\_column error](https://www.ruby-forum.com/t/file-column-error/94721)

<div class="topic-metadata">

**Author:** [@jpfeifer](https://www.ruby-forum.com/u/jpfeifer)\
**Replies:** 3\
**Last updated:** [May 13, 2006, 6:24am UTC](https://www.ruby-forum.com/t/file-column-error/94721 "2006-05-13T06:24:32Z")

</div>

Hmm, I’m using file\_column and going by this tutorial, the files upload ok and I can see the fields updated in the database, but I am getting this error: “Trying to access file\_column, but primary key got lost.” Than…

---

## [NoMethodError while testing a new engine](https://www.ruby-forum.com/t/nomethoderror-while-testing-a-new-engine/57908)

<div class="topic-metadata">

**Author:** [@Govinda\_Pfister](https://www.ruby-forum.com/u/Govinda_Pfister)\
**Replies:** 0\
**Last updated:** [April 16, 2006, 1:06am UTC](https://www.ruby-forum.com/t/nomethoderror-while-testing-a-new-engine/57908 "2006-04-16T01:06:52Z")

</div>

Hello List, I am using Rails 1.1.2 Engine Plugin 1.1.1 Linux Debian Sarge Ruby 1.8.2 and I cannot find the solution for a problem I got while developing my first own engine. Part of the engine functionality seems t…

---

## [Web services and security](https://www.ruby-forum.com/t/web-services-and-security/57511)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 3\
**Last updated:** [April 11, 2006, 6:02pm UTC](https://www.ruby-forum.com/t/web-services-and-security/57511 "2006-04-11T18:02:42Z")

</div>

Hi all, How do folks generally secure their Rails web services? A password in a config file? A ‘webservice’ user in a ‘Users’ table with its own password? LDAP authentication for every method? Only authenticate o…

---

## [RE: Ruby/OCI8 not working on Rails 1.1](https://www.ruby-forum.com/t/re-ruby-oci8-not-working-on-rails-1-1/56266)

<div class="topic-metadata">

**Author:** [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Replies:** 3\
**Last updated:** [March 30, 2006, 2:28am UTC](https://www.ruby-forum.com/t/re-ruby-oci8-not-working-on-rails-1-1/56266 "2006-03-30T02:28:57Z")

</div>

http://blog.dragonsharp.com This is a bug in the oracle adapter for Rails, not in OCI8 itself (afaict). Now, as to why it’s trying to load the adapter when you’re not even using it, I’m not sure. Regards, Dan

---

## [Migration Rollbacks](https://www.ruby-forum.com/t/migration-rollbacks/84835)

<div class="topic-metadata">

**Author:** [@johnk](https://www.ruby-forum.com/u/johnk)\
**Replies:** 3\
**Last updated:** [March 21, 2006, 8:21pm UTC](https://www.ruby-forum.com/t/migration-rollbacks/84835 "2006-03-21T20:21:29Z")

</div>

Another question about migrations. When I type: =========== rake migration VERSION=1 The value in the schema table change to ‘1’ but none of the down commands are issued to drop the respective tables. Am I doing so…

---

## [What am I missing? Activerecord & Sessions!](https://www.ruby-forum.com/t/what-am-i-missing-activerecord-sessions/75721)

<div class="topic-metadata">

**Author:** [@Tyler\_Keating](https://www.ruby-forum.com/u/Tyler_Keating)\
**Replies:** 3\
**Last updated:** [March 3, 2006, 6:03pm UTC](https://www.ruby-forum.com/t/what-am-i-missing-activerecord-sessions/75721 "2006-03-03T18:03:09Z")

</div>

Can someone please explain why every time that I call an action in my controller, every model that is stored in the session needs to be interpreted by a database query? If I have four models stored in the session, I …

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

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