# Top

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

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

---

## [The dreaded "Before updating scaffolding from new DB schema,](https://www.ruby-forum.com/t/the-dreaded-before-updating-scaffolding-from-new-db-schema/52539)

<div class="topic-metadata">

**Author:** [@dbelsham](https://www.ruby-forum.com/u/dbelsham)\
**Replies:** 3\
**Last updated:** [January 16, 2006, 7:48am UTC](https://www.ruby-forum.com/t/the-dreaded-before-updating-scaffolding-from-new-db-schema/52539 "2006-01-16T07:48:50Z")

</div>

Hi Can any one help me with this? I think that this is soemthing quite simple as there is quite abit traffic about this on the web and everyone sems to figure it out. I have tried most of the solutions that I can fi…

---

## [Empty pages served from Lighttpd + SCGI?](https://www.ruby-forum.com/t/empty-pages-served-from-lighttpd-scgi/50209)

<div class="topic-metadata">

**Author:** [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Replies:** 3\
**Last updated:** [December 18, 2005, 7:36am UTC](https://www.ruby-forum.com/t/empty-pages-served-from-lighttpd-scgi/50209 "2005-12-18T07:36:05Z")

</div>

Hi ! I bought myself a server at RimuHosting. I am now setting things up on it. I have two sites. The first one is working fine - pages get served, Rails is up and running. The second one, though, I can’t run. I …

---

## [Ruby-gnome2: emit key press](https://www.ruby-forum.com/t/ruby-gnome2-emit-key-press/48204)

<div class="topic-metadata">

**Author:** [@ces.fci.junk](https://www.ruby-forum.com/u/ces.fci.junk)\
**Replies:** 3\
**Last updated:** [November 17, 2005, 6:42pm UTC](https://www.ruby-forum.com/t/ruby-gnome2-emit-key-press/48204 "2005-11-17T18:42:41Z")

</div>

I’m trying to have a listbox page up/down based on keys pressed. so I thought this could maybe done by using something similar to this: event = Gdk::EventKey.new( Gdk::Event::KEY\_PRESS ) event.set\_keyval(65366) # pag…

---

## [Japanese input](https://www.ruby-forum.com/t/japanese-input/241571)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [April 18, 2015, 7:28am UTC](https://www.ruby-forum.com/t/japanese-input/241571 "2015-04-18T07:28:48Z")

</div>

i need some help. i tried a lot of time using loops but i cannot figure it out wha i want. is basicaly this: i type a letter and i have the output in hiragana but the program can´t finish untill i press ‘q’ and if ty…

---

## [Form data not uploading to sqlite database](https://www.ruby-forum.com/t/form-data-not-uploading-to-sqlite-database/237792)

<div class="topic-metadata">

**Author:** [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Replies:** 4\
**Last updated:** [November 30, 2013, 12:25pm UTC](https://www.ruby-forum.com/t/form-data-not-uploading-to-sqlite-database/237792 "2013-11-30T12:25:28Z")

</div>

Hi, I created a simple form using form\_for and partials. When I enter a value in text field and click on add button, the data doesn’t get uploaded in database table. view/task.html.erb \<%= render :partial =\> “job\_f…

---

## [Why can't I just subtract in a loop without restating the variable?](https://www.ruby-forum.com/t/why-cant-i-just-subtract-in-a-loop-without-restating-the-variable/235708)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 4\
**Last updated:** [July 10, 2013, 3:22pm UTC](https://www.ruby-forum.com/t/why-cant-i-just-subtract-in-a-loop-without-restating-the-variable/235708 "2013-07-10T15:22:51Z")

</div>

I have some code that uses a counter. In certain circumstances, I have to subtract from the counter variable. I thought I could simple do this: my\_variable -1 and my\_variable would simply get reduced by one (the same …

---

## [How to add current time as default value](https://www.ruby-forum.com/t/how-to-add-current-time-as-default-value/185400)

<div class="topic-metadata">

**Author:** [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Replies:** 4\
**Last updated:** [July 2, 2013, 5:42am UTC](https://www.ruby-forum.com/t/how-to-add-current-time-as-default-value/185400 "2013-07-02T05:42:16Z")

</div>

hi all, by using timestamps we can create created\_at and updated\_on columns to our tables. But i dont wnat the columns in my table and i want to add my own column which datatype is timestamp and that must take curren…

---

## [Is it possible to run Tcl from Ruby?](https://www.ruby-forum.com/t/is-it-possible-to-run-tcl-from-ruby/227339)

<div class="topic-metadata">

**Author:** [@ishaan\_b](https://www.ruby-forum.com/u/ishaan_b)\
**Replies:** 4\
**Last updated:** [March 12, 2013, 10:32am UTC](https://www.ruby-forum.com/t/is-it-possible-to-run-tcl-from-ruby/227339 "2013-03-12T10:32:46Z")

</div>

Is it possible to integrate Ruby with Tcl such that Tcl frontend and Tk backend???

---

## [Use html appearance without any gem](https://www.ruby-forum.com/t/use-html-appearance-without-any-gem/227154)

<div class="topic-metadata">

**Author:** [@ebruakagunduz](https://www.ruby-forum.com/u/ebruakagunduz)\
**Replies:** 4\
**Last updated:** [March 6, 2013, 2:56pm UTC](https://www.ruby-forum.com/t/use-html-appearance-without-any-gem/227154 "2013-03-06T14:56:11Z")

</div>

Hi, i provide html appearance with ruby-gtk-webkit gem. Can i provide without any gem? I tried label.set\_markup but it didn’t recognise html syntax :frowning:

---

## [3 models, joining and nested queries](https://www.ruby-forum.com/t/3-models-joining-and-nested-queries/226941)

<div class="topic-metadata">

**Author:** [@Sajeev\_Zacharias](https://www.ruby-forum.com/u/Sajeev_Zacharias)\
**Replies:** 4\
**Last updated:** [February 28, 2013, 5:41pm UTC](https://www.ruby-forum.com/t/3-models-joining-and-nested-queries/226941 "2013-02-28T17:41:06Z")

</div>

I have 3 models, class Host ref: string address: string, name: string primary\_key='ref' has\_many :rooms, :class\_name=\>"Room", :foreign\_key=\>'host\_ref' Class Room ref :string host\_ref: string capac…

---

## [How to connect ruby on rails to mysql](https://www.ruby-forum.com/t/how-to-connect-ruby-on-rails-to-mysql/229612)

<div class="topic-metadata">

**Author:** [@venkey81185](https://www.ruby-forum.com/u/venkey81185)\
**Replies:** 4\
**Last updated:** [February 7, 2013, 1:47pm UTC](https://www.ruby-forum.com/t/how-to-connect-ruby-on-rails-to-mysql/229612 "2013-02-07T13:47:44Z")

</div>

Hi Friends, i am new to ruby on rails, i want to connect mysql from ruby on rails, how i connect and how to operations like create and update delete . any one have idea please help me out Thanks In Advance V.Venkat…

---

## [Streaming in Rails 3.2](https://www.ruby-forum.com/t/streaming-in-rails-3-2/226486)

<div class="topic-metadata">

**Author:** [@Ravi\_L](https://www.ruby-forum.com/u/Ravi_L)\
**Replies:** 4\
**Last updated:** [December 9, 2012, 6:50pm UTC](https://www.ruby-forum.com/t/streaming-in-rails-3-2/226486 "2012-12-09T18:50:26Z")

</div>

Hello all, I am writing an app to stream log files (or any files) on the browser as they grow. The idea is that the rails app should do a ‘tail -f’ on the file and keep sending the data to the browser. I was thinking …

---

## [Refinement仕様](https://www.ruby-forum.com/t/refinement/224441)

<div class="topic-metadata">

**Author:** [@aris](https://www.ruby-forum.com/u/aris)\
**Replies:** 4\
**Last updated:** [November 12, 2012, 2:36pm UTC](https://www.ruby-forum.com/t/refinement/224441 "2012-11-12T14:36:09Z")

</div>

$B$^$D$b$H(B $B$f$-$R$m$G$9(B $BEZMKF|$N(BRefinement$B2q5D$G=P$?=IBj$K$D$$$F!#(B $B0J2\<$N;EMM8uJd$N$&$A$$$:$l$rA\*$V$+$H$$$&OC$G$7$?!#(B (a) re-open $B0lEY(Busing$B$5$l$?%b%8%e!\<%k(B($B$^$?$O%/%i%9(B)$B$r(Bre-open$B$7…

---

## [Can not fix the 'can not find javascript runtime' issue](https://www.ruby-forum.com/t/can-not-fix-the-can-not-find-javascript-runtime-issue/226351)

<div class="topic-metadata">

**Author:** [@Ekin\_Han](https://www.ruby-forum.com/u/Ekin_Han)\
**Replies:** 4\
**Last updated:** [July 20, 2012, 7:18pm UTC](https://www.ruby-forum.com/t/can-not-fix-the-can-not-find-javascript-runtime-issue/226351 "2012-07-20T19:18:57Z")

</div>

Hi all, I am using unbuntu 11.10 with ruby 1.9.3. I installed ruby 1.9.3 via source code and installed rails 3.2x with the gem command ‘sudo gem install rails’ After new a project and run ‘rails server’, an error occ…

---

## [Help: Ruby Newbie Trying to Install on OSX 10.7.3](https://www.ruby-forum.com/t/help-ruby-newbie-trying-to-install-on-osx-10-7-3/217861)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [March 16, 2012, 1:59am UTC](https://www.ruby-forum.com/t/help-ruby-newbie-trying-to-install-on-osx-10-7-3/217861 "2012-03-16T01:59:19Z")

</div>

I entered in “rails” from the terminal prompt. Here is what I got… any help is appreciated Last login: Sun Mar 11 15:26:54 on console 67-61-37-207:~ clesceri$ rails Rails is not currently installed on this system. T…

---

## [What I'm doing wrong, has\_and\_belong\_to\_many](https://www.ruby-forum.com/t/what-im-doing-wrong-has-and-belong-to-many/216778)

<div class="topic-metadata">

**Author:** [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Replies:** 4\
**Last updated:** [February 14, 2012, 1:16pm UTC](https://www.ruby-forum.com/t/what-im-doing-wrong-has-and-belong-to-many/216778 "2012-02-14T13:16:02Z")

</div>

Hello, I’m trying to insert into my migrate but when I try on rails console this error shows: 1.9.3-p0 :001 \> group = Group.new =\> #\<Group id: nil, name: nil, description: nil, created\_at: nil, updated\_at: nil\> 1.9.…

---

## [CORDIC in USRP TX path](https://www.ruby-forum.com/t/cordic-in-usrp-tx-path/176924)

<div class="topic-metadata">

**Author:** [@Christian\_Meier](https://www.ruby-forum.com/u/Christian_Meier)\
**Replies:** 4\
**Last updated:** [October 8, 2009, 8:41pm UTC](https://www.ruby-forum.com/t/cordic-in-usrp-tx-path/176924 "2009-10-08T20:41:10Z")

</div>

Hi, I noticed that there is a hardcoded “\`define NOCORDIC\_TX” inside tx\_chain.v Does anyone know why this is disabled? Is it a problem of FPGA size or are there any bugs inside tx\_chain with NOCORDIC\_TX not defined? …

---

## [Does Ruby have a 'which' like method](https://www.ruby-forum.com/t/does-ruby-have-a-which-like-method/176853)

<div class="topic-metadata">

**Author:** [@Scott\_G\_Smith](https://www.ruby-forum.com/u/Scott_G_Smith)\
**Replies:** 4\
**Last updated:** [October 7, 2009, 11:02pm UTC](https://www.ruby-forum.com/t/does-ruby-have-a-which-like-method/176853 "2009-10-07T23:02:50Z")

</div>

Most UNIX shells have a which command. It tells me the file which corresponds to a shell command. Demo: which date /bin/date In ruby, Suppose I’m dealing with a String. This String has had some methods mixed-in. F…

---

## [BASIC\_RX complex sampling](https://www.ruby-forum.com/t/basic-rx-complex-sampling/165728)

<div class="topic-metadata">

**Author:** [@Marcus\_DSLeech](https://www.ruby-forum.com/u/Marcus_DSLeech)\
**Replies:** 4\
**Last updated:** [April 16, 2009, 9:36pm UTC](https://www.ruby-forum.com/t/basic-rx-complex-sampling/165728 "2009-04-16T21:36:36Z")

</div>

Does the FPGA code for BASIC\_RX support a Hilbert transform to convert one of the real inputs into a complex stream? – Marcus L. Principal Investigator, Shirleys Bay Radio Astronomy Consortium

---

## [Passare una variabile da js ad un blocco ERB: E' possibile?](https://www.ruby-forum.com/t/passare-una-variabile-da-js-ad-un-blocco-erb-e-possibile/162729)

<div class="topic-metadata">

**Author:** [@carminem](https://www.ruby-forum.com/u/carminem)\
**Replies:** 4\
**Last updated:** [March 13, 2009, 11:57am UTC](https://www.ruby-forum.com/t/passare-una-variabile-da-js-ad-un-blocco-erb-e-possibile/162729 "2009-03-13T11:57:23Z")

</div>

Salve a tutti, In risposta ad una chiamata AJAX ho una view “js.erb” che ha un codice simile: $(’#order\_update\_quantity’).html("\<%= escape\_javascript(render(:partial =\> ‘shared/update\_order\_quantity’, :locals =\> { :o…

---

## [Problem with named\_scope and test-spec?](https://www.ruby-forum.com/t/problem-with-named-scope-and-test-spec/157819)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [January 15, 2009, 7:49pm UTC](https://www.ruby-forum.com/t/problem-with-named-scope-and-test-spec/157819 "2009-01-15T19:49:06Z")

</div>

I may be overlooking something, but it seems to me that it is a problem if with this code… Class Blog \< ActiveRecord::Base named\_scope :unseen, :conditions =\> “displayed IS NULL” end this test fails… it “should giv…

---

## [How complex a query can ActiveRecord handle before it's better using Raw SQL or a View?](https://www.ruby-forum.com/t/how-complex-a-query-can-activerecord-handle-before-its-better-using-raw-sql-or-a-view/155992)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 4\
**Last updated:** [December 19, 2008, 3:14am UTC](https://www.ruby-forum.com/t/how-complex-a-query-can-activerecord-handle-before-its-better-using-raw-sql-or-a-view/155992 "2008-12-19T03:14:11Z")

</div>

Hi, How complex a query can ActiveRecord handle before it’s better using Raw SQL or a View??? I need to calculate for example taxable income via a query going across 5 tables. Some like this: Find all transaction …

---

## [Could not find RubyGem - because it's not a gem](https://www.ruby-forum.com/t/could-not-find-rubygem-because-its-not-a-gem/151018)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 4\
**Last updated:** [October 29, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/could-not-find-rubygem-because-its-not-a-gem/151018 "2008-10-29T23:23:50Z")

</div>

Hi all, Sorry, a bit of a cross-post here, because I’m not sure if this is a Rails issue or a gems issue. The problem is that I’ve got sys-admin installed, just not as a gem, and that’s causing a problem. First, some…

---

## [Meilleurs plugins pour authentification et g estion de rÃ´le?](https://www.ruby-forum.com/t/meilleurs-plugins-pour-authentification-et-g-estion-de-ra-le/133042)

<div class="topic-metadata">

**Author:** [@tranquiliste](https://www.ruby-forum.com/u/tranquiliste)\
**Replies:** 4\
**Last updated:** [April 16, 2008, 4:53pm UTC](https://www.ruby-forum.com/t/meilleurs-plugins-pour-authentification-et-g-estion-de-ra-le/133042 "2008-04-16T16:53:16Z")

</div>

Bonjour, Je veux mettre en place un gestion de l’authentification et des rôles dans une de mes application. Pour l’instant j’utilisais auth\_generator, mais j’y vois plusieurs inconvénients comme le fait d’avoir déjà …

---

## [Updating only one column in a table](https://www.ruby-forum.com/t/updating-only-one-column-in-a-table/134149)

<div class="topic-metadata">

**Author:** [@karthikragu](https://www.ruby-forum.com/u/karthikragu)\
**Replies:** 4\
**Last updated:** [April 9, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/updating-only-one-column-in-a-table/134149 "2008-04-09T16:44:36Z")

</div>

hi all, im having a table called employees in db.the table hava five columns as 1.username 2.password 3.firstname 4.lastname 5.mailid. in this i want to update only password column.how to do it.peop…

---

## [Alternate Colors for row blocks](https://www.ruby-forum.com/t/alternate-colors-for-row-blocks/131585)

<div class="topic-metadata">

**Author:** [@newrubygirl](https://www.ruby-forum.com/u/newrubygirl)\
**Replies:** 4\
**Last updated:** [March 11, 2008, 7:44pm UTC](https://www.ruby-forum.com/t/alternate-colors-for-row-blocks/131585 "2008-03-11T19:44:41Z")

</div>

Hello. I need to do a twist on the alternate row colors. I looked at cycle(), but that appears to be table row specific. I have a table header. Then I have up to 3 table rows that are grouped together in a loop. I…

---

## [Measure BER](https://www.ruby-forum.com/t/measure-ber/126489)

<div class="topic-metadata">

**Author:** [@irene159](https://www.ruby-forum.com/u/irene159)\
**Replies:** 4\
**Last updated:** [January 21, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/measure-ber/126489 "2008-01-21T16:17:10Z")

</div>

Hi all, I’m currently working on a GSMK modem, and I would like to calculate the BER of the link. I send data using gr.vector\_source\_b( ) connected to a GMSK modulator/demodulator and receive the signal in gr.vector\_…

---

## [Integrar belongs\_to\_auto\_completer con fields\_for](https://www.ruby-forum.com/t/integrar-belongs-to-auto-completer-con-fields-for/117298)

<div class="topic-metadata">

**Author:** [@moctan](https://www.ruby-forum.com/u/moctan)\
**Replies:** 4\
**Last updated:** [October 16, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/integrar-belongs-to-auto-completer-con-fields-for/117298 "2007-10-16T16:34:40Z")

</div>

Hola, En cuanto al funcionamiento de este plugin, ok, no hay problema. Bien, tengo la necesidad de enlazar el control generado por belongs\_to\_auto\_completer con el atributo producto\_id, pero en el contexto de fields\_…

---

## [\[Rails\] Problema check\_box undefined method](https://www.ruby-forum.com/t/rails-problema-check-box-undefined-method/113077)

<div class="topic-metadata">

**Author:** [@dewg](https://www.ruby-forum.com/u/dewg)\
**Replies:** 4\
**Last updated:** [August 27, 2007, 11:18am UTC](https://www.ruby-forum.com/t/rails-problema-check-box-undefined-method/113077 "2007-08-27T11:18:31Z")

</div>

Ciao, ho un piccolo problema con i check\_box in rails, ho un metodo che prende tot elementi e li metto in un array (questi elementi, sono oggetti Item che contengono solo un attributo stringa (name)), e nel codice rh…

---

## [Webgen 0.4.5](https://www.ruby-forum.com/t/webgen-0-4-5/108138)

<div class="topic-metadata">

**Author:** [@tlockney](https://www.ruby-forum.com/u/tlockney)\
**Replies:** 4\
**Last updated:** [June 30, 2007, 9:33am UTC](https://www.ruby-forum.com/t/webgen-0-4-5/108138 "2007-06-30T09:33:04Z")

</div>

Hey everybody! I just release a new webgen version which fixes some bugs and brings one new feature: customizable links to any file handled by webgen. Have a look at http://webgen.rubyforge.org/news.html to see a com…

---

## [Way to mark record as main?](https://www.ruby-forum.com/t/way-to-mark-record-as-main/104248)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 4\
**Last updated:** [May 15, 2007, 11:42pm UTC](https://www.ruby-forum.com/t/way-to-mark-record-as-main/104248 "2007-05-15T23:42:56Z")

</div>

I was curious if there was a built in feature in ActiveRecord or a plugin, but I basically have a database for phone numbers. I want a user to be able to make a phone number as main. There can only be one phone number…

---

## [Comments on Comments (was Re: Getting to 100 (#119))](https://www.ruby-forum.com/t/comments-on-comments-was-re-getting-to-100-119/91494)

<div class="topic-metadata">

**Author:** [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Replies:** 4\
**Last updated:** [April 10, 2007, 6:44am UTC](https://www.ruby-forum.com/t/comments-on-comments-was-re-getting-to-100-119/91494 "2007-04-10T06:44:31Z")

</div>

On 4/9/07, Phillip G. removed\_email\_address@domain.invalid wrote: Marcel W. wrote: f = File.open(“foo”) | Isn’t superfluous, and aids debugging if the thing doesn’t do what it should. And you know that it doesn’t…

---

## [Eager load for 1:N across natural key join](https://www.ruby-forum.com/t/eager-load-for-1-n-across-natural-key-join/90146)

<div class="topic-metadata">

**Author:** [@matthew](https://www.ruby-forum.com/u/matthew)\
**Replies:** 4\
**Last updated:** [March 30, 2007, 6:05am UTC](https://www.ruby-forum.com/t/eager-load-for-1-n-across-natural-key-join/90146 "2007-03-30T06:05:48Z")

</div>

Hi List I have a natural key association between Release and Track (so no id foreign key relationship). I figured out how to get ActiveRecord to correctly populate the nested collections by declaring a :finder\_sql on…

---

## [\[ANN\] ActiveRecord::Extensions 0.5.0 Released!](https://www.ruby-forum.com/t/ann-activerecord-extensions-0-5-0-released/88757)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 4\
**Last updated:** [March 15, 2007, 2:23am UTC](https://www.ruby-forum.com/t/ann-activerecord-extensions-0-5-0-released/88757 "2007-03-15T02:23:48Z")

</div>

ActiveRecord::Extensions 0.5.0 is released! It includes better finder support for Time objects when operating against DATE or DATETIME columns. http://www.continuousthinking.com/2007/3/14/activerecord-extensions-0-5-0…

---

## [Gem install mysql failure](https://www.ruby-forum.com/t/gem-install-mysql-failure/87786)

<div class="topic-metadata">

**Author:** [@phudson1442](https://www.ruby-forum.com/u/phudson1442)\
**Replies:** 4\
**Last updated:** [March 6, 2007, 11:06pm UTC](https://www.ruby-forum.com/t/gem-install-mysql-failure/87786 "2007-03-06T23:06:43Z")

</div>

I’ve been using Ruby with Watir for a few months now to scrape data off of internal web pages where I work. I’m fairly happy with the results, although I want to improve these processes. I want to put this data int…

---

## [Error in if statement](https://www.ruby-forum.com/t/error-in-if-statement/87269)

<div class="topic-metadata">

**Author:** [@rubysharma](https://www.ruby-forum.com/u/rubysharma)\
**Replies:** 4\
**Last updated:** [March 1, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/error-in-if-statement/87269 "2007-03-01T12:29:14Z")

</div>

Hi, The below code is my global layout…code I would like to include a if statement in it. Languages: \<%= controller.action\_name %\> \<%= stylesheet\_link\_tag 'scaffold' %\> \<% if flash\[:notice\].empty? then pu…

---

## [Link\_to\_remote, doesn't receives params?](https://www.ruby-forum.com/t/link-to-remote-doesnt-receives-params/75381)

<div class="topic-metadata">

**Author:** [@sayoyo](https://www.ruby-forum.com/u/sayoyo)\
**Replies:** 4\
**Last updated:** [January 17, 2007, 7:54pm UTC](https://www.ruby-forum.com/t/link-to-remote-doesnt-receives-params/75381 "2007-01-17T19:54:58Z")

</div>

Hi, I’m using link\_to\_remote to trigger an ajax zone, but depends on a varaible, the new zone has different features. before I has a button inside a form. so when I click on the button, I get the value of the variabl…

---

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

<div class="topic-metadata">

**Author:** [@Gianluca](https://www.ruby-forum.com/u/Gianluca)\
**Replies:** 4\
**Last updated:** [January 14, 2007, 4:24pm UTC](https://www.ruby-forum.com/t/help-api/81575 "2007-01-14T16:24:11Z")

</div>

Ciao ragazzi non ho ben capito qual’e la documentazione corretta delle api da consultare la core o la standard e inoltre qualcuno usa radrails? su radrail non dovrebbe uscire con ri la documentazione delle api? Con ri…

---

## [Ruby arithmetic operations =S](https://www.ruby-forum.com/t/ruby-arithmetic-operations-s/76253)

<div class="topic-metadata">

**Author:** [@flaab](https://www.ruby-forum.com/u/flaab)\
**Replies:** 4\
**Last updated:** [November 17, 2006, 10:15pm UTC](https://www.ruby-forum.com/t/ruby-arithmetic-operations-s/76253 "2006-11-17T22:15:30Z")

</div>

Hi there I have to do a program for the first time that needs some math…and which is my surprise that num mod num to get the modulus of a division does not work! neither num div num to the the integer result of it. A…

---

## [Script de migration](https://www.ruby-forum.com/t/script-de-migration/98708)

<div class="topic-metadata">

**Author:** [@FrSSSSdSSSSric\_Logi](https://www.ruby-forum.com/u/FrSSSSdSSSSric_Logi)\
**Replies:** 4\
**Last updated:** [July 18, 2006, 9:43am UTC](https://www.ruby-forum.com/t/script-de-migration/98708 "2006-07-18T09:43:05Z")

</div>

Bonjour, je vois que le generate model me crÃ©Ã© un script 002\_create\_matable.rb. Par contre la mÃ©thode create\_table :matable ne contient pas le schema de ma table mysql. Il n’est pas censÃ© gÃ©nÃ©rer le schÃ©ma co…

---

## [How to make views changable](https://www.ruby-forum.com/t/how-to-make-views-changable/58932)

<div class="topic-metadata">

**Author:** [@Kostya](https://www.ruby-forum.com/u/Kostya)\
**Replies:** 4\
**Last updated:** [April 27, 2006, 10:46am UTC](https://www.ruby-forum.com/t/how-to-make-views-changable/58932 "2006-04-27T10:46:56Z")

</div>

Hello I need to make site views changeable I found how to change layouts but it is not enough, becouse templates can use different ways to display and organize content. I found one way to do this, but i need to make …

---

## [Multiple sites sharing a single application](https://www.ruby-forum.com/t/multiple-sites-sharing-a-single-application/58529)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 4\
**Last updated:** [April 23, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/multiple-sites-sharing-a-single-application/58529 "2006-04-23T21:08:45Z")

</div>

Quick question: Say i have a few shopping sites that i want to run on the same application code but have seperate databases and layout/design, what would be the neatest ‘Rails’ way of doing this? Cheers, Steve

---

## [Elemental race conditions question](https://www.ruby-forum.com/t/elemental-race-conditions-question/83890)

<div class="topic-metadata">

**Author:** [@fxn](https://www.ruby-forum.com/u/fxn)\
**Replies:** 4\
**Last updated:** [March 19, 2006, 9:17pm UTC](https://www.ruby-forum.com/t/elemental-race-conditions-question/83890 "2006-03-19T21:17:26Z")

</div>

What’s the standard way to prevent race conditions in controllers? Say user has many posts. Post controller has action add\_post that receives user id, post controller find()s the user and while he is creating the post…

---

## [Code conversion tool](https://www.ruby-forum.com/t/code-conversion-tool/76198)

<div class="topic-metadata">

**Author:** [@ror-user](https://www.ruby-forum.com/u/ror-user)\
**Replies:** 4\
**Last updated:** [March 13, 2006, 11:15am UTC](https://www.ruby-forum.com/t/code-conversion-tool/76198 "2006-03-13T11:15:20Z")

</div>

Hi is there any tool / utility which can convert code from php to ruby ? thanks

---

## [How to redirect\_to the same page after comment posting?](https://www.ruby-forum.com/t/how-to-redirect-to-the-same-page-after-comment-posting/76529)

<div class="topic-metadata">

**Author:** [@hreyaatnh](https://www.ruby-forum.com/u/hreyaatnh)\
**Replies:** 4\
**Last updated:** [March 4, 2006, 8:07am UTC](https://www.ruby-forum.com/t/how-to-redirect-to-the-same-page-after-comment-posting/76529 "2006-03-04T08:07:42Z")

</div>

How can I have the page redirect\_to the same page after someone posts a comment? I know that you can do “redirect\_to :action =\> ‘index’”, but the page is located at this URL: /posts/2006/02/01/individual\_post/ So, t…

---

## [Are migrations executed within a transaction?](https://www.ruby-forum.com/t/are-migrations-executed-within-a-transaction/59890)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [January 11, 2006, 5:41pm UTC](https://www.ruby-forum.com/t/are-migrations-executed-within-a-transaction/59890 "2006-01-11T17:41:09Z")

</div>

Hi all, Can I safely assume that each migration is excuted within a transaction, so that’s it’s safe to have migrations executing failing statements? Thanks, Rowan

---

## [How do I use the variable on my show page?](https://www.ruby-forum.com/t/how-do-i-use-the-variable-on-my-show-page/261266)

<div class="topic-metadata">

**Author:** [@merlin2049er](https://www.ruby-forum.com/u/merlin2049er)\
**Replies:** 1\
**Last updated:** [April 29, 2021, 10:15am UTC](https://www.ruby-forum.com/t/how-do-i-use-the-variable-on-my-show-page/261266 "2021-04-29T10:15:50Z")

</div>

Hi… @polloption\_sum = Voted.where(polloption\_id: 42).count I need to fix this, i temporarily added a dummy variable ‘42’ to count my records, but I want to get this from the show page where I loop thru each poll\_option…

---

## [Dynamically create a function named from the contents of a variable](https://www.ruby-forum.com/t/dynamically-create-a-function-named-from-the-contents-of-a-variable/258738)

<div class="topic-metadata">

**Author:** [@Myersj281](https://www.ruby-forum.com/u/Myersj281)\
**Replies:** 1\
**Last updated:** [March 20, 2020, 8:41am UTC](https://www.ruby-forum.com/t/dynamically-create-a-function-named-from-the-contents-of-a-variable/258738 "2020-03-20T08:41:48Z")

</div>

I want to use IRB as a shell for my GNU/Linux system (portablility is desired but not a requirement at this point). How I hope to acheive this is to loop through each directory in the $PATH variable, then through each fi…

---

## [Regarding File Open](https://www.ruby-forum.com/t/regarding-file-open/245056)

<div class="topic-metadata">

**Author:** [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Replies:** 1\
**Last updated:** [September 6, 2016, 12:44pm UTC](https://www.ruby-forum.com/t/regarding-file-open/245056 "2016-09-06T12:44:28Z")

</div>

For e.g you go the text file called text.txt with the following details Hello world I’m am a nice guys Hello world I’m am a bad guys line\_count = 0 text = ’ ’ File.open(“text.txt”).each do | line | line\_count = 0 …

---

## [Make Error for OOT Module](https://www.ruby-forum.com/t/make-error-for-oot-module/231509)

<div class="topic-metadata">

**Author:** [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Replies:** 1\
**Last updated:** [August 13, 2014, 3:55am UTC](https://www.ruby-forum.com/t/make-error-for-oot-module/231509 "2014-08-13T03:55:22Z")

</div>

I’m taking my old spectrum sensing module and moving it over to 3.7.4. My strategy is to create a new block and copy and relevant code over while making sure nothing old that doesn’t conform to 3.7.4 is left out. This …

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

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