# Rails

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

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

---

## [Observe\_field](https://www.ruby-forum.com/t/observe-field/126675)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 4\
**Last updated:** [January 21, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/observe-field/126675 "2008-01-21T15:26:22Z")

</div>

Hi… I’m trying to update the content in a div while the value of a hidden field is changed. \<%= hidden\_field “location”, “id”, “value” =\> 0 %\> \<%= observe\_field(“location\_id”, :update =\> “ci\_location\_container”, :u…

---

## [Checkboxes across multiple objects](https://www.ruby-forum.com/t/checkboxes-across-multiple-objects/126514)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 4\
**Last updated:** [January 21, 2008, 2:40pm UTC](https://www.ruby-forum.com/t/checkboxes-across-multiple-objects/126514 "2008-01-21T14:40:57Z")

</div>

So I have a list of jobs which I show like this. (cleaned up…) \_list.rhtml \<% for job in @jobs %\> \<%= job.name %\> \<% end %\> I want checkboxes next to each and every job name and a button or link somewhere else on th…

---

## [ATTN: Beginner/Intermediate Rails Developers](https://www.ruby-forum.com/t/attn-beginner-intermediate-rails-developers/126699)

<div class="topic-metadata">

**Author:** [@keynan](https://www.ruby-forum.com/u/keynan)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 2:14pm UTC](https://www.ruby-forum.com/t/attn-beginner-intermediate-rails-developers/126699 "2008-01-21T14:14:56Z")

</div>

I think I speak for all of us helpful people when I say “Help us help you”. If you actually want to be good at this rather than beg for help please, please, please read at least one comprehensive tutorial on Ruby and …

---

## [From atoms to living organisms](https://www.ruby-forum.com/t/from-atoms-to-living-organisms/126697)

<div class="topic-metadata">

**Author:** [@METIN\_GUNGORMUS](https://www.ruby-forum.com/u/METIN_GUNGORMUS)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/from-atoms-to-living-organisms/126697 "2008-01-21T14:03:28Z")

</div>

From atoms to living organisms http://themoonlight.blogcu.com/5929421/ http://themoonlight.blogcu.com/5929421/#\*\* \*All living organisms, from microbes to mammals, are composed of chemical substances from bot…

---

## [Handling 404 with mongrel + proxy](https://www.ruby-forum.com/t/handling-404-with-mongrel-proxy/126678)

<div class="topic-metadata">

**Author:** [@rubenfonseca](https://www.ruby-forum.com/u/rubenfonseca)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 1:08pm UTC](https://www.ruby-forum.com/t/handling-404-with-mongrel-proxy/126678 "2008-01-21T13:08:54Z")

</div>

Hi! I have a site built on rails 2 and I want to put into production with Apache 2 + mod\_proxy + mongrel instances. The problem is that, when I hit a non existing page, I expected mongrel to render the /404.html file…

---

## [A method accessible from all controllers and views ? How?](https://www.ruby-forum.com/t/a-method-accessible-from-all-controllers-and-views-how/126691)

<div class="topic-metadata">

**Author:** [@budu](https://www.ruby-forum.com/u/budu)\
**Replies:** 3\
**Last updated:** [January 21, 2008, 12:52pm UTC](https://www.ruby-forum.com/t/a-method-accessible-from-all-controllers-and-views-how/126691 "2008-01-21T12:52:40Z")

</div>

Hi, I’ve got this method : def is\_admin? @current\_user && @current\_user.admin == 1 end I want to be able to call this method from all my controllers and all my views. If I put this method in application\_controller…

---

## [ActionController::InvalidAuthenticityToken in LoginController](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken-in-logincontroller/126182)

<div class="topic-metadata">

**Author:** [@Double](https://www.ruby-forum.com/u/Double)\
**Replies:** 4\
**Last updated:** [January 21, 2008, 11:45am UTC](https://www.ruby-forum.com/t/actioncontroller-invalidauthenticitytoken-in-logincontroller/126182 "2008-01-21T11:45:49Z")

</div>

Hi, I’m having a problem trying to get a login controller working. When I try and post to my login controller I get the following error: ActionController::InvalidAuthenticityToken in LoginController#login login\_contr…

---

## [What does the ' & ' mean when associated to a block?](https://www.ruby-forum.com/t/what-does-the-mean-when-associated-to-a-block/126681)

<div class="topic-metadata">

**Author:** [@andreas](https://www.ruby-forum.com/u/andreas)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 11:32am UTC](https://www.ruby-forum.com/t/what-does-the-mean-when-associated-to-a-block/126681 "2008-01-21T11:32:07Z")

</div>

I have a function that is defined as such: def rubyfunc( &block ) … end Its called by “interface.rubyfunc” (Where obviously interface is a class) Can anyone give me an explanation of what the “&”-sign is and in gen…

---

## [Hidden fields params](https://www.ruby-forum.com/t/hidden-fields-params/123368)

<div class="topic-metadata">

**Author:** [@tomn](https://www.ruby-forum.com/u/tomn)\
**Replies:** 6\
**Last updated:** [January 21, 2008, 11:26am UTC](https://www.ruby-forum.com/t/hidden-fields-params/123368 "2008-01-21T11:26:28Z")

</div>

Ok, I’m working dilegently on my question from yesterday and I will post the answer once I get one working… but I’m having problems on an interim stage. Hidden field basics…I really wrestle getting things in and out o…

---

## [Shared sessions and rails2](https://www.ruby-forum.com/t/shared-sessions-and-rails2/126677)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 11:19am UTC](https://www.ruby-forum.com/t/shared-sessions-and-rails2/126677 "2008-01-21T11:19:58Z")

</div>

Hi all How would you go about sharing a session between two rails2 applications? I am using restful\_authentication. A point in the direction of some relevant blogs would also be a great help. Regards Ivor

---

## [Creating a multiple publication portal](https://www.ruby-forum.com/t/creating-a-multiple-publication-portal/126674)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 10:37am UTC](https://www.ruby-forum.com/t/creating-a-multiple-publication-portal/126674 "2008-01-21T10:37:02Z")

</div>

Hi All I am currently working on a project where we are creating a portal to various publications. Users who are registered with the site can subscribe to various publications. Each publication has content which may…

---

## [Why does Time.now.utc? return false?](https://www.ruby-forum.com/t/why-does-time-now-utc-return-false/126668)

<div class="topic-metadata">

**Author:** [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 10:33am UTC](https://www.ruby-forum.com/t/why-does-time-now-utc-return-false/126668 "2008-01-21T10:33:24Z")

</div>

In my environment.rb file I have: ENV\[‘TZ’\] = ‘UTC’ When I go into the console I do this: t = Time.now =\> Mon Jan 21 07:40:25 +0000 2008 t.zone =\> “UTC” t.utc? =\> false Any idea why utc? is returning fal…

---

## [When the RAILS first version came to market](https://www.ruby-forum.com/t/when-the-rails-first-version-came-to-market/126669)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 0\
**Last updated:** [January 21, 2008, 9:38am UTC](https://www.ruby-forum.com/t/when-the-rails-first-version-came-to-market/126669 "2008-01-21T09:38:52Z")

</div>

Hi, Some employers are expecting 2 to 3 yrs experience in RAILS. I doubt RAILS was not there before 2 years. Thanks, Ayyanar. A

---

## [Scaling with multiple databases - which approach is 'best'?](https://www.ruby-forum.com/t/scaling-with-multiple-databases-which-approach-is-best/126636)

<div class="topic-metadata">

**Author:** [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 9:27am UTC](https://www.ruby-forum.com/t/scaling-with-multiple-databases-which-approach-is-best/126636 "2008-01-21T09:27:14Z")

</div>

Hi All, I’m looking at options for using multiple databases in a master-for-writes, slaves-for-reads config. I’ve Googled up multiple options including ActsAsReadonlyable, MagicMultiConnections, ActiveDelegate, and …

---

## [Functional test with exception\_notification fails when run with rake, passes when run with Ruby](https://www.ruby-forum.com/t/functional-test-with-exception-notification-fails-when-run-with-rake-passes-when-run-with-ruby/126640)

<div class="topic-metadata">

**Author:** [@Farrel](https://www.ruby-forum.com/u/Farrel)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 9:23am UTC](https://www.ruby-forum.com/t/functional-test-with-exception-notification-fails-when-run-with-rake-passes-when-run-with-ruby/126640 "2008-01-21T09:23:31Z")

</div>

I’ve got a wierd problem with a functional test that passes when run individually (‘ruby test/functional/exception\_notifier.rb’) but fails when run as part of ‘rake test:functionals’. I’m testing whether a broken page…

---

## [Select list](https://www.ruby-forum.com/t/select-list/126646)

<div class="topic-metadata">

**Author:** [@nicpon](https://www.ruby-forum.com/u/nicpon)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 9:11am UTC](https://www.ruby-forum.com/t/select-list/126646 "2008-01-21T09:11:43Z")

</div>

Helo, I want to create a select list that will switch between types of data from the database. Basically, the select list will have few options that I want them to serve as a condition in the sql statement. My questi…

---

## [Tutorial on Ruby on Rails](https://www.ruby-forum.com/t/tutorial-on-ruby-on-rails/126667)

<div class="topic-metadata">

**Author:** [@Rails\_Expert](https://www.ruby-forum.com/u/Rails_Expert)\
**Replies:** 1\
**Last updated:** [January 21, 2008, 9:05am UTC](https://www.ruby-forum.com/t/tutorial-on-ruby-on-rails/126667 "2008-01-21T09:05:24Z")

</div>

Hi! I’m working on Ruby on Rails from last 9 months and found it very strong framework to implement very sophisticated websites with-in a minimum time frame. I have written a tutorial on Ruby on Rails and finally I d…

---

## [Intermediate Form Calculation](https://www.ruby-forum.com/t/intermediate-form-calculation/84089)

<div class="topic-metadata">

**Author:** [@khmckgrp](https://www.ruby-forum.com/u/khmckgrp)\
**Replies:** 5\
**Last updated:** [January 21, 2008, 4:46am UTC](https://www.ruby-forum.com/t/intermediate-form-calculation/84089 "2008-01-21T04:46:55Z")

</div>

I have a form that includes some filtering criteria (select customers based on age, sex, status, etc). I want to add a ‘calculate’ button on the form which will go off and calculate, then display, how many customers w…

---

## [Deprecated posts replaced with method \_\_\_\_\_\_\_?](https://www.ruby-forum.com/t/deprecated-posts-replaced-with-method/126615)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 2\
**Last updated:** [January 21, 2008, 1:00am UTC](https://www.ruby-forum.com/t/deprecated-posts-replaced-with-method/126615 "2008-01-21T01:00:05Z")

</div>

Looking at this snippet: thufir@arrakis ~/strawr $ thufir@arrakis ~/strawr $ cat app/views/feeds/show.rhtml -n | head -n 36 | tail -n 13 24 25 \<% if @feed.tags.empty? %\> 26 (None) 27 \<% else %\> 28 \<% f…

---

## [Diagnose problem](https://www.ruby-forum.com/t/diagnose-problem/126639)

<div class="topic-metadata">

**Author:** [@johnt519](https://www.ruby-forum.com/u/johnt519)\
**Replies:** 5\
**Last updated:** [January 21, 2008, 12:51am UTC](https://www.ruby-forum.com/t/diagnose-problem/126639 "2008-01-21T00:51:52Z")

</div>

I’ve just spent the last 2 days setting up a new Rails website. very basic. It connects to a MySql database and displays the rows of a table. I’ve got it to the point where if I connect to the site from my browser, i…

---

## [CruiseControl problem. Broken Pipe?](https://www.ruby-forum.com/t/cruisecontrol-problem-broken-pipe/126398)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [January 21, 2008, 12:31am UTC](https://www.ruby-forum.com/t/cruisecontrol-problem-broken-pipe/126398 "2008-01-21T00:31:56Z")

</div>

Hi Friends, Just happened to catch this err in the CC log: Build loop failed BuilderError: Write failed: Broken pipe ./script/…/config/…/app/models/subversion.rb:98:in execute\_in\_local\_copy' ./script/../config/../li…

---

## [Amazon SimpleDB ang Ruby](https://www.ruby-forum.com/t/amazon-simpledb-ang-ruby/123810)

<div class="topic-metadata">

**Author:** [@kublai](https://www.ruby-forum.com/u/kublai)\
**Replies:** 4\
**Last updated:** [January 21, 2008, 12:26am UTC](https://www.ruby-forum.com/t/amazon-simpledb-ang-ruby/123810 "2008-01-21T00:26:40Z")

</div>

Amazon SimpleDB satisfies the hosting model I need for a project. Unfortunately, looks like it only supports PHP, C#, Java, Perl, and VB.NET. Does anyone know of any work to make it work with Ruby on Rails. Thanks, …

---

## [HTTP 400 error when using Aptana IDE, Webrick and Rails with Vista and IE7](https://www.ruby-forum.com/t/http-400-error-when-using-aptana-ide-webrick-and-rails-with-vista-and-ie7/126115)

<div class="topic-metadata">

**Author:** [@mstreffo](https://www.ruby-forum.com/u/mstreffo)\
**Replies:** 1\
**Last updated:** [January 20, 2008, 11:52pm UTC](https://www.ruby-forum.com/t/http-400-error-when-using-aptana-ide-webrick-and-rails-with-vista-and-ie7/126115 "2008-01-20T23:52:09Z")

</div>

Hi, I have a strange problem that appears to be a problem with redirect\_to with the following software combination. Vista Business IE7 Aptana IDE and Webrick Rails 1.8.6 I have a user controller with a login metho…

---

## [Display images from filesystem without plugins](https://www.ruby-forum.com/t/display-images-from-filesystem-without-plugins/126642)

<div class="topic-metadata">

**Author:** [@xobani](https://www.ruby-forum.com/u/xobani)\
**Replies:** 6\
**Last updated:** [January 20, 2008, 11:15pm UTC](https://www.ruby-forum.com/t/display-images-from-filesystem-without-plugins/126642 "2008-01-20T23:15:16Z")

</div>

i want to know how i can displays images from the filesystem without having to install any plugins. i imagine this should be fairly simple, but i am having a hard time figuring out how to do it. could anyone help? tha…

---

## [Out of Time range (RangeError)](https://www.ruby-forum.com/t/out-of-time-range-rangeerror/126637)

<div class="topic-metadata">

**Author:** [@sagar](https://www.ruby-forum.com/u/sagar)\
**Replies:** 1\
**Last updated:** [January 20, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/out-of-time-range-rangeerror/126637 "2008-01-20T22:27:34Z")

</div>

I am getting the following error message when starting WEBrick: C:/ruby184-20/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/ active\_support/core\_ext/numeric/time.rb:64:in +': time + 946728000.000000 out of Time range …

---

## [Will\_paginate and :conditions or :select with associations](https://www.ruby-forum.com/t/will-paginate-and-conditions-or-select-with-associations/126472)

<div class="topic-metadata">

**Author:** [@damaris](https://www.ruby-forum.com/u/damaris)\
**Replies:** 8\
**Last updated:** [January 20, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/will-paginate-and-conditions-or-select-with-associations/126472 "2008-01-20T20:23:33Z")

</div>

Hi you all, I’m using Will\_paginate plugin for paginating my results, and it worked fine with just one model, even adding the :select param, such as: select\_statement = "DISTINCT " + @att @bugs = Bug.paginate(:page =\>…

---

## [Select not working properly](https://www.ruby-forum.com/t/select-not-working-properly/126627)

<div class="topic-metadata">

**Author:** [@rajatgarg](https://www.ruby-forum.com/u/rajatgarg)\
**Replies:** 1\
**Last updated:** [January 20, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/select-not-working-properly/126627 "2008-01-20T20:18:15Z")

</div>

Hi Guys, I have created a form where a user can select from a drop down list of names. Based on the selection, a value is passed and appropriate email is looked up. Then, I call actionmailer to deliver the email. Pr…

---

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

<div class="topic-metadata">

**Author:** [@sweb](https://www.ruby-forum.com/u/sweb)\
**Replies:** 3\
**Last updated:** [January 20, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/link-to-file/114271 "2008-01-20T19:55:28Z")

</div>

Hi, This is probably the stupidest question that I’m ever going to ask, but how do I create a link to a file? To be more clear, I simply want to create a link to a file that I am storing in the /public directory, say …

---

## [Update multiple tables with one form](https://www.ruby-forum.com/t/update-multiple-tables-with-one-form/126621)

<div class="topic-metadata">

**Author:** [@Stefan\_Frede](https://www.ruby-forum.com/u/Stefan_Frede)\
**Replies:** 3\
**Last updated:** [January 20, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/update-multiple-tables-with-one-form/126621 "2008-01-20T19:22:57Z")

</div>

Hi! I’m new to this group and new to RoR. Because I want to learn RoR I defined a project for myself for learning purposes. So I think this will be my first question of quite a few that will follow. I try to update m…

---

## [Help my Ruby on Rails is being very naughty!](https://www.ruby-forum.com/t/help-my-ruby-on-rails-is-being-very-naughty/126606)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 1\
**Last updated:** [January 20, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/help-my-ruby-on-rails-is-being-very-naughty/126606 "2008-01-20T18:28:19Z")

</div>

The “Instant Rails” software was installed and is failing to look at MySQL. Yet it appears to see it. I can see a project which is currently existing on the dbase. The error message that I receive is MySQL port (3306…

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

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