# Rails

**URL:** https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1920

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

---

## [How to use a form.check\_box?](https://www.ruby-forum.com/t/how-to-use-a-form-check-box/92160)

<div class="topic-metadata">

**Author:** [@dasch](https://www.ruby-forum.com/u/dasch)\
**Replies:** 6\
**Last updated:** [April 16, 2007, 11:14pm UTC](https://www.ruby-forum.com/t/how-to-use-a-form-check-box/92160 "2007-04-16T23:14:45Z")

</div>

Hey guys, I’m trying to have a simple webform in my administration section to add a user. I have the text\_fields for adding the user’s name, password, and password confirmation, but cannot seem to figure out the chec…

---

## [Anyone worked with Sitealizer? Having a problem with it](https://www.ruby-forum.com/t/anyone-worked-with-sitealizer-having-a-problem-with-it/92188)

<div class="topic-metadata">

**Author:** [@wheresdave](https://www.ruby-forum.com/u/wheresdave)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/anyone-worked-with-sitealizer-having-a-problem-with-it/92188 "2007-04-16T23:11:45Z")

</div>

here is the error message. NoMethodError in Sitealizer#menu Showing vendor/plugins/sitealizer/lib/app/views/sitealizer/menu.rhtml where line #7 raised: undefined method \`name’ for “04\</ option\>”:String Extracted so…

---

## [Web Flow and the session method in ActionController](https://www.ruby-forum.com/t/web-flow-and-the-session-method-in-actioncontroller/92176)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 16, 2007, 11:04pm UTC](https://www.ruby-forum.com/t/web-flow-and-the-session-method-in-actioncontroller/92176 "2007-04-16T23:04:42Z")

</div>

Hi there, I’m writing a port of Spring Webflow to Ruby on rails and I’ve encountered quite a lot of difficulty finding how to override the session\[\] method which is accessed via any ActionController. I have my pseudo…

---

## [How to change the text in a text\_field\_tag](https://www.ruby-forum.com/t/how-to-change-the-text-in-a-text-field-tag/92146)

<div class="topic-metadata">

**Author:** [@jay](https://www.ruby-forum.com/u/jay)\
**Replies:** 7\
**Last updated:** [April 16, 2007, 10:46pm UTC](https://www.ruby-forum.com/t/how-to-change-the-text-in-a-text-field-tag/92146 "2007-04-16T22:46:38Z")

</div>

This is my first post here. Hope someone can help. I have what I think is a simple problem but I can’t find a solution. I have these two forms: \<% @general\_canned\_text.each do | bit\_of\_text | %\> \<% form\_remote\_tag…

---

## [Running multiple apps](https://www.ruby-forum.com/t/running-multiple-apps/92181)

<div class="topic-metadata">

**Author:** [@kushiel](https://www.ruby-forum.com/u/kushiel)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/running-multiple-apps/92181 "2007-04-16T22:44:30Z")

</div>

Sorry for the newbie question. Anyway, so I set up Rails on a subdomain. I generated a new app in there, and everything works fine. However, I went to another tutorial, and the tutorial said to create a new app. I …

---

## [Some observations](https://www.ruby-forum.com/t/some-observations/92177)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/some-observations/92177 "2007-04-16T22:20:52Z")

</div>

Well…after some (unexpected) pain in getting migrations to work with sqlite3 and windows, here’s how (http://betterlogic.com/roger/?p=4#comment-4)… The errors I noticed were: if you do rake migrate and it is not prev…

---

## [Partials, subfolders, and ActionMailer](https://www.ruby-forum.com/t/partials-subfolders-and-actionmailer/92174)

<div class="topic-metadata">

**Author:** [@Fredrik](https://www.ruby-forum.com/u/Fredrik)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/partials-subfolders-and-actionmailer/92174 "2007-04-16T21:39:32Z")

</div>

I get ActionMailer::TemplateError (controller\_path) from using render :partial =\> ‘item\_list’ I’ve also tried manipulating the @template and the template\_root variable in ActionMailer for placing templates in a sub fo…

---

## [Click twice to load?](https://www.ruby-forum.com/t/click-twice-to-load/92173)

<div class="topic-metadata">

**Author:** [@jacib](https://www.ruby-forum.com/u/jacib)\
**Replies:** 2\
**Last updated:** [April 16, 2007, 9:28pm UTC](https://www.ruby-forum.com/t/click-twice-to-load/92173 "2007-04-16T21:28:32Z")

</div>

I’ve just launched a site\[1\] for the Web 2.0 Expo conference, and I’m encountering the strangest problem: Oftentimes a page won’t load on the first click, but if I stop the request and re-click the link, the page load…

---

## [Allow\_concurrency with oracle](https://www.ruby-forum.com/t/allow-concurrency-with-oracle/92171)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/allow-concurrency-with-oracle/92171 "2007-04-16T21:03:29Z")

</div>

I have a script that does a batch update via parsing rss feeds every hour. Originally I was using ActiveRecord with MySQL, however, upon switchign to oracle 10 with the OCI8 driver and oracle\_adapter.rb things don’t …

---

## [Can't replace/remove a has\_one related object](https://www.ruby-forum.com/t/cant-replace-remove-a-has-one-related-object/92169)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 9:02pm UTC](https://www.ruby-forum.com/t/cant-replace-remove-a-has-one-related-object/92169 "2007-04-16T21:02:51Z")

</div>

All, I have two models, Job and Document. Job has\_one :document I perform this: @current\_job.document.destroy which successfully removes all the appopriate DB records. However, if I attempt to do: @current\_job.doc…

---

## [Rails in iceland](https://www.ruby-forum.com/t/rails-in-iceland/92168)

<div class="topic-metadata">

**Author:** [@albert](https://www.ruby-forum.com/u/albert)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 8:53pm UTC](https://www.ruby-forum.com/t/rails-in-iceland/92168 "2007-04-16T20:53:26Z")

</div>

Is there anyone on this list located in Iceland? I’m looking for some other local developers to brainstorm and potentially collaborate on a project. Please contact me directly, if interested. To the other 99.9% of p…

---

## [Feedback on NGINX + Mongrel setup for multiple rails applica](https://www.ruby-forum.com/t/feedback-on-nginx-mongrel-setup-for-multiple-rails-applica/92167)

<div class="topic-metadata">

**Author:** [@goodieboy](https://www.ruby-forum.com/u/goodieboy)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/feedback-on-nginx-mongrel-setup-for-multiple-rails-applica/92167 "2007-04-16T20:13:20Z")

</div>

What I have setup now is working well. I’m hoping to get some feedback on this. Any potential problems with this setup? I have a firewall setup to allow only local access to the needed ports, except 80 In Apache 2.0 …

---

## [Request.raw\_post](https://www.ruby-forum.com/t/request-raw-post/92158)

<div class="topic-metadata">

**Author:** [@mick](https://www.ruby-forum.com/u/mick)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/request-raw-post/92158 "2007-04-16T19:03:12Z")

</div>

Hi, how can I un-encode the contents of request.raw\_post back into a normal string of text, without all the %20’s and such? Cheers, Mick

---

## [How do you test your REST API with XML?](https://www.ruby-forum.com/t/how-do-you-test-your-rest-api-with-xml/92156)

<div class="topic-metadata">

**Author:** [@jeff](https://www.ruby-forum.com/u/jeff)\
**Replies:** 3\
**Last updated:** [April 16, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/how-do-you-test-your-rest-api-with-xml/92156 "2007-04-16T18:46:13Z")

</div>

So far I’ve been manually using curl to make get and post requests against my Rails app to see if I’m responding to XML clients correctly. But this is silly, I need to write unit tests. I don’t see an obvious way to…

---

## [How have you implemented the Presenter pattern?](https://www.ruby-forum.com/t/how-have-you-implemented-the-presenter-pattern/92155)

<div class="topic-metadata">

**Author:** [@dwfrank](https://www.ruby-forum.com/u/dwfrank)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/how-have-you-implemented-the-presenter-pattern/92155 "2007-04-16T18:26:09Z")

</div>

Quick ping to see who’s using the Presenter pattern (as described wonderfully here: Jay Fields' Thoughts: Rails: Presenter Pattern) and how you’ve implemented it. We’re looking for a good best practice(s). Here’s w…

---

## [Find controller in Request](https://www.ruby-forum.com/t/find-controller-in-request/92138)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/find-controller-in-request/92138 "2007-04-16T17:58:06Z")

</div>

Hello all, I have a get request, say SuperDuper.com, which lists all footballs belonging to the company superduper. However, in the application controller, I want to create a filter which checks to see if there are…

---

## [:delete =\> Button, link and javascript...how can i do this?](https://www.ruby-forum.com/t/delete-button-link-and-javascript-how-can-i-do-this/92009)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 3\
**Last updated:** [April 16, 2007, 5:40pm UTC](https://www.ruby-forum.com/t/delete-button-link-and-javascript-how-can-i-do-this/92009 "2007-04-16T17:40:17Z")

</div>

hi, i’m in a restful mode and i’ve a delete link. In this case i want to use a link, because i like it more than a button, but to do a delete method the user should have javascript actived…otherwise it won’t work… so,…

---

## [Sort by size of column](https://www.ruby-forum.com/t/sort-by-size-of-column/92142)

<div class="topic-metadata">

**Author:** [@plewizard](https://www.ruby-forum.com/u/plewizard)\
**Replies:** 2\
**Last updated:** [April 16, 2007, 5:38pm UTC](https://www.ruby-forum.com/t/sort-by-size-of-column/92142 "2007-04-16T17:38:04Z")

</div>

this is a SQL question that has always stumped me. how to order by the size of a column. for instance suppose many Presidents have many Votes and you want to list them in a ranking table. Bob 345 Votes Jim 215 Vote…

---

## [Polite plugin migrations](https://www.ruby-forum.com/t/polite-plugin-migrations/90792)

<div class="topic-metadata">

**Author:** [@S\_ugly](https://www.ruby-forum.com/u/S_ugly)\
**Replies:** 2\
**Last updated:** [April 16, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/polite-plugin-migrations/90792 "2007-04-16T17:25:02Z")

</div>

i just recently released a rails plugin. the old pre-agile-fan me would have not done that because it would have seemed too early and then everyone might not think i was a brilliant programmer when they saw how simpl…

---

## [Using OpenID as Single-Sign-On option for rails apps?](https://www.ruby-forum.com/t/using-openid-as-single-sign-on-option-for-rails-apps/92085)

<div class="topic-metadata">

**Author:** [@Tino\_B](https://www.ruby-forum.com/u/Tino_B)\
**Replies:** 3\
**Last updated:** [April 16, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/using-openid-as-single-sign-on-option-for-rails-apps/92085 "2007-04-16T17:07:59Z")

</div>

Hi, I investigated the possibilities for creating a single-sign-on service for two custom rails applications and a beast forum. The two apps use the restful\_authentication plugin, slightly modified. I read about diff…

---

## [How get size of a column](https://www.ruby-forum.com/t/how-get-size-of-a-column/92141)

<div class="topic-metadata">

**Author:** [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 5:01pm UTC](https://www.ruby-forum.com/t/how-get-size-of-a-column/92141 "2007-04-16T17:01:58Z")

</div>

How make for get size of a column of the model? Example: size = Client.name.size =\> size = 30

---

## [Get the value of a field pointed by a foreign key](https://www.ruby-forum.com/t/get-the-value-of-a-field-pointed-by-a-foreign-key/92147)

<div class="topic-metadata">

**Author:** [@pingala](https://www.ruby-forum.com/u/pingala)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 4:50pm UTC](https://www.ruby-forum.com/t/get-the-value-of-a-field-pointed-by-a-foreign-key/92147 "2007-04-16T16:50:57Z")

</div>

Hello everybody, new to Ruby on Rails… i’m following the tutorial at but i’m having some issues… now what i want to know is how-to display in a list, the value of a field that is pointed by the fk… example: table…

---

## [Backgroundrb and rails environment in running tests](https://www.ruby-forum.com/t/backgroundrb-and-rails-environment-in-running-tests/92144)

<div class="topic-metadata">

**Author:** [@joergd](https://www.ruby-forum.com/u/joergd)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 4:43pm UTC](https://www.ruby-forum.com/t/backgroundrb-and-rails-environment-in-running-tests/92144 "2007-04-16T16:43:41Z")

</div>

Hi, If I start backgroundrb with rails\_env = production, and then run my test suite, is it true that my background tasks will run against the production database? Can I prevent this from happening when I mistakenly e…

---

## [Woooooooooooooooooow The Best Music Search Engine](https://www.ruby-forum.com/t/woooooooooooooooooow-the-best-music-search-engine/92140)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 4:26pm UTC](https://www.ruby-forum.com/t/woooooooooooooooooow-the-best-music-search-engine/92140 "2007-04-16T16:26:54Z")

</div>

http://www.freemp3sky.com

---

## [Newbie :: Running script at client side](https://www.ruby-forum.com/t/newbie-running-script-at-client-side/92119)

<div class="topic-metadata">

**Author:** [@aveo](https://www.ruby-forum.com/u/aveo)\
**Replies:** 4\
**Last updated:** [April 16, 2007, 4:22pm UTC](https://www.ruby-forum.com/t/newbie-running-script-at-client-side/92119 "2007-04-16T16:22:53Z")

</div>

Hi all, I am newbie to Ruby and web programming as well. My show.rhtml is like, . … … \<% require ‘win32ole’ %\> \<% ie = WIN32OLE.new(‘InternetExplorer.Application’) %\> \<% ie.visible = true %\> \<% ie.gohome %\> … …

---

## [Url\_for in a ActionMailer::Base decendent](https://www.ruby-forum.com/t/url-for-in-a-actionmailer-base-decendent/92064)

<div class="topic-metadata">

**Author:** [@acras](https://www.ruby-forum.com/u/acras)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 4:07pm UTC](https://www.ruby-forum.com/t/url-for-in-a-actionmailer-base-decendent/92064 "2007-04-16T16:07:52Z")

</div>

Hi, I am not getting to use url helpers in a ActionMailer::Base decendent class. I have this: class Notifier \< ActionMailer::Base require ‘action\_view/helpers/url\_helper.rb’ When I try to call url\_for or link\_to I …

---

## [How to add class to date\_select helper](https://www.ruby-forum.com/t/how-to-add-class-to-date-select-helper/92027)

<div class="topic-metadata">

**Author:** [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 4:00pm UTC](https://www.ruby-forum.com/t/how-to-add-class-to-date-select-helper/92027 "2007-04-16T16:00:51Z")

</div>

Hi, I have this helper and would like to add a html class to each of the select box’s it generates, however I have been unable to find a way? \<%= f.date\_select ‘date\_of\_birth’, :order =\> \[:day,:month,:year\], :start\_y…

---

## [Exec windows command / grab output](https://www.ruby-forum.com/t/exec-windows-command-grab-output/92136)

<div class="topic-metadata">

**Author:** [@drenovac](https://www.ruby-forum.com/u/drenovac)\
**Replies:** 0\
**Last updated:** [April 16, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/exec-windows-command-grab-output/92136 "2007-04-16T15:52:49Z")

</div>

I run an DB environment called OpenInsight, which is a 4GL language / DB. The environment is closed, other than we can now access the database via the web using CGI. This is the command which is executed from a brows…

---

## [Script/generate problem](https://www.ruby-forum.com/t/script-generate-problem/92110)

<div class="topic-metadata">

**Author:** [@nitr0z](https://www.ruby-forum.com/u/nitr0z)\
**Replies:** 2\
**Last updated:** [April 16, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/script-generate-problem/92110 "2007-04-16T15:14:41Z")

</div>

Hello group, I’m just trying to learn RubyOnRails and I bought a book that uses a bookstore as an example. I downloaded and installed InstantRails for my XP machine and I think all went well, I just ran the ran the r…

---

## [From development DB to test DB during tests](https://www.ruby-forum.com/t/from-development-db-to-test-db-during-tests/92129)

<div class="topic-metadata">

**Author:** [@nuno](https://www.ruby-forum.com/u/nuno)\
**Replies:** 1\
**Last updated:** [April 16, 2007, 2:49pm UTC](https://www.ruby-forum.com/t/from-development-db-to-test-db-during-tests/92129 "2007-04-16T14:49:38Z")

</div>

Hello, even after several months of Rails development I’m still facing few problems with unit testing. Inserting records during migration My migration.rb is def self.up create\_table :rubriques do |t| t.column “lib…

[Previous page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1919)

[Next page](https://www.ruby-forum.com/c/ruby-on-rails/6.md?page=1921)
