# Rails

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

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

---

## [View displays with no action](https://www.ruby-forum.com/t/view-displays-with-no-action/121233)

<div class="topic-metadata">

**Author:** [@doug](https://www.ruby-forum.com/u/doug)\
**Replies:** 6\
**Last updated:** [November 26, 2007, 3:47am UTC](https://www.ruby-forum.com/t/view-displays-with-no-action/121233 "2007-11-26T03:47:56Z")

</div>

I discovered this quite by accident. I have a single controller setup and it is named, ‘main’. If I add a view, /app/views/main/ test1.rhtml, that view is displayed via the URL host/main/test1 even though there is n…

---

## [Issue with params.merge](https://www.ruby-forum.com/t/issue-with-params-merge/120916)

<div class="topic-metadata">

**Author:** [@d2kagw](https://www.ruby-forum.com/u/d2kagw)\
**Replies:** 2\
**Last updated:** [November 26, 2007, 2:45am UTC](https://www.ruby-forum.com/t/issue-with-params-merge/120916 "2007-11-26T02:45:22Z")

</div>

This is going to be difficult to explain so please let me know if further elaboration is needed. I have a button that does a remote call as such (from ‘list.rhtml’): \<% params\[:old\_meetings\] ||= ‘hide’ %\> \<% if par…

---

## [Reflection - Defined methods in controller](https://www.ruby-forum.com/t/reflection-defined-methods-in-controller/121241)

<div class="topic-metadata">

**Author:** [@galeal](https://www.ruby-forum.com/u/galeal)\
**Replies:** 3\
**Last updated:** [November 26, 2007, 2:39am UTC](https://www.ruby-forum.com/t/reflection-defined-methods-in-controller/121241 "2007-11-26T02:39:05Z")

</div>

I’m trying to get a list of the methods that I’ve defined in a controller. But, “controller.methods” is giving me ALL the methods of the controller. Is there a way to get the only the methods that I’ve defined? Cheer…

---

## [How make AR attributes custom classes?](https://www.ruby-forum.com/t/how-make-ar-attributes-custom-classes/120744)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 10\
**Last updated:** [November 26, 2007, 2:13am UTC](https://www.ruby-forum.com/t/how-make-ar-attributes-custom-classes/120744 "2007-11-26T02:13:49Z")

</div>

In an ActiveRecord model, I want to cast some attributes as specific custom classes. Example, if I store packed numbers for something like a phone number, I want them cast as PhoneNumber objects within ActiveRecord. M…

---

## [Tabs](https://www.ruby-forum.com/t/tabs/121232)

<div class="topic-metadata">

**Author:** [@Michael\_Darmousseh](https://www.ruby-forum.com/u/Michael_Darmousseh)\
**Replies:** 1\
**Last updated:** [November 26, 2007, 1:20am UTC](https://www.ruby-forum.com/t/tabs/121232 "2007-11-26T01:20:01Z")

</div>

Does anyone have any samples of tabs using rails. Thanks -Michael Darmousseh http://lycus.org

---

## [Setting IM status messages](https://www.ruby-forum.com/t/setting-im-status-messages/121200)

<div class="topic-metadata">

**Author:** [@xgamerx](https://www.ruby-forum.com/u/xgamerx)\
**Replies:** 3\
**Last updated:** [November 26, 2007, 12:30am UTC](https://www.ruby-forum.com/t/setting-im-status-messages/121200 "2007-11-26T00:30:04Z")

</div>

I am trying to write a rails application where I can set the status of a person’s AIM account based on what they type in my site. So they should be able to browse to my site, and then type in their status (and usernam…

---

## [\[ANN\] Instant Rails replaced by the BitNami RubyStack](https://www.ruby-forum.com/t/ann-instant-rails-replaced-by-the-bitnami-rubystack/121049)

<div class="topic-metadata">

**Author:** [@Curt\_SWorkS\_Hibbs](https://www.ruby-forum.com/u/Curt_SWorkS_Hibbs)\
**Replies:** 5\
**Last updated:** [November 26, 2007, 12:17am UTC](https://www.ruby-forum.com/t/ann-instant-rails-replaced-by-the-bitnami-rubystack/121049 "2007-11-26T00:17:08Z")

</div>

no longer have the time to maintain and support Instant Rails, and there will be no further releases. However, Instant Rails is being replaced by the BitNami RubyStack, which you can find here: Ruby Cloud Hosting, Ru…

---

## [Action alias](https://www.ruby-forum.com/t/action-alias/120473)

<div class="topic-metadata">

**Author:** [@cujigar](https://www.ruby-forum.com/u/cujigar)\
**Replies:** 4\
**Last updated:** [November 26, 2007, 12:15am UTC](https://www.ruby-forum.com/t/action-alias/120473 "2007-11-26T00:15:57Z")

</div>

This is my current ActionController code. def index list render :action =\> ‘list’ end def list end I wished this would work alias index list def list end But the problem is rails tries to render index.rhtml, i…

---

## [Nested resources on shared host w/rails 1.2.3](https://www.ruby-forum.com/t/nested-resources-on-shared-host-w-rails-1-2-3/121237)

<div class="topic-metadata">

**Author:** [@rajo](https://www.ruby-forum.com/u/rajo)\
**Replies:** 1\
**Last updated:** [November 25, 2007, 10:53pm UTC](https://www.ruby-forum.com/t/nested-resources-on-shared-host-w-rails-1-2-3/121237 "2007-11-25T22:53:25Z")

</div>

Hello I am currently trying to deploy a rails app to a shared host running rails 1.2.3 with apache and cgi (no fcgi access). The hosting service is icdsoft. I made a demo rails app and imported my files where needed…

---

## [How to pin down location of views/shared directory?](https://www.ruby-forum.com/t/how-to-pin-down-location-of-views-shared-directory/121038)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 4\
**Last updated:** [November 25, 2007, 10:28pm UTC](https://www.ruby-forum.com/t/how-to-pin-down-location-of-views-shared-directory/121038 "2007-11-25T22:28:35Z")

</div>

My app has a header & footer I want common to each section. They live in app/views/shared/\_header.rhtml & \_footer.rhtml. They are referenced by app/views/layouts/application.rhtml as one would expect: \<%= rend…

---

## [A/B split testing in rails?](https://www.ruby-forum.com/t/a-b-split-testing-in-rails/121235)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [November 25, 2007, 9:30pm UTC](https://www.ruby-forum.com/t/a-b-split-testing-in-rails/121235 "2007-11-25T21:30:12Z")

</div>

What’s the best practice around setting up an A/B split test in rails? Initially, I’d like to test the effectiveness of different view elements, but ultimately would like to also split test business logic, so the spl…

---

## [ActiveACL and "already initialized constant OPTIONS"](https://www.ruby-forum.com/t/activeacl-and-already-initialized-constant-options/120592)

<div class="topic-metadata">

**Author:** [@psamathos](https://www.ruby-forum.com/u/psamathos)\
**Replies:** 2\
**Last updated:** [November 25, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/activeacl-and-already-initialized-constant-options/120592 "2007-11-25T20:57:24Z")

</div>

Hi, I’ve been trying to get ActiveACL to work with my new project, and as the title suggest I’m stuck. I get the following error: /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:15: warning: alread…

---

## [Overwrite\_params](https://www.ruby-forum.com/t/overwrite-params/121226)

<div class="topic-metadata">

**Author:** [@ajitonrails](https://www.ruby-forum.com/u/ajitonrails)\
**Replies:** 2\
**Last updated:** [November 25, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/overwrite-params/121226 "2007-11-25T20:14:38Z")

</div>

Hello all I have very strange issue with my code. i have a select tag, onchange it is calling a function. but i want to pass selected value from drop down in that function. But that function is already performing few…

---

## [Insert into database with one instruction](https://www.ruby-forum.com/t/insert-into-database-with-one-instruction/121225)

<div class="topic-metadata">

**Author:** [@jney](https://www.ruby-forum.com/u/jney)\
**Replies:** 1\
**Last updated:** [November 25, 2007, 6:54pm UTC](https://www.ruby-forum.com/t/insert-into-database-with-one-instruction/121225 "2007-11-25T18:54:52Z")

</div>

hello, i’d like to insert into a table with a rails function several records and avoid a loop with Object.create. Something corresponding to SQL instruction like it : INSERT INTO animals(id, value) VALUES(1, ‘dog’), …

---

## [Capistrano in InstaRails bombs?](https://www.ruby-forum.com/t/capistrano-in-instarails-bombs/120666)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 1\
**Last updated:** [November 25, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/capistrano-in-instarails-bombs/120666 "2007-11-25T18:40:47Z")

</div>

Following the book, I try: cap --apply-to C:\\CapPlanner\\trunk\\Source capplanner And get in reply: C:/InstantRails/ruby/lib/ruby/1.8/optparse.rb:1443:in complete': invalid option: --apply-to (OptionParser::InvalidOptio…

---

## [Image\_tag is missing "class=" attribute--how can I replace javscript behavior?](https://www.ruby-forum.com/t/image-tag-is-missing-class-attribute-how-can-i-replace-javscript-behavior/121197)

<div class="topic-metadata">

**Author:** [@tbcox23](https://www.ruby-forum.com/u/tbcox23)\
**Replies:** 4\
**Last updated:** [November 25, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/image-tag-is-missing-class-attribute-how-can-i-replace-javscript-behavior/121197 "2007-11-25T17:58:05Z")

</div>

(Apologies if a previous message was posted inadvertently. My finger slipped on the enter key.) While converting a static HTML prototype to Rails I changed a bunch of alinks from this: to the more Railsesque constr…

---

## [Can someone please tell me why these test are failing?](https://www.ruby-forum.com/t/can-someone-please-tell-me-why-these-test-are-failing/121149)

<div class="topic-metadata">

**Author:** [@specpro](https://www.ruby-forum.com/u/specpro)\
**Replies:** 7\
**Last updated:** [November 25, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/can-someone-please-tell-me-why-these-test-are-failing/121149 "2007-11-25T17:22:17Z")

</div>

Failure: test\_login\_failure\_with\_nonexistent\_screen\_name(UserControllerTest) \[./ test/functional/user\_controller\_test.rb:140\]: \<“Invalid screen name/password combination”\> expected but was . Failure: test\_login…

---

## [How to create a custom validator](https://www.ruby-forum.com/t/how-to-create-a-custom-validator/121160)

<div class="topic-metadata">

**Author:** [@gabru](https://www.ruby-forum.com/u/gabru)\
**Replies:** 3\
**Last updated:** [November 25, 2007, 3:30pm UTC](https://www.ruby-forum.com/t/how-to-create-a-custom-validator/121160 "2007-11-25T15:30:48Z")

</div>

i was wondering how can i create my own custom validates\_ function. e.g. i am validating email adresses on a lot of places and would like to achieve the following class User validates\_email :email end does some has…

---

## [Preferred way to do paginate today?](https://www.ruby-forum.com/t/preferred-way-to-do-paginate-today/121124)

<div class="topic-metadata">

**Author:** [@rubynuby](https://www.ruby-forum.com/u/rubynuby)\
**Replies:** 3\
**Last updated:** [November 25, 2007, 11:57am UTC](https://www.ruby-forum.com/t/preferred-way-to-do-paginate-today/121124 "2007-11-25T11:57:40Z")

</div>

hi, what is the preferred way to do paginate now? It appears the built in paginate is deprecated, but maybe that was the “classic” paginate and the new one is better. Or is it will\_paginate, or something else? I a…

---

## [Sending whole rows of data from a form](https://www.ruby-forum.com/t/sending-whole-rows-of-data-from-a-form/120909)

<div class="topic-metadata">

**Author:** [@ehudros](https://www.ruby-forum.com/u/ehudros)\
**Replies:** 2\
**Last updated:** [November 25, 2007, 10:02am UTC](https://www.ruby-forum.com/t/sending-whole-rows-of-data-from-a-form/120909 "2007-11-25T10:02:29Z")

</div>

Hi everyone, I’m kind of banging my head at this for a while now… I have a 2 phase process in which a list of email addresses and names are retrieved from gmail (for example), displayed to the user, and then he check…

---

## [Search](https://www.ruby-forum.com/t/search/120889)

<div class="topic-metadata">

**Author:** [@joe](https://www.ruby-forum.com/u/joe)\
**Replies:** 4\
**Last updated:** [November 25, 2007, 9:18am UTC](https://www.ruby-forum.com/t/search/120889 "2007-11-25T09:18:03Z")

</div>

what will be the code for ‘search’ option in page and after that search result will be shown in next page

---

## [Undefined method 'act\_as\_tree'](https://www.ruby-forum.com/t/undefined-method-act-as-tree/121185)

<div class="topic-metadata">

**Author:** [@oren](https://www.ruby-forum.com/u/oren)\
**Replies:** 2\
**Last updated:** [November 25, 2007, 4:47am UTC](https://www.ruby-forum.com/t/undefined-method-act-as-tree/121185 "2007-11-25T04:47:02Z")

</div>

I have 2 models: topic model and post: class Topic \< ActiveRecord::Base has\_many :posts end class Post \< ActiveRecord::Base acts\_as\_tree :order=\>“body” belongs\_to :topic end and I have a view for creating new top…

---

## [Uninitialized constant RailsFCGIHandler](https://www.ruby-forum.com/t/uninitialized-constant-railsfcgihandler/70523)

<div class="topic-metadata">

**Author:** [@hpatoio](https://www.ruby-forum.com/u/hpatoio)\
**Replies:** 8\
**Last updated:** [November 25, 2007, 4:34am UTC](https://www.ruby-forum.com/t/uninitialized-constant-railsfcgihandler/70523 "2007-11-25T04:34:53Z")

</div>

Hello, I’m trying to switch to FastCGI. With CGI everything works, but after have done all the steps of the wiki here (http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntuDebianTestingAndUnstable) My application sta…

---

## [Packaging controllers in Rails](https://www.ruby-forum.com/t/packaging-controllers-in-rails/121174)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [November 25, 2007, 12:04am UTC](https://www.ruby-forum.com/t/packaging-controllers-in-rails/121174 "2007-11-25T00:04:36Z")

</div>

Hey all, I am just starting to learn rails, and I was curious to know if it is possible to set up folder systems within the apps/controller area? Our application is beginning to become quite large, and we would reall…

---

## [Orphan habtm rows](https://www.ruby-forum.com/t/orphan-habtm-rows/121145)

<div class="topic-metadata">

**Author:** [@Piotr\_N](https://www.ruby-forum.com/u/Piotr_N)\
**Replies:** 12\
**Last updated:** [November 24, 2007, 11:44pm UTC](https://www.ruby-forum.com/t/orphan-habtm-rows/121145 "2007-11-24T23:44:09Z")

</div>

HI, i use models User and Groups connected with many to many association, so i have users table, groups and groups\_users. lets say i create one user and one group. next i add a group to user. so now my table groups\_u…

---

## [Exception when destroying an object with :through association](https://www.ruby-forum.com/t/exception-when-destroying-an-object-with-through-association/121175)

<div class="topic-metadata">

**Author:** [@stan.baptista](https://www.ruby-forum.com/u/stan.baptista)\
**Replies:** 2\
**Last updated:** [November 24, 2007, 11:24pm UTC](https://www.ruby-forum.com/t/exception-when-destroying-an-object-with-through-association/121175 "2007-11-24T23:24:52Z")

</div>

I have an association such that a Person has many Events :through Attendees. When I attempt to destroy a Person object, I get the following exception: ActiveRecord::StatementInvalid in PeopleController#destroy Mysql:…

---

## [Date\_select validation of a invalid date](https://www.ruby-forum.com/t/date-select-validation-of-a-invalid-date/121166)

<div class="topic-metadata">

**Author:** [@Thiago\_G](https://www.ruby-forum.com/u/Thiago_G)\
**Replies:** 2\
**Last updated:** [November 24, 2007, 9:04pm UTC](https://www.ruby-forum.com/t/date-select-validation-of-a-invalid-date/121166 "2007-11-24T21:04:21Z")

</div>

Hi, What I’m asking might be simple for some of you but I’m trying to fix this for two days and I just can’t figure out how to make this thing work. I have a model with a date\_select validation that is working just f…

---

## [\[ANN\] ruport-util 0.10.0](https://www.ruby-forum.com/t/ann-ruport-util-0-10-0/121172)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [November 24, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/ann-ruport-util-0-10-0/121172 "2007-11-24T20:56:42Z")

</div>

== What is ruport-util? == A collection of utilities and support libraries for Ruby Reports\[0\]. It currently has support for: Basic Graphing (util/graph) Report runner (util/report) Report Mailing (util/mailer) Repor…

---

## [How change records w/o loading them?](https://www.ruby-forum.com/t/how-change-records-w-o-loading-them/121131)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 8\
**Last updated:** [November 24, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/how-change-records-w-o-loading-them/121131 "2007-11-24T19:42:24Z")

</div>

It’s not clear to me how ActiveRecord is supposed to be used to update a batch of records w/o actually loading them. IOW I want to execute an UPDATE statement something like this: UPDATE database.table SET rcrd\_status…

---

## [Concatenate first\_name & last\_name in select](https://www.ruby-forum.com/t/concatenate-first-name-last-name-in-select/121142)

<div class="topic-metadata">

**Author:** [@daborg69](https://www.ruby-forum.com/u/daborg69)\
**Replies:** 1\
**Last updated:** [November 24, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/concatenate-first-name-last-name-in-select/121142 "2007-11-24T17:58:11Z")

</div>

Hey, I want to populate a select drop down form helper with FIRST NAME + LAST NAME. However, these are both in separate columns in the DB - how can I join them together? I can manage to populate it with just the fir…

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

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