# Rails

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

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

---

## [Merb configuration options in rails3](https://www.ruby-forum.com/t/merb-configuration-options-in-rails3/193039)

<div class="topic-metadata">

**Author:** [@arai](https://www.ruby-forum.com/u/arai)\
**Replies:** 2\
**Last updated:** [August 13, 2010, 9:45am UTC](https://www.ruby-forum.com/t/merb-configuration-options-in-rails3/193039 "2010-08-13T09:45:25Z")

</div>

Hey all, I’ve used Rails v1 for a little while before switching to Merb, then coming back again for rails3. While using merb, I got really comfortable using the config files to store configuration directives that I …

---

## [ORM Designer and Ruby ORM](https://www.ruby-forum.com/t/orm-designer-and-ruby-orm/193196)

<div class="topic-metadata">

**Author:** [@ludekvodicka](https://www.ruby-forum.com/u/ludekvodicka)\
**Replies:** 3\
**Last updated:** [August 13, 2010, 9:01am UTC](https://www.ruby-forum.com/t/orm-designer-and-ruby-orm/193196 "2010-08-13T09:01:52Z")

</div>

Hello, My name is Ludek Vodicka and I’m the main developer of ORM Designer tool (http://www.orm-designer.com). During last months several people asked us if we could create a support for RoR ORM in ORM Designer. Toda…

---

## [Reports in rails app](https://www.ruby-forum.com/t/reports-in-rails-app/193211)

<div class="topic-metadata">

**Author:** [@jarl](https://www.ruby-forum.com/u/jarl)\
**Replies:** 0\
**Last updated:** [August 13, 2010, 8:19am UTC](https://www.ruby-forum.com/t/reports-in-rails-app/193211 "2010-08-13T08:19:57Z")

</div>

Hi. I am looking for some reporting library for rails. Does anyone have experience with such libraries, until now I have found Ruport (Ruby reports) (http://www.rubyreports.org/) reportable (GitHub - saulabs/reporta…

---

## [Zxcvbnm](https://www.ruby-forum.com/t/zxcvbnm/197330)

<div class="topic-metadata">

**Author:** [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Replies:** 0\
**Last updated:** [August 13, 2010, 7:38am UTC](https://www.ruby-forum.com/t/zxcvbnm/197330 "2010-08-13T07:38:46Z")

</div>

class LoginController \< ApplicationController def addprod @category=Cattab1.find(:all) @product=Prodtab.find(:all) @i=0 @checkvalue="" end def login @logincheck =Login.new @prodcheck=Prodtab.new if(session\[:log…

---

## [Rails 3: perform controller action upon selecting menu item (UJS?)](https://www.ruby-forum.com/t/rails-3-perform-controller-action-upon-selecting-menu-item-ujs/188438)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [August 13, 2010, 3:47am UTC](https://www.ruby-forum.com/t/rails-3-perform-controller-action-upon-selecting-menu-item-ujs/188438 "2010-08-13T03:47:42Z")

</div>

In Rails 3, I have a form that has a menu on it. I would like to render an area containing text fields within the form differently depending on what’s selected in the menu. Prior to Rails 3, one way it appears I coul…

---

## [Rake db:create doesn't create all databases?](https://www.ruby-forum.com/t/rake-db-create-doesnt-create-all-databases/193198)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 1\
**Last updated:** [August 13, 2010, 12:01am UTC](https://www.ruby-forum.com/t/rake-db-create-doesnt-create-all-databases/193198 "2010-08-13T00:01:30Z")

</div>

I was trying to create a test case in Rails 3.0 RC2 for an entirely separate question about connecting to external databases via establish\_connection, but ran into a problem with rake db:create. In short, “rake db:cre…

---

## [Rails + Firebird 2.1.x](https://www.ruby-forum.com/t/rails-firebird-2-1-x/162934)

<div class="topic-metadata">

**Author:** [@Fidel\_V](https://www.ruby-forum.com/u/Fidel_V)\
**Replies:** 2\
**Last updated:** [August 12, 2010, 10:33pm UTC](https://www.ruby-forum.com/t/rails-firebird-2-1-x/162934 "2010-08-12T22:33:25Z")

</div>

Hi all, I have played with JRuby on Rails in the past and managed to make it work with Firebird. Although migrations did not work, I managed to do everything manually and it worked. Now, I am working with Ruby on Rai…

---

## [How to customize config/database.yml](https://www.ruby-forum.com/t/how-to-customize-config-database-yml/193188)

<div class="topic-metadata">

**Author:** [@fearless\_fool](https://www.ruby-forum.com/u/fearless_fool)\
**Replies:** 2\
**Last updated:** [August 12, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/how-to-customize-config-database-yml/193188 "2010-08-12T20:58:33Z")

</div>

Short form: What’s the best way to customize my environment so “rails new …” uses a custom template rather than the default? Long form: Every time I create a new Rails project, the first thing I do is edit config/data…

---

## [Session](https://www.ruby-forum.com/t/session/193186)

<div class="topic-metadata">

**Author:** [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Replies:** 2\
**Last updated:** [August 12, 2010, 7:52pm UTC](https://www.ruby-forum.com/t/session/193186 "2010-08-12T19:52:15Z")

</div>

I tried to understand what a “session” means in Ruby on Rails, and found this site: But, really, I couldn’t get the idea well yet. Can you just explain what “session” means mire further? Thanks.

---

## [User Authentication plugin](https://www.ruby-forum.com/t/user-authentication-plugin/193167)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 4\
**Last updated:** [August 12, 2010, 7:48pm UTC](https://www.ruby-forum.com/t/user-authentication-plugin/193167 "2010-08-12T19:48:16Z")

</div>

Hi, I have to start a new application. Can anyone tell me whether should I use “Restful Authentication” or “Authlogic”? Thanks, Mike

---

## [Gruff: In line graph I need lables at every dots](https://www.ruby-forum.com/t/gruff-in-line-graph-i-need-lables-at-every-dots/193173)

<div class="topic-metadata">

**Author:** [@venkat\_ruby](https://www.ruby-forum.com/u/venkat_ruby)\
**Replies:** 1\
**Last updated:** [August 12, 2010, 6:32pm UTC](https://www.ruby-forum.com/t/gruff-in-line-graph-i-need-lables-at-every-dots/193173 "2010-08-12T18:32:10Z")

</div>

I am implementing Line graph. I want to have labels just above every dots inside graph. Please help me to implement. require ‘rubygems’ require ‘gruff’ graph = Gruff::Line.new(“594x384”) graph.theme = { :marker\_col…

---

## [Use custom I18n messages in a model validation](https://www.ruby-forum.com/t/use-custom-i18n-messages-in-a-model-validation/193166)

<div class="topic-metadata">

**Author:** [@peter](https://www.ruby-forum.com/u/peter)\
**Replies:** 2\
**Last updated:** [August 12, 2010, 5:34pm UTC](https://www.ruby-forum.com/t/use-custom-i18n-messages-in-a-model-validation/193166 "2010-08-12T17:34:48Z")

</div>

I would like to show custom translated error messages (based on the locale in the URL) for my validations. I have to following: validates :phone, :format =\> { :with =\> /^(0{2}|+)/, :message =\> I18n.t(‘validation.need\_…

---

## [ActiveRecord errors ... Best way to rescue a live web application?](https://www.ruby-forum.com/t/activerecord-errors-best-way-to-rescue-a-live-web-application/193143)

<div class="topic-metadata">

**Author:** [@slindsey3000](https://www.ruby-forum.com/u/slindsey3000)\
**Replies:** 5\
**Last updated:** [August 12, 2010, 5:21pm UTC](https://www.ruby-forum.com/t/activerecord-errors-best-way-to-rescue-a-live-web-application/193143 "2010-08-12T17:21:55Z")

</div>

Hi all, I have some issues when a link is clicked twice quickly that deletes an ActiveRecord row. All I really want to do is set up some universal catch that will redirect all application errors to index. Best way? …

---

## [Validation problem](https://www.ruby-forum.com/t/validation-problem/192947)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 18\
**Last updated:** [August 12, 2010, 4:35pm UTC](https://www.ruby-forum.com/t/validation-problem/192947 "2010-08-12T16:35:40Z")

</div>

Hi All, I’ve got an Expense model as follows: class Expense \< ActiveRecord::Base belongs\_to :vendor def validate\_on\_create unless params\[“expense”\]\[“vendor\_id”\] != “0” # \<= Line 5 errors.add(“A vendor must be sel…

---

## [Problem in l18n.rb file](https://www.ruby-forum.com/t/problem-in-l18n-rb-file/193180)

<div class="topic-metadata">

**Author:** [@pravin\_mishra](https://www.ruby-forum.com/u/pravin_mishra)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 4:25pm UTC](https://www.ruby-forum.com/t/problem-in-l18n-rb-file/193180 "2010-08-12T16:25:42Z")

</div>

i am following Agil web development tutorial of shopping card when i had created 18n.rb file in config/initializers folder from then my server is not running What problem is going on i am recognizing. When I am removi…

---

## [Controller syntax](https://www.ruby-forum.com/t/controller-syntax/193129)

<div class="topic-metadata">

**Author:** [@Nathan\_Kirk](https://www.ruby-forum.com/u/Nathan_Kirk)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/controller-syntax/193129 "2010-08-12T16:22:16Z")

</div>

why is this required: def new @post = Post.find(params\[:post\_id\]) @comment = @post.comments.build end instead of: def new @comment = Post.find(params\[:post\_id\]).comments.build end is the 2nd style possible? If n…

---

## [Background Job](https://www.ruby-forum.com/t/background-job/174606)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 5\
**Last updated:** [August 12, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/background-job/174606 "2010-08-12T16:18:40Z")

</div>

Hi, Is the plugin Background Job still a good solution for someone who wants an easy way to manage serial task processing?

---

## [What's with the snowman?](https://www.ruby-forum.com/t/whats-with-the-snowman/193120)

<div class="topic-metadata">

**Author:** [@Mirek\_Rusin](https://www.ruby-forum.com/u/Mirek_Rusin)\
**Replies:** 7\
**Last updated:** [August 12, 2010, 4:18pm UTC](https://www.ruby-forum.com/t/whats-with-the-snowman/193120 "2010-08-12T16:18:32Z")

</div>

what’s with the snowman in forms? mirek rusin

---

## [Test Database Empty after "rake test"?](https://www.ruby-forum.com/t/test-database-empty-after-rake-test/192872)

<div class="topic-metadata">

**Author:** [@cojones](https://www.ruby-forum.com/u/cojones)\
**Replies:** 3\
**Last updated:** [August 12, 2010, 11:41am UTC](https://www.ruby-forum.com/t/test-database-empty-after-rake-test/192872 "2010-08-12T11:41:13Z")

</div>

Hey, can somebody tell me why my test database is always empty after I run “rake test” but not after I test single test files? My rake db:seed for the test database takes like 6 minutes and I don’t really wanna reseed …

---

## [\[Rails 3\] Routing Error ... but the route is open ... (not the 66 !)](https://www.ruby-forum.com/t/rails-3-routing-error-but-the-route-is-open-not-the-66/193165)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 10:19am UTC](https://www.ruby-forum.com/t/rails-3-routing-error-but-the-route-is-open-not-the-66/193165 "2010-08-12T10:19:49Z")

</div>

I have in my routes.rb (I am using Devise authentification …) devise\_for :users, :singular =\> :user, :path =\> :user as :user do get “user/changeEmail”, :to =\> “user/ credentials#change\_email”, :as =\> :user\_changeEma…

---

## [Problem in l18n.rb file](https://www.ruby-forum.com/t/problem-in-l18n-rb-file/193159)

<div class="topic-metadata">

**Author:** [@pravin\_mishra](https://www.ruby-forum.com/u/pravin_mishra)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 9:38am UTC](https://www.ruby-forum.com/t/problem-in-l18n-rb-file/193159 "2010-08-12T09:38:49Z")

</div>

i am following Agil web development tutorial of shopping card when i had created 18n.rb file in config/initializers folder from then my server is not running What problem is going on i am recognizing. When I am removi…

---

## [Where can I get up to date instantrails?](https://www.ruby-forum.com/t/where-can-i-get-up-to-date-instantrails/193000)

<div class="topic-metadata">

**Author:** [@laguna53](https://www.ruby-forum.com/u/laguna53)\
**Replies:** 9\
**Last updated:** [August 12, 2010, 8:11am UTC](https://www.ruby-forum.com/t/where-can-i-get-up-to-date-instantrails/193000 "2010-08-12T08:11:52Z")

</div>

Hi, can someone please tell me where can I find up-to-date instantrails (with rails 2.38, ruby 1.8.7) … ? Thanks for any help Dani

---

## [Named routes don't load in plugin](https://www.ruby-forum.com/t/named-routes-dont-load-in-plugin/193149)

<div class="topic-metadata">

**Author:** [@Rodrigo\_MendonSSSSa](https://www.ruby-forum.com/u/Rodrigo_MendonSSSSa)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 5:16am UTC](https://www.ruby-forum.com/t/named-routes-dont-load-in-plugin/193149 "2010-08-12T05:16:01Z")

</div>

Hi all, I have one plugin for a datagrid. This plugin have one module wich use json with ajax. The poblem: When i call the method by ajax and generate data to compose datagrid i tried use my named route post\_url, but…

---

## [Rails 3- Could not find generator session](https://www.ruby-forum.com/t/rails-3-could-not-find-generator-session/193139)

<div class="topic-metadata">

**Author:** [@davidz101](https://www.ruby-forum.com/u/davidz101)\
**Replies:** 2\
**Last updated:** [August 12, 2010, 3:28am UTC](https://www.ruby-forum.com/t/rails-3-could-not-find-generator-session/193139 "2010-08-12T03:28:20Z")

</div>

Hello, I am trying to use Authlogic in Rails 3. when I run " rails g session admin\_session" to create the session, I get- ====================== “Could not find generator session.” I’m using Rail 3 RC and working of…

---

## [Hash.from\_xml does not handle attributes as of rails3 beta4](https://www.ruby-forum.com/t/hash-from-xml-does-not-handle-attributes-as-of-rails3-beta4/193136)

<div class="topic-metadata">

**Author:** [@Tim\_U](https://www.ruby-forum.com/u/Tim_U)\
**Replies:** 0\
**Last updated:** [August 12, 2010, 1:49am UTC](https://www.ruby-forum.com/t/hash-from-xml-does-not-handle-attributes-as-of-rails3-beta4/193136 "2010-08-12T01:49:25Z")

</div>

Can anybody confirm whether or not this has been fixed in the rc releases?

---

## [Auto-increment column scoped to another column](https://www.ruby-forum.com/t/auto-increment-column-scoped-to-another-column/192951)

<div class="topic-metadata">

**Author:** [@yankees26](https://www.ruby-forum.com/u/yankees26)\
**Replies:** 2\
**Last updated:** [August 11, 2010, 10:36pm UTC](https://www.ruby-forum.com/t/auto-increment-column-scoped-to-another-column/192951 "2010-08-11T22:36:12Z")

</div>

Hi, I have one field that needs to be incremented automatically, but be scoped to another column. So it should increment based on the last value of the previous row with the same value of the scoped column. I’m not t…

---

## [Localhost:3000/](https://www.ruby-forum.com/t/localhost-3000/192927)

<div class="topic-metadata">

**Author:** [@Ainar\_A](https://www.ruby-forum.com/u/Ainar_A)\
**Replies:** 2\
**Last updated:** [August 11, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/localhost-3000/192927 "2010-08-11T22:35:37Z")

</div>

Hi, I’m struggling with logging in to my app. Can somebody tell me how to do twitter like login? The idea is following -\> when the user is logged out, browser shows localhost:3000/ and on main page is shown websites d…

---

## [\[JOB\] Ruby on Rails Developer - Chicago, IL](https://www.ruby-forum.com/t/job-ruby-on-rails-developer-chicago-il/193131)

<div class="topic-metadata">

**Author:** [@Tallience](https://www.ruby-forum.com/u/Tallience)\
**Replies:** 0\
**Last updated:** [August 11, 2010, 10:00pm UTC](https://www.ruby-forum.com/t/job-ruby-on-rails-developer-chicago-il/193131 "2010-08-11T22:00:29Z")

</div>

Hi, We are looking for a junior to mid-level Ruby on Rails Developer in Chicago, IL. No formal experience necessary, just someone with a passion for RoR and the desire to write Ruby every day. If interested, please …

---

## [Understanding this model relationship (possibly a HABTM and a belongs\_to ?)](https://www.ruby-forum.com/t/understanding-this-model-relationship-possibly-a-habtm-and-a-belongs-to/193096)

<div class="topic-metadata">

**Author:** [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Replies:** 3\
**Last updated:** [August 11, 2010, 9:23pm UTC](https://www.ruby-forum.com/t/understanding-this-model-relationship-possibly-a-habtm-and-a-belongs-to/193096 "2010-08-11T21:23:37Z")

</div>

I’m pretty newb and trying to get a handle on setting up a particular relationship with my models. For sake of this discussion (real app isn’t with tools but for illustration, using tools): To start with (more compl…

---

## [My final year project](https://www.ruby-forum.com/t/my-final-year-project/193113)

<div class="topic-metadata">

**Author:** [@psyionx](https://www.ruby-forum.com/u/psyionx)\
**Replies:** 8\
**Last updated:** [August 11, 2010, 7:06pm UTC](https://www.ruby-forum.com/t/my-final-year-project/193113 "2010-08-11T19:06:03Z")

</div>

Hallo there, i’m currently doing my final year project and currently in my final year and 2 more semesters to go in my local university. my lecturer told me that i can choose a language to build a web app on my own. s…

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

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