# Rails

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

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

---

## [Two level Navigational menus](https://www.ruby-forum.com/t/two-level-navigational-menus/164160)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/two-level-navigational-menus/164160 "2009-05-12T17:10:56Z")

</div>

This has turned out to be a bit more difficult than I anticipated. I thought that creating two levels of generic navigational menus should not be that difficult. May be I am missing something. I have done it by bor…

---

## [Nested hash and nil question](https://www.ruby-forum.com/t/nested-hash-and-nil-question/167748)

<div class="topic-metadata">

**Author:** [@scottnj](https://www.ruby-forum.com/u/scottnj)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/nested-hash-and-nil-question/167748 "2009-05-12T16:25:35Z")

</div>

i need to pull out some specific values from a nested hash, but nils are driving me crazy. in the following example, if address\_details, country, administrative\_area, locality OR postal\_code are nil i get “The error o…

---

## [Help with MySQL COALESCE](https://www.ruby-forum.com/t/help-with-mysql-coalesce/167710)

<div class="topic-metadata">

**Author:** [@tni](https://www.ruby-forum.com/u/tni)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 3:55pm UTC](https://www.ruby-forum.com/t/help-with-mysql-coalesce/167710 "2009-05-12T15:55:33Z")

</div>

In my Ruby on Rails app, I am trying to run a query to populate a drop- down select box. The query may return NULL values, in which case I want to display a value like ‘N/A’. My query works directly in MySql: select…

---

## [Yet another cucumber/webrat/selenium problem](https://www.ruby-forum.com/t/yet-another-cucumber-webrat-selenium-problem/167778)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [May 12, 2009, 2:47pm UTC](https://www.ruby-forum.com/t/yet-another-cucumber-webrat-selenium-problem/167778 "2009-05-12T14:47:48Z")

</div>

I do wish Cucumber has its own Google group, but no such luck (or at least it’s not linked to from GitHub), so I’ll post here. I’ve followed the instructions for setting up on http://wiki.github.com/aslakhellesoy/cucu…

---

## [Unused local variable load\_error in boot.rb](https://www.ruby-forum.com/t/unused-local-variable-load-error-in-boot-rb/167783)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 2:40pm UTC](https://www.ruby-forum.com/t/unused-local-variable-load-error-in-boot-rb/167783 "2009-05-12T14:40:45Z")

</div>

I’m getting an ‘Unused local variable load\_error’ in my .config/ boot.rb This seems to be the problem code: rescue Gem::LoadError =\> load\_error $stderr.puts %(Missing the Rails #{version} gem. Please \`gem install -…

---

## [Mongrel\_cluster with prefix](https://www.ruby-forum.com/t/mongrel-cluster-with-prefix/167779)

<div class="topic-metadata">

**Author:** [@xinu](https://www.ruby-forum.com/u/xinu)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 2:37pm UTC](https://www.ruby-forum.com/t/mongrel-cluster-with-prefix/167779 "2009-05-12T14:37:35Z")

</div>

If i try to start mongrel\_cluster with a prefix a receive this error message. /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active\_support/dependencies.rb:440:in \`load\_missing\_constant’: uninitialized constant …

---

## [Including a blank in a dropdown](https://www.ruby-forum.com/t/including-a-blank-in-a-dropdown/167564)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 34\
**Last updated:** [May 12, 2009, 1:33pm UTC](https://www.ruby-forum.com/t/including-a-blank-in-a-dropdown/167564 "2009-05-12T13:33:22Z")

</div>

Been trying all morning - daft thing ARRRRRGH! I’d like to have the top option in my drop down to be “please select” and if that’s the case All teachers should be shown. I can’t get the Please Select to work though ? …

---

## [Invoke a controller def from view without clicking any link](https://www.ruby-forum.com/t/invoke-a-controller-def-from-view-without-clicking-any-link/167658)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 3\
**Last updated:** [May 12, 2009, 1:26pm UTC](https://www.ruby-forum.com/t/invoke-a-controller-def-from-view-without-clicking-any-link/167658 "2009-05-12T13:26:54Z")

</div>

Hi I have a controller def like def graph\_render get\_flash\_chat\_objects respond\_to do |format| format.js do render :update do |page| page\[:graph\_div\].replace\_html :partial =\> “summary\_graph” end end end end S…

---

## [STI good or bad for my problem?](https://www.ruby-forum.com/t/sti-good-or-bad-for-my-problem/167762)

<div class="topic-metadata">

**Author:** [@fredd](https://www.ruby-forum.com/u/fredd)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 12:58pm UTC](https://www.ruby-forum.com/t/sti-good-or-bad-for-my-problem/167762 "2009-05-12T12:58:05Z")

</div>

Hi. I am currently developing a small course system for student and teachers. The system is divided in sections and sections have many messages, comments, documents and schedules. Pretty easy to set up using ROR, just…

---

## [RJS Error: TypeError: while using active scaffold](https://www.ruby-forum.com/t/rjs-error-typeerror-while-using-active-scaffold/167769)

<div class="topic-metadata">

**Author:** [@chirag\_shah](https://www.ruby-forum.com/u/chirag_shah)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 12:22pm UTC](https://www.ruby-forum.com/t/rjs-error-typeerror-while-using-active-scaffold/167769 "2009-05-12T12:22:32Z")

</div>

Hi, I get an unexpected error because i havent do any chnages in any javascript files, after installing active scaffold. Before 1-2 days my application is working fine but from yesterday i got the error for RJS as be…

---

## [Rails 2.3.2 is not generating environment.rb properly](https://www.ruby-forum.com/t/rails-2-3-2-is-not-generating-environment-rb-properly/167752)

<div class="topic-metadata">

**Author:** [@aashishkiran](https://www.ruby-forum.com/u/aashishkiran)\
**Replies:** 2\
**Last updated:** [May 12, 2009, 11:14am UTC](https://www.ruby-forum.com/t/rails-2-3-2-is-not-generating-environment-rb-properly/167752 "2009-05-12T11:14:00Z")

</div>

problem: rails 2.3.2 is not generating config.action\_controller.session\_store = :active\_record\_store in environment.rb this is the code in environment.rb Be sure to restart your server when you modify this file S…

---

## [Flash notices are not accessible on next request](https://www.ruby-forum.com/t/flash-notices-are-not-accessible-on-next-request/166818)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 5\
**Last updated:** [May 12, 2009, 10:28am UTC](https://www.ruby-forum.com/t/flash-notices-are-not-accessible-on-next-request/166818 "2009-05-12T10:28:53Z")

</div>

For some reason, which I cannot detect, no flash notices that I set prior to redirects are available after the redirect. This standard “forgot password” action as an example: def forgot if request.post? user = User.…

---

## [Simple Post to CookBook](https://www.ruby-forum.com/t/simple-post-to-cookbook/167731)

<div class="topic-metadata">

**Author:** [@sniper1694](https://www.ruby-forum.com/u/sniper1694)\
**Replies:** 1\
**Last updated:** [May 12, 2009, 9:44am UTC](https://www.ruby-forum.com/t/simple-post-to-cookbook/167731 "2009-05-12T09:44:48Z")

</div>

I am trying to post from C# to a simple Ruby on Rails page. I am using the cookbook of Ruby on rails. So I just want to create a new category from C# I do it like this in c# string url = “http://localhost:3000/catego…

---

## [What's New In Rails?](https://www.ruby-forum.com/t/whats-new-in-rails/167755)

<div class="topic-metadata">

**Author:** [@salil](https://www.ruby-forum.com/u/salil)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 9:32am UTC](https://www.ruby-forum.com/t/whats-new-in-rails/167755 "2009-05-12T09:32:12Z")

</div>

Hi All, I want to know what is the new in Ruby On Rails i.e. what is the latest version of the Rails? what’s new in it ? updates for the New Gems and Plugins. anything related to ruby actually i want to update myself…

---

## [Identify dynamic name using Scrubyt](https://www.ruby-forum.com/t/identify-dynamic-name-using-scrubyt/167754)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 9:29am UTC](https://www.ruby-forum.com/t/identify-dynamic-name-using-scrubyt/167754 "2009-05-12T09:29:56Z")

</div>

Hi All, I’m trying to execute the following code. url = “https://xxx.com”(some url) ebay\_data = Scrubyt::Extractor.define :agent =\> :firefox do fetch(url) fill\_textfield field name, value record “//table\[@id=‘head…

---

## [How to add validation in select tag](https://www.ruby-forum.com/t/how-to-add-validation-in-select-tag/167747)

<div class="topic-metadata">

**Author:** [@nishi](https://www.ruby-forum.com/u/nishi)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 8:00am UTC](https://www.ruby-forum.com/t/how-to-add-validation-in-select-tag/167747 "2009-05-12T08:00:31Z")

</div>

Hi, Im trying to validate the select\_tag i.e must be selected 3 items from the list. If anyone know that,please give sm idea.

---

## [How to get the multiple selected data from select\_tag](https://www.ruby-forum.com/t/how-to-get-the-multiple-selected-data-from-select-tag/167682)

<div class="topic-metadata">

**Author:** [@nishi](https://www.ruby-forum.com/u/nishi)\
**Replies:** 4\
**Last updated:** [May 12, 2009, 7:57am UTC](https://www.ruby-forum.com/t/how-to-get-the-multiple-selected-data-from-select-tag/167682 "2009-05-12T07:57:35Z")

</div>

Im trying to get the multiple selected data from select\_tag., but its gives single data I hv written. \<%=select\_tag( :cons\_attribute\_id,options\_from\_collection\_for\_select (Attribute.find\_all\_by\_attributetype(“cons”), …

---

## [Undefined Method '|'](https://www.ruby-forum.com/t/undefined-method/167608)

<div class="topic-metadata">

**Author:** [@brian](https://www.ruby-forum.com/u/brian)\
**Replies:** 3\
**Last updated:** [May 12, 2009, 6:12am UTC](https://www.ruby-forum.com/t/undefined-method/167608 "2009-05-12T06:12:54Z")

</div>

I generated scaffolding for User with the following schema: create\_table “users”, :force =\> true do |t| t.string “name” t.string “company” t.string “lastcompany” t.datetime “changed” t.datetime “created\_at” …

---

## [\`load\_missing\_constant': uninitialized constant Rails::Generator (NameError)](https://www.ruby-forum.com/t/load-missing-constant-uninitialized-constant-rails-generator-nameerror/167741)

<div class="topic-metadata">

**Author:** [@clemrock](https://www.ruby-forum.com/u/clemrock)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 6:12am UTC](https://www.ruby-forum.com/t/load-missing-constant-uninitialized-constant-rails-generator-nameerror/167741 "2009-05-12T06:12:54Z")

</div>

Hello, I’m probably missing something pretty basic here as a rails newbie but I’m trying to write a plugin and I am trying to get my generator to work. I am trying to call the manifest method in my vendor/plugins/m…

---

## [Using options on scaffold command line](https://www.ruby-forum.com/t/using-options-on-scaffold-command-line/167732)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 0\
**Last updated:** [May 12, 2009, 2:10am UTC](https://www.ruby-forum.com/t/using-options-on-scaffold-command-line/167732 "2009-05-12T02:10:21Z")

</div>

Is this posssible? i.e. will this work? ruby script/generate scaffold applicant first:string limit=\>30 or other syntax? THANK YOU IN ADVANCE, Dan

---

## [Topic title displaying in the URL](https://www.ruby-forum.com/t/topic-title-displaying-in-the-url/167728)

<div class="topic-metadata">

**Author:** [@chaosbanane](https://www.ruby-forum.com/u/chaosbanane)\
**Replies:** 1\
**Last updated:** [May 12, 2009, 1:42am UTC](https://www.ruby-forum.com/t/topic-title-displaying-in-the-url/167728 "2009-05-12T01:42:44Z")

</div>

Hi I would like to integrate the title string into a URL. The standard is like: www.bla.xyz/topics/1 In view of a good search engine ranking I would like to write the title of a topic into the URL like: www.bla.xyz…

---

## [How to generate UML diagrams from existing ruby code?](https://www.ruby-forum.com/t/how-to-generate-uml-diagrams-from-existing-ruby-code/167620)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 4\
**Last updated:** [May 12, 2009, 12:46am UTC](https://www.ruby-forum.com/t/how-to-generate-uml-diagrams-from-existing-ruby-code/167620 "2009-05-12T00:46:25Z")

</div>

Hi, thanks for reading. Till now, I’ve used railroad to visualize my models. But as far as I can see, there’s no possibility to add information about the model class methods. Methods are only added to a diagram, if y…

---

## [POST from http to https](https://www.ruby-forum.com/t/post-from-http-to-https/167712)

<div class="topic-metadata">

**Author:** [@harm](https://www.ruby-forum.com/u/harm)\
**Replies:** 2\
**Last updated:** [May 11, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/post-from-http-to-https/167712 "2009-05-11T23:42:24Z")

</div>

Dear list, I want to POST data from a normal http page to a https controller. I set up SSL and what not and that works. When I go to https://projectname.local the site loads nicely. When I go to http://projectname.lo…

---

## [Fixtures, HABTM and id values](https://www.ruby-forum.com/t/fixtures-habtm-and-id-values/167724)

<div class="topic-metadata">

**Author:** [@colinloretz](https://www.ruby-forum.com/u/colinloretz)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 11:15pm UTC](https://www.ruby-forum.com/t/fixtures-habtm-and-id-values/167724 "2009-05-11T23:15:28Z")

</div>

I have models Frog and Froglet with HABTM relationship between them. In the fixtures file for froglets I can say frogs: frog1, frog2, frog3 where frog1 etc are the names in the frog fixture, and the join table is ma…

---

## [First RoR Aplication - images/css paths](https://www.ruby-forum.com/t/first-ror-aplication-images-css-paths/167669)

<div class="topic-metadata">

**Author:** [@Quijote70](https://www.ruby-forum.com/u/Quijote70)\
**Replies:** 7\
**Last updated:** [May 11, 2009, 10:52pm UTC](https://www.ruby-forum.com/t/first-ror-aplication-images-css-paths/167669 "2009-05-11T22:52:44Z")

</div>

I routed the page www.site.com to a controller “welcome” config/routes.rb: map.root :controller =\> “welcome” after this action the home page http://www.site.com ho reads the action index works fine but if I call h…

---

## [STI and Fixtures](https://www.ruby-forum.com/t/sti-and-fixtures/167704)

<div class="topic-metadata">

**Author:** [@Phoenix\_R](https://www.ruby-forum.com/u/Phoenix_R)\
**Replies:** 2\
**Last updated:** [May 11, 2009, 10:36pm UTC](https://www.ruby-forum.com/t/sti-and-fixtures/167704 "2009-05-11T22:36:14Z")

</div>

I’m trying to implement a TDD design pattern in Rails for the first time for a system maintenance reporting application, and running into issues with STI (also a first-time user) and fixtures causing my tests to throw…

---

## [\[Merb\] Authentication question!](https://www.ruby-forum.com/t/merb-authentication-question/167719)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 10:30pm UTC](https://www.ruby-forum.com/t/merb-authentication-question/167719 "2009-05-11T22:30:08Z")

</div>

Hey guys, sorry, there is no Merb subforum over here, but i have really small question for authentication in merb, which is similar to rails. I created my own strategy, assigned sessions to datamapper and it works ver…

---

## [Is Rails in decline?](https://www.ruby-forum.com/t/is-rails-in-decline/167700)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 4\
**Last updated:** [May 11, 2009, 10:20pm UTC](https://www.ruby-forum.com/t/is-rails-in-decline/167700 "2009-05-11T22:20:24Z")

</div>

Hi, I was doing Rails and was hired away to do .NET. I’m wondering what the state of Ruby/Rails is? I’ve heard it is in decline… I’m asking because I want to build an app in my spare time. It would make more sense…

---

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

<div class="topic-metadata">

**Author:** [@jsmecham](https://www.ruby-forum.com/u/jsmecham)\
**Replies:** 2\
**Last updated:** [May 11, 2009, 9:41pm UTC](https://www.ruby-forum.com/t/link-to-remote/167652 "2009-05-11T21:41:46Z")

</div>

I’m trying to execute a javscript block using link\_to\_remote here’s my code: \<%= link\_to\_function(“Add a follow-up date for this note?”, nil, :id =\> “show\_link”) do |page| %\> \<% page\[:follow\_up\_date\_select\].visual\_ef…

---

## [Not able to display the stored data + fckeditor](https://www.ruby-forum.com/t/not-able-to-display-the-stored-data-fckeditor/167713)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 0\
**Last updated:** [May 11, 2009, 9:28pm UTC](https://www.ruby-forum.com/t/not-able-to-display-the-stored-data-fckeditor/167713 "2009-05-11T21:28:00Z")

</div>

Hello Friend, Currently My rails version is 2.1.1 And i want to display the stored value inside the fckeditor, I am using the following command but nothing is comming up only emoty field. \<%= fckeditor\_textarea “art…

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

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