# Rails

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

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

---

## [Menu builder](https://www.ruby-forum.com/t/menu-builder/159366)

<div class="topic-metadata">

**Author:** [@marmolin](https://www.ruby-forum.com/u/marmolin)\
**Replies:** 0\
**Last updated:** [February 3, 2009, 10:00pm UTC](https://www.ruby-forum.com/t/menu-builder/159366 "2009-02-03T22:00:30Z")

</div>

Anyone that knows if there is a menu builder or menu engine for rails that creates drop down menus and that is compatible with rails 2.2.2 I am really looking for one that I can integrate withe the i18n features in ra…

---

## [Installing Rails 1.2.6 gem doesn't pull dependencies](https://www.ruby-forum.com/t/installing-rails-1-2-6-gem-doesnt-pull-dependencies/159355)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 3\
**Last updated:** [February 3, 2009, 9:49pm UTC](https://www.ruby-forum.com/t/installing-rails-1-2-6-gem-doesnt-pull-dependencies/159355 "2009-02-03T21:49:39Z")

</div>

I recently had a need to install the Rails 1.2.6 gem (for support reasons). When I did it, the dependencies were not installed automatically, so I had to find and get the correct versions of actinomailer, actionpack,…

---

## [Does ActiveScaffold support multiple joins? (i.e. in the ":joins =\> ..." part of a find)](https://www.ruby-forum.com/t/does-activescaffold-support-multiple-joins-i-e-in-the-joins-part-of-a-find/159318)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/does-activescaffold-support-multiple-joins-i-e-in-the-joins-part-of-a-find/159318 "2009-02-03T21:43:52Z")

</div>

Hi, Does ActiveScaffold support multiple joins? (i.e. in the “:joins =\> …” part of a find). Can’t quite seem to see how to make it work (e.g. passing an array in for the :joins parameter didn’t seem to work). I…

---

## [Fixed set of values for an attribute and migrations](https://www.ruby-forum.com/t/fixed-set-of-values-for-an-attribute-and-migrations/159331)

<div class="topic-metadata">

**Author:** [@kinunt](https://www.ruby-forum.com/u/kinunt)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 9:21pm UTC](https://www.ruby-forum.com/t/fixed-set-of-values-for-an-attribute-and-migrations/159331 "2009-02-03T21:21:59Z")

</div>

Hi, I have a model with three attributes that could be a fixed set of different values. Each attribute does not have sufficient entity to be a class (in my opinion) and I prefer to not to create classes in order to s…

---

## [Validation - Credit Card Validation](https://www.ruby-forum.com/t/validation-credit-card-validation/159295)

<div class="topic-metadata">

**Author:** [@cyrus](https://www.ruby-forum.com/u/cyrus)\
**Replies:** 6\
**Last updated:** [February 3, 2009, 9:17pm UTC](https://www.ruby-forum.com/t/validation-credit-card-validation/159295 "2009-02-03T21:17:17Z")

</div>

Hello Everyone any one know how to validate credit card information in rails ? please help me thanks in advance

---

## [Selection box update](https://www.ruby-forum.com/t/selection-box-update/159231)

<div class="topic-metadata">

**Author:** [@Tarscher](https://www.ruby-forum.com/u/Tarscher)\
**Replies:** 3\
**Last updated:** [February 3, 2009, 9:09pm UTC](https://www.ruby-forum.com/t/selection-box-update/159231 "2009-02-03T21:09:01Z")

</div>

Hi all, Depending on the selection in a selection box I need to render a partial. I want to do this without calling the server. I think I need to use link\_to\_function. The problem is that I dont see how to implement…

---

## [How do I make an API for my rails app?](https://www.ruby-forum.com/t/how-do-i-make-an-api-for-my-rails-app/159280)

<div class="topic-metadata">

**Author:** [@bagadoughnuts](https://www.ruby-forum.com/u/bagadoughnuts)\
**Replies:** 8\
**Last updated:** [February 3, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/how-do-i-make-an-api-for-my-rails-app/159280 "2009-02-03T20:05:57Z")

</div>

Hi all, I’m currently close to releasing my first rails app. Many thanks to the countless people that have helped me with my questions on this forum. Couldn’t have done it without you. So being close to release I sta…

---

## [Csv import - encoding problem](https://www.ruby-forum.com/t/csv-import-encoding-problem/159317)

<div class="topic-metadata">

**Author:** [@bingobob](https://www.ruby-forum.com/u/bingobob)\
**Replies:** 4\
**Last updated:** [February 3, 2009, 7:36pm UTC](https://www.ruby-forum.com/t/csv-import-encoding-problem/159317 "2009-02-03T19:36:18Z")

</div>

I’m trying to load a CSV file into my rails app using a migration and FasterCSV and running into problems. I’ve had this working before when the CSV file has been saved out of excel, I’d like to do it with numbers now…

---

## [ActiveRecord problems after upgrade](https://www.ruby-forum.com/t/activerecord-problems-after-upgrade/159329)

<div class="topic-metadata">

**Author:** [@Kenneth\_D](https://www.ruby-forum.com/u/Kenneth_D)\
**Replies:** 3\
**Last updated:** [February 3, 2009, 7:33pm UTC](https://www.ruby-forum.com/t/activerecord-problems-after-upgrade/159329 "2009-02-03T19:33:57Z")

</div>

Hi I have a rather large project that uses ActiveRecord both with Rails, and separately in various scripts. All has been working well until I upgraded from version 2.0.2 to version 2.2.2. Now, ActiveRecord doesn’t …

---

## [Rails generator bug?](https://www.ruby-forum.com/t/rails-generator-bug/159338)

<div class="topic-metadata">

**Author:** [@kfl62](https://www.ruby-forum.com/u/kfl62)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 6:21pm UTC](https://www.ruby-forum.com/t/rails-generator-bug/159338 "2009-02-03T18:21:00Z")

</div>

As I mentioned in Passing args to generator - Rails - Ruby-Forum I can’t pass arguments to rails generator. After a couple hours I find a dirty hack def add\_options!(opt) … opt.on(“–option\_name”,“Some Text”) { |v| op…

---

## [Button\_to Problem](https://www.ruby-forum.com/t/button-to-problem/159319)

<div class="topic-metadata">

**Author:** [@gte351s](https://www.ruby-forum.com/u/gte351s)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/button-to-problem/159319 "2009-02-03T18:07:26Z")

</div>

I’m having a similar problem with button\_to and button\_to\_remote - I’m trying to set the action to submit through: \<%= button\_to ‘update’, { :action =\> “update”, :id =\> product.id } %\> Regardless, the button’s action …

---

## [Rails 2.3 problem](https://www.ruby-forum.com/t/rails-2-3-problem/159336)

<div class="topic-metadata">

**Author:** [@joopp](https://www.ruby-forum.com/u/joopp)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 5:43pm UTC](https://www.ruby-forum.com/t/rails-2-3-problem/159336 "2009-02-03T17:43:05Z")

</div>

When moving to Rails 2.3.0RC1 I get an error with concat!? I can’t figure it out. See the dump below: ActionView::TemplateError (You have a nil object when you didn’t expect it! You might have expected an instance of…

---

## [Assert\_select with count 0](https://www.ruby-forum.com/t/assert-select-with-count-0/159273)

<div class="topic-metadata">

**Author:** [@aawilson](https://www.ruby-forum.com/u/aawilson)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 5:13pm UTC](https://www.ruby-forum.com/t/assert-select-with-count-0/159273 "2009-02-03T17:13:21Z")

</div>

Hello, all. This is short and simple. I have this statement in a functional test: assert\_select ‘input’ do assert\_select “\[name=?\]”, {:count =\> 0,:text =\>/areas\[1\]/} end This assertion gives me the following: Fa…

---

## [Help on File](https://www.ruby-forum.com/t/help-on-file/159291)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 9\
**Last updated:** [February 3, 2009, 3:30pm UTC](https://www.ruby-forum.com/t/help-on-file/159291 "2009-02-03T15:30:32Z")

</div>

Hello… when i use below code to open a google page it works. But i have html file in my application folder.to open that file i tried this Code. When i click this, new window opens but i get routing Error like No…

---

## [Copy column table before save](https://www.ruby-forum.com/t/copy-column-table-before-save/159327)

<div class="topic-metadata">

**Author:** [@petan](https://www.ruby-forum.com/u/petan)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 2:59pm UTC](https://www.ruby-forum.com/t/copy-column-table-before-save/159327 "2009-02-03T14:59:23Z")

</div>

Hi, I would like to copy one column to another before it’s saved. For example: \<% form … %\> \<%= %\>f.text-field: about %\> \<%= f.text-field: price %\> \<% end %\> Could I copy price to another table column before it i…

---

## [Maxima and Ruby Integration](https://www.ruby-forum.com/t/maxima-and-ruby-integration/159069)

<div class="topic-metadata">

**Author:** [@indigoi](https://www.ruby-forum.com/u/indigoi)\
**Replies:** 9\
**Last updated:** [February 3, 2009, 2:36pm UTC](https://www.ruby-forum.com/t/maxima-and-ruby-integration/159069 "2009-02-03T14:36:25Z")

</div>

I’m looking to write a javascript heavy clientside program with a something serverside backend that connects to the free maxima math program. I have extensive knowledge of ruby on rails, so I would prefer to call Maxi…

---

## [Passing args to generator](https://www.ruby-forum.com/t/passing-args-to-generator/159307)

<div class="topic-metadata">

**Author:** [@kfl62](https://www.ruby-forum.com/u/kfl62)\
**Replies:** 1\
**Last updated:** [February 3, 2009, 2:22pm UTC](https://www.ruby-forum.com/t/passing-args-to-generator/159307 "2009-02-03T14:22:35Z")

</div>

I have some default\_options in generator and when I wish to change they value with --option\_name I get only logical true instead of string … default\_options :option\_name =\> “Some string” … def add\_options!(opt) opt…

---

## [Drop downs for new and edit](https://www.ruby-forum.com/t/drop-downs-for-new-and-edit/159325)

<div class="topic-metadata">

**Author:** [@qaswm](https://www.ruby-forum.com/u/qaswm)\
**Replies:** 7\
**Last updated:** [February 3, 2009, 2:03pm UTC](https://www.ruby-forum.com/t/drop-downs-for-new-and-edit/159325 "2009-02-03T14:03:38Z")

</div>

I have a drop down in my forms. Year Manufactured The value needs to be from 1970 – current year In the new form i am using the following code -- Select -- \<%= options\_from\_collection\_for\_select((1970..Time.now.year)…

---

## [Nested resources , forms and update](https://www.ruby-forum.com/t/nested-resources-forms-and-update/159314)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 1:32pm UTC](https://www.ruby-forum.com/t/nested-resources-forms-and-update/159314 "2009-02-03T13:32:36Z")

</div>

Hi I have nested resources i.e. projects which have many tasks and a task belongs to a project. In my project show view I show project info i.e. title and description and then list all the tasks associated with it. I…

---

## [Sphinx Running problem](https://www.ruby-forum.com/t/sphinx-running-problem/159323)

<div class="topic-metadata">

**Author:** [@chirag\_shah](https://www.ruby-forum.com/u/chirag_shah)\
**Replies:** 0\
**Last updated:** [February 3, 2009, 1:18pm UTC](https://www.ruby-forum.com/t/sphinx-running-problem/159323 "2009-02-03T13:18:11Z")

</div>

Hi, I have windows PC.First, i had install sphinx-0.9.8-win32.zip. and then add sphinx as plugin.and set sphinx.yml file in config/sphinx.yml my sphinx.yml is as below config file:: config/#{environment}.sphinx.…

---

## [Help needed regarding Yahoo autocomplete UI in rails](https://www.ruby-forum.com/t/help-needed-regarding-yahoo-autocomplete-ui-in-rails/159320)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 0\
**Last updated:** [February 3, 2009, 1:03pm UTC](https://www.ruby-forum.com/t/help-needed-regarding-yahoo-autocomplete-ui-in-rails/159320 "2009-02-03T13:03:57Z")

</div>

HI guys, I have a tag field in my rails app. I want to add auto complete option in tag input field by yahoo UI. I have googled a lot but nothing found workable. Here is the best one that I found from net but by proty…

---

## [Controller design for app with different user types](https://www.ruby-forum.com/t/controller-design-for-app-with-different-user-types/159246)

<div class="topic-metadata">

**Author:** [@joey-alva](https://www.ruby-forum.com/u/joey-alva)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/controller-design-for-app-with-different-user-types/159246 "2009-02-03T12:59:56Z")

</div>

Hi, I am trying to implement an application where there are different types of users (about 5-6). The privileges of each type of user varies pretty drastically and hence when each logs into the application, each will …

---

## [Nested has\_many :through - does Rails supported this at the moment? it seems not](https://www.ruby-forum.com/t/nested-has-many-through-does-rails-supported-this-at-the-moment-it-seems-not/159315)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 2\
**Last updated:** [February 3, 2009, 12:53pm UTC](https://www.ruby-forum.com/t/nested-has-many-through-does-rails-supported-this-at-the-moment-it-seems-not/159315 "2009-02-03T12:53:22Z")

</div>

Hi, Can someone clarify whether Rails current support nested has\_many, :through? For example: has\_many :business\_items, :through =\> :ai\_allocations has\_many :bi\_allocations, :through =\> :business\_items # 2nd one …

---

## [ActiveRecord can validates "select" querys?](https://www.ruby-forum.com/t/activerecord-can-validates-select-querys/159234)

<div class="topic-metadata">

**Author:** [@liberte](https://www.ruby-forum.com/u/liberte)\
**Replies:** 8\
**Last updated:** [February 3, 2009, 12:13pm UTC](https://www.ruby-forum.com/t/activerecord-can-validates-select-querys/159234 "2009-02-03T12:13:20Z")

</div>

I have an application that makes a render inline, and another in XML based on data from an URL. I need to validate the data before passing it over to SQL, and I would like to receive the errors in the returned array, …

---

## [File Iteration](https://www.ruby-forum.com/t/file-iteration/159309)

<div class="topic-metadata">

**Author:** [@newb](https://www.ruby-forum.com/u/newb)\
**Replies:** 3\
**Last updated:** [February 3, 2009, 12:06pm UTC](https://www.ruby-forum.com/t/file-iteration/159309 "2009-02-03T12:06:44Z")

</div>

Hi all… i have folder named test in my application’s public folder . i want to iterate that folder named test which is in public folder. for that i tried this code it gives me error like Errno::ENOENT in Chat logCon…

---

## [From : Newb! {ADVICE\_NEEDED}](https://www.ruby-forum.com/t/from-newb-advice-needed/159293)

<div class="topic-metadata">

**Author:** [@cryxpride](https://www.ruby-forum.com/u/cryxpride)\
**Replies:** 3\
**Last updated:** [February 3, 2009, 11:14am UTC](https://www.ruby-forum.com/t/from-newb-advice-needed/159293 "2009-02-03T11:14:55Z")

</div>

Hi, I’m new on Ruby. Practically started a week ago and right now I’m wondering whether or not I can use ruby to design my web page on blogger.com? If not, I think the only alternative left would be designing a web pa…

---

## [Ruby on Rails Day @ JAX India 2009 Conference](https://www.ruby-forum.com/t/ruby-on-rails-day-jax-india-2009-conference/159303)

<div class="topic-metadata">

**Author:** [@2009jax](https://www.ruby-forum.com/u/2009jax)\
**Replies:** 0\
**Last updated:** [February 3, 2009, 10:41am UTC](https://www.ruby-forum.com/t/ruby-on-rails-day-jax-india-2009-conference/159303 "2009-02-03T10:41:20Z")

</div>

This year at the JAX India 2009 conference, sda-india.com promises to stage some JAX India Specials that have never been thought of before. Introducing for the very first time at JAX India 2009 is JAX University Day a…

---

## [How to get datetime\_select params?](https://www.ruby-forum.com/t/how-to-get-datetime-select-params/73669)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 3\
**Last updated:** [February 3, 2009, 9:56am UTC](https://www.ruby-forum.com/t/how-to-get-datetime-select-params/73669 "2009-02-03T09:56:14Z")

</div>

Hey all, I do a: \<%= datetime\_select ‘user’, ‘registered\_after’ %\> but then when I try to do @dateregister = params\[:user\]\[:datetime\_select\] it’s nil. I know it has to do something with multi-parameter assignment b…

---

## [Rails 2.2 Integration tests cookie store](https://www.ruby-forum.com/t/rails-2-2-integration-tests-cookie-store/153918)

<div class="topic-metadata">

**Author:** [@darren](https://www.ruby-forum.com/u/darren)\
**Replies:** 3\
**Last updated:** [February 3, 2009, 9:16am UTC](https://www.ruby-forum.com/t/rails-2-2-integration-tests-cookie-store/153918 "2009-02-03T09:16:09Z")

</div>

I’ve upgraded an existing application from 2.1 to 2.2.2. All of the integration tests failed, complaining about there being no ‘secret’ defined in the session\_store configuration options. There isn’t a secret define…

---

## [jQuery and rails events](https://www.ruby-forum.com/t/jquery-and-rails-events/159294)

<div class="topic-metadata">

**Author:** [@sa125](https://www.ruby-forum.com/u/sa125)\
**Replies:** 0\
**Last updated:** [February 3, 2009, 8:51am UTC](https://www.ruby-forum.com/t/jquery-and-rails-events/159294 "2009-02-03T08:51:16Z")

</div>

I read DHH’s post on using various js libraries with rails, and thought I’d give it a try with jQuery (http://loudthinking.com/posts/32). What I have is a page composed of various partials, and I’m trying to invoke jQ…

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

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