# Rails

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

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

---

## [Please help. The error occurred while evaluating nil.name](https://www.ruby-forum.com/t/please-help-the-error-occurred-while-evaluating-nil-name/135752)

<div class="topic-metadata">

**Author:** [@nameth](https://www.ruby-forum.com/u/nameth)\
**Replies:** 7\
**Last updated:** [April 26, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/please-help-the-error-occurred-while-evaluating-nil-name/135752 "2008-04-26T13:05:48Z")

</div>

Okay so heres my code which works fine, i’ll explain the problem below. \<% for num in removed\_email\_address@domain.invalid %\> \<%= @results\[1\].name%\> | \<%= number\_to\_currency(@results\[1…

---

## [Page not found](https://www.ruby-forum.com/t/page-not-found/135917)

<div class="topic-metadata">

**Author:** [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Replies:** 2\
**Last updated:** [April 26, 2008, 11:44am UTC](https://www.ruby-forum.com/t/page-not-found/135917 "2008-04-26T11:44:26Z")

</div>

Hi all I want to know in which file do i need to make changes if the page is not found… i mean say suppose i m opening a url as url.com/images/2 and the id 2 doesnt exist so it will show me routing error…where as i w…

---

## [Uptime](https://www.ruby-forum.com/t/uptime/135925)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 1\
**Last updated:** [April 26, 2008, 11:42am UTC](https://www.ruby-forum.com/t/uptime/135925 "2008-04-26T11:42:40Z")

</div>

How to show servers uptime on rails page?

---

## [Moving pagination code to model](https://www.ruby-forum.com/t/moving-pagination-code-to-model/135924)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 11:42am UTC](https://www.ruby-forum.com/t/moving-pagination-code-to-model/135924 "2008-04-26T11:42:26Z")

</div>

Hi I have the controller code as below step 1: set the variables you’ll need page = (params\[:page\] ||= 1).to\_i items\_per\_page = 20 offset = (page - 1) \* items\_per\_page # step 2: instead o…

---

## [Array problem](https://www.ruby-forum.com/t/array-problem/135918)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 1\
**Last updated:** [April 26, 2008, 11:03am UTC](https://www.ruby-forum.com/t/array-problem/135918 "2008-04-26T11:03:22Z")

</div>

a = \[ \[ ‘john’ , ‘195’ \] , \[ ‘jack’ , ‘132’ \] \] i need to convert this to: b = \[ \[ ‘name’ , ‘john’ \] , \[ ‘id’ , ‘195’ \] , \[ ‘name2’ , ‘jack’ \] , \[ ‘id2’ , ‘132’ \] \] i am throwing a blank b = Array.new a.each do\_wi…

---

## [Schema.rb SVN or not?](https://www.ruby-forum.com/t/schema-rb-svn-or-not/135887)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 2\
**Last updated:** [April 26, 2008, 10:58am UTC](https://www.ruby-forum.com/t/schema-rb-svn-or-not/135887 "2008-04-26T10:58:05Z")

</div>

Fairly simple one today: Does Schema.rb belong in your SVN repository which all the developers commit to? If Schema.rb is autogenerated which it claims to be, then will running the Migrations on every (new) machine br…

---

## [Noob ? - Diff Between "action =\> :index" and "action =\> 'index'"?](https://www.ruby-forum.com/t/noob-diff-between-action-index-and-action-index/135864)

<div class="topic-metadata">

**Author:** [@rornoob](https://www.ruby-forum.com/u/rornoob)\
**Replies:** 7\
**Last updated:** [April 26, 2008, 10:56am UTC](https://www.ruby-forum.com/t/noob-diff-between-action-index-and-action-index/135864 "2008-04-26T10:56:20Z")

</div>

What is the difference between specifiying a link\_to action with a “:” vs. “’’” ? Example: \<%= link\_to “Continue your spree”, :action =\> :index %\> vs. \<%= link\_to “Continue your spree”, :action =\> ‘index’ %\> Is the…

---

## [Help re recording/replaying (i.e. automating) HTTP interactions to a web-site?](https://www.ruby-forum.com/t/help-re-recording-replaying-i-e-automating-http-interactions-to-a-web-site/134336)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [April 26, 2008, 10:43am UTC](https://www.ruby-forum.com/t/help-re-recording-replaying-i-e-automating-http-interactions-to-a-web-site/134336 "2008-04-26T10:43:59Z")

</div>

Hi, Actually can anyone recommend a good technique / software / plugin that would assist if I wanted to effectively (a) record my interaction with my bank at the HTTP level, then (b) use this to automate that behavio…

---

## [Net:: SSH slowness issues](https://www.ruby-forum.com/t/net-ssh-slowness-issues/196655)

<div class="topic-metadata">

**Author:** [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Replies:** 4\
**Last updated:** [April 26, 2008, 8:09am UTC](https://www.ruby-forum.com/t/net-ssh-slowness-issues/196655 "2008-04-26T08:09:43Z")

</div>

Guys I’m having a problem with net-ssh, its kinda taking too long to execute a command and give me the results. It takes around 40 seonds to do it. And I have 3-4 commands to run on the remote box. Is there any possi…

---

## [Re: Ruby group suggestion needed](https://www.ruby-forum.com/t/re-ruby-group-suggestion-needed/135913)

<div class="topic-metadata">

**Author:** [@boothy](https://www.ruby-forum.com/u/boothy)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 6:38am UTC](https://www.ruby-forum.com/t/re-ruby-group-suggestion-needed/135913 "2008-04-26T06:38:54Z")

</div>

What do you mean a Ruby group? → a group like this rails group Surely you don’t mean: http://groups.google.com/group/ruby — → this has only 256 members with low activity so it does not seem to be a good one found …

---

## [Newbies: rubystack or leopard?](https://www.ruby-forum.com/t/newbies-rubystack-or-leopard/135897)

<div class="topic-metadata">

**Author:** [@geronimo](https://www.ruby-forum.com/u/geronimo)\
**Replies:** 1\
**Last updated:** [April 26, 2008, 6:35am UTC](https://www.ruby-forum.com/t/newbies-rubystack-or-leopard/135897 "2008-04-26T06:35:23Z")

</div>

I just downloaded rubystack to my powerpc (OS X 10.4) and have no idea how to use it. For example, when I open the Terminal and type: ruby -v … it returns ruby 1.8.2 Shouldn’t it return a later version of ruby? Also…

---

## [Fill pdf with data](https://www.ruby-forum.com/t/fill-pdf-with-data/135854)

<div class="topic-metadata">

**Author:** [@rushnosh](https://www.ruby-forum.com/u/rushnosh)\
**Replies:** 9\
**Last updated:** [April 26, 2008, 5:32am UTC](https://www.ruby-forum.com/t/fill-pdf-with-data/135854 "2008-04-26T05:32:14Z")

</div>

i am attempting to fill a pdf that has fields with data submitted from a user. i am using pdftk but never tried to run something outside of ruby. does anyone have any tips, or articles in regards to running an app ou…

---

## [Can't Understand Why This Works](https://www.ruby-forum.com/t/cant-understand-why-this-works/135905)

<div class="topic-metadata">

**Author:** [@rornoob](https://www.ruby-forum.com/u/rornoob)\
**Replies:** 2\
**Last updated:** [April 26, 2008, 2:31am UTC](https://www.ruby-forum.com/t/cant-understand-why-this-works/135905 "2008-04-26T02:31:04Z")

</div>

I have 3 methods: def add\_to\_cart do some stuff redirect\_to\_index end def empty\_cart do some stuff redirect\_to\_index(“your cart was emptied”) end def redirect\_to\_index(msg = nil) flash\[:notice\] = msg if msg redi…

---

## [Got a Mac with Leopard and asking for some help](https://www.ruby-forum.com/t/got-a-mac-with-leopard-and-asking-for-some-help/135889)

<div class="topic-metadata">

**Author:** [@eggman2001](https://www.ruby-forum.com/u/eggman2001)\
**Replies:** 4\
**Last updated:** [April 26, 2008, 1:12am UTC](https://www.ruby-forum.com/t/got-a-mac-with-leopard-and-asking-for-some-help/135889 "2008-04-26T01:12:36Z")

</div>

I just got my first Mac after using PCs my entire life and I’m trying to get the rails stack set up. I know Leopard comes with rails, but I believe it doesn’t come with mysql (since the ‘mysql’ command doesn’t work at…

---

## [Does anyone know ROR Developers looking for work?](https://www.ruby-forum.com/t/does-anyone-know-ror-developers-looking-for-work/135903)

<div class="topic-metadata">

**Author:** [@mikari](https://www.ruby-forum.com/u/mikari)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 1:09am UTC](https://www.ruby-forum.com/t/does-anyone-know-ror-developers-looking-for-work/135903 "2008-04-26T01:09:51Z")

</div>

Hi, I’m with Next Internet LLC (nextinternet.com) and we are looking for Ruby on Rails Developers for our companies in San Fransisco, CA. The job description is below and attached: Ruby On Rails D…

---

## [Ruby starting / stopping a windows service?](https://www.ruby-forum.com/t/ruby-starting-stopping-a-windows-service/135902)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 0\
**Last updated:** [April 26, 2008, 1:08am UTC](https://www.ruby-forum.com/t/ruby-starting-stopping-a-windows-service/135902 "2008-04-26T01:08:17Z")

</div>

Hello, I was wondering if it were possible for a Ruby on Rails program (I’m running with InstantRails 1.6) to start and stop a windows service. Pretty much, I’d want to write a Ruby script that would run every so oft…

---

## [Amount of sql queries](https://www.ruby-forum.com/t/amount-of-sql-queries/135876)

<div class="topic-metadata">

**Author:** [@fox](https://www.ruby-forum.com/u/fox)\
**Replies:** 2\
**Last updated:** [April 26, 2008, 12:50am UTC](https://www.ruby-forum.com/t/amount-of-sql-queries/135876 "2008-04-26T00:50:53Z")

</div>

hi all, looking at my development log, i can see rails generating a huge amount of queries . my models are set up as follows: user 1-m item 1-m item\_document the relationships are has\_many\_through, with user\_items, …

---

## [Form\_for name](https://www.ruby-forum.com/t/form-for-name/135900)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [April 26, 2008, 12:43am UTC](https://www.ruby-forum.com/t/form-for-name/135900 "2008-04-26T00:43:17Z")

</div>

Hello, I have a form in which I am using some javascript to disable the submit button after it is clicked. However, it ceases to submit the form. Thus, I need to use a javascript line that submits it. No problem there…

---

## [Bug?](https://www.ruby-forum.com/t/bug/135899)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [April 26, 2008, 12:30am UTC](https://www.ruby-forum.com/t/bug/135899 "2008-04-26T00:30:23Z")

</div>

radio\_button\_tag(:school\_type, type, ‘’) =\> “\<input checked=“checked” id=“school\_type\_online” name=“school\_type” type=“radio” value=“online” /\>” Note that I passed it a default value of ‘’ and it spit out that it that …

---

## [Params not available w form\_remote\_tag call](https://www.ruby-forum.com/t/params-not-available-w-form-remote-tag-call/135895)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 3\
**Last updated:** [April 25, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/params-not-available-w-form-remote-tag-call/135895 "2008-04-25T23:37:04Z")

</div>

Hi guys… I’m having an issue that seems so basic to me, but I can’t figure it out. I have a partial which is a form below: \<% form\_remote\_tag :url =\> { :action =\> :submit\_free\_report }, :update =\> :results, …

---

## [Iterating over a hash map](https://www.ruby-forum.com/t/iterating-over-a-hash-map/135894)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 2\
**Last updated:** [April 25, 2008, 11:29pm UTC](https://www.ruby-forum.com/t/iterating-over-a-hash-map/135894 "2008-04-25T23:29:15Z")

</div>

Hello, I’m trying to iterate over a hash map I created, but its not working very well… I’ve been experimenting in IRB like so: compare\_hash = {} compare\_hash\[“item1”\] = \[“subitem1”,“subitem2”\] compare\_hash\[“item2”\] …

---

## [Best practice for starting for building your DB?](https://www.ruby-forum.com/t/best-practice-for-starting-for-building-your-db/135888)

<div class="topic-metadata">

**Author:** [@rSils3nvy](https://www.ruby-forum.com/u/rSils3nvy)\
**Replies:** 2\
**Last updated:** [April 25, 2008, 11:19pm UTC](https://www.ruby-forum.com/t/best-practice-for-starting-for-building-your-db/135888 "2008-04-25T23:19:29Z")

</div>

Hi, Im just starting RoR so forgive me if I ask some stupid questions. Is it easier to create the a DB with a couple of tables through ruby on rails or can I just as easily work with the DB if I already created it t…

---

## [ActionMailer](https://www.ruby-forum.com/t/actionmailer/135810)

<div class="topic-metadata">

**Author:** [@prionko](https://www.ruby-forum.com/u/prionko)\
**Replies:** 6\
**Last updated:** [April 25, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/actionmailer/135810 "2008-04-25T22:54:55Z")

</div>

Hi all, I need a help. I have got a user registration form, where the user signs up and then an activation link is sent to the user email id for activating his/her account. Now I need to send an another email to the …

---

## [Authentication (restful, etc)](https://www.ruby-forum.com/t/authentication-restful-etc/135875)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 3\
**Last updated:** [April 25, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/authentication-restful-etc/135875 "2008-04-25T22:16:02Z")

</div>

I feel kind of “slow” asking this post - but I can’t get my head wrapped around the connection between the authentication of a user and the usage of the current\_user values in other controllers. If I had a controller …

---

## [Ajax Sort of Working. Model being saved but view not being updated](https://www.ruby-forum.com/t/ajax-sort-of-working-model-being-saved-but-view-not-being-updated/135873)

<div class="topic-metadata">

**Author:** [@keaja](https://www.ruby-forum.com/u/keaja)\
**Replies:** 1\
**Last updated:** [April 25, 2008, 10:11pm UTC](https://www.ruby-forum.com/t/ajax-sort-of-working-model-being-saved-but-view-not-being-updated/135873 "2008-04-25T22:11:55Z")

</div>

I am trying to create a model and update the page element with ajax. The model is being saved and committed to the database. However the view just sits there and does nothing. If I refresh the page manually, the new m…

---

## [Why is Rails making 2 SELECT queries when updating user info](https://www.ruby-forum.com/t/why-is-rails-making-2-select-queries-when-updating-user-info/135885)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 2\
**Last updated:** [April 25, 2008, 10:09pm UTC](https://www.ruby-forum.com/t/why-is-rails-making-2-select-queries-when-updating-user-info/135885 "2008-04-25T22:09:41Z")

</div>

Hi, My User model has been generated using the restful\_authentication generator. When I submit data to the update action of the users\_controllers, I see that Rails makes the following queries which are unnecessary: B…

---

## [Db/schema.rb not preserving constraints](https://www.ruby-forum.com/t/db-schema-rb-not-preserving-constraints/135818)

<div class="topic-metadata">

**Author:** [@smc7000](https://www.ruby-forum.com/u/smc7000)\
**Replies:** 5\
**Last updated:** [April 25, 2008, 10:02pm UTC](https://www.ruby-forum.com/t/db-schema-rb-not-preserving-constraints/135818 "2008-04-25T22:02:24Z")

</div>

Is there some magic that’s required to have db/schema.rb contain various execute() methods that exist in the migrations files? For example, suppose in a migration I have the following: BEGIN create\_table ‘foo’ do |t| …

---

## [Can we execute a saved request..?](https://www.ruby-forum.com/t/can-we-execute-a-saved-request/135884)

<div class="topic-metadata">

**Author:** [@buddhi](https://www.ruby-forum.com/u/buddhi)\
**Replies:** 0\
**Last updated:** [April 25, 2008, 9:45pm UTC](https://www.ruby-forum.com/t/can-we-execute-a-saved-request/135884 "2008-04-25T21:45:22Z")

</div>

Is it possible to execute a saved ajax request sent by browser if we save it to a sesion variable…?

---

## [Execute a saved request..?](https://www.ruby-forum.com/t/execute-a-saved-request/135874)

<div class="topic-metadata">

**Author:** [@buddhi](https://www.ruby-forum.com/u/buddhi)\
**Replies:** 0\
**Last updated:** [April 25, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/execute-a-saved-request/135874 "2008-04-25T20:49:13Z")

</div>

Is it possible to execute a saved ajax request sent by browser if we save it to a sesion variable…

---

## [Referrer logging?](https://www.ruby-forum.com/t/referrer-logging/132275)

<div class="topic-metadata">

**Author:** [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Replies:** 1\
**Last updated:** [April 25, 2008, 8:47pm UTC](https://www.ruby-forum.com/t/referrer-logging/132275 "2008-04-25T20:47:24Z")

</div>

Is the default Rails production.log supposed to log referrer with every request? I see that there is ‘info’ level logging of each incoming request. But in my logs, they don’t have ‘referrer’ logged. Is this because de…

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

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