# Rails

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

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

---

## [Flash message not shown after redirected by verify](https://www.ruby-forum.com/t/flash-message-not-shown-after-redirected-by-verify/138144)

<div class="topic-metadata">

**Author:** [@T\_K](https://www.ruby-forum.com/u/T_K)\
**Replies:** 3\
**Last updated:** [May 20, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/flash-message-not-shown-after-redirected-by-verify/138144 "2008-05-20T21:28:14Z")

</div>

I have the following snippet in a controller. verify :params =\> “post”, :only =\> \[:create, :update, :destroy\], :add\_flash =\> {“notice” =\> “Invalid Access”}, :redirect\_to =\> {:action =\> ‘list’} If I directly access /p…

---

## [Enumerations in migrations](https://www.ruby-forum.com/t/enumerations-in-migrations/138075)

<div class="topic-metadata">

**Author:** [@dustin](https://www.ruby-forum.com/u/dustin)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 8:25pm UTC](https://www.ruby-forum.com/t/enumerations-in-migrations/138075 "2008-05-20T20:25:23Z")

</div>

Is there a way to do enumerations in migrations? I.E. color(red, black, blue, green, etc)

---

## [Ruby on Rails Team Available](https://www.ruby-forum.com/t/ruby-on-rails-team-available/138168)

<div class="topic-metadata">

**Author:** [@trib4lmaniac](https://www.ruby-forum.com/u/trib4lmaniac)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-team-available/138168 "2008-05-20T19:31:23Z")

</div>

We represent an established team of three Ruby on Rails developers who are available immediately for projects large or small. Technical Experience: Each developer was selected from a large pool of candidates passing …

---

## [Ajax example from "Agile Web Dev w/Rails" not working right](https://www.ruby-forum.com/t/ajax-example-from-agile-web-dev-w-rails-not-working-right/69781)

<div class="topic-metadata">

**Author:** [@bradjpeek](https://www.ruby-forum.com/u/bradjpeek)\
**Replies:** 9\
**Last updated:** [May 20, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/ajax-example-from-agile-web-dev-w-rails-not-working-right/69781 "2008-05-20T19:04:07Z")

</div>

I’m a complete novice when it comes to web development, but I’m going through the examples in the 2nd edition of the Agile Web D. With Rails book and have hit a snag. I’ve added the AJAX code to update the shopping ca…

---

## [IS A relationship in rails and additional field in Join tabl](https://www.ruby-forum.com/t/is-a-relationship-in-rails-and-additional-field-in-join-tabl/138150)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 6:42pm UTC](https://www.ruby-forum.com/t/is-a-relationship-in-rails-and-additional-field-in-join-tabl/138150 "2008-05-20T18:42:10Z")

</div>

Hello, I have a couple of questions: How to implement IS A relationship I have an events table and model person table and model Now events contain speakers and speakers are people. So how to implement is a relati…

---

## [Column to line](https://www.ruby-forum.com/t/column-to-line/138160)

<div class="topic-metadata">

**Author:** [@jef](https://www.ruby-forum.com/u/jef)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 6:34pm UTC](https://www.ruby-forum.com/t/column-to-line/138160 "2008-05-20T18:34:29Z")

</div>

Hi, I’ve got a hash: {:colA=\>\[“blue”,“red”,“green”\], :colB=\>\[“diesel”,“fuel cell”,“gas”\], colC=\>\[“bus”,“truck”,“car”\]} All arrays are the same size. I would like to turn it into a array of line , and get this \[ \[“…

---

## [New to "Agile Development" - should I use RSpec or Test::Unit?](https://www.ruby-forum.com/t/new-to-agile-development-should-i-use-rspec-or-test-unit/138132)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 4\
**Last updated:** [May 20, 2008, 5:53pm UTC](https://www.ruby-forum.com/t/new-to-agile-development-should-i-use-rspec-or-test-unit/138132 "2008-05-20T17:53:36Z")

</div>

Hi everyone, I’m just now really starting to look into Agile Development, and so I’m trying to gauge what the Rails community’s preference is in regards to using RSpec versus the built-in Test::Unit. I haven’t really …

---

## [Question re: "can\_has\_chat" plugin](https://www.ruby-forum.com/t/question-re-can-has-chat-plugin/138159)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/question-re-can-has-chat-plugin/138159 "2008-05-20T17:45:48Z")

</div>

Hi there, I’ve installed the “can\_has\_chat” plugin (http://code.google.com/p/canhaschat/) with all its required dependencies (and following the instructions in the README file). But I get the following error message …

---

## [RegExp problem](https://www.ruby-forum.com/t/regexp-problem/138116)

<div class="topic-metadata">

**Author:** [@jef](https://www.ruby-forum.com/u/jef)\
**Replies:** 5\
**Last updated:** [May 20, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/regexp-problem/138116 "2008-05-20T17:43:44Z")

</div>

Hi, I’ve got a string “foo(n\_characters)”. ex: foo(bar) . I would like to extract bar. What RegExp can do that? thanks

---

## [DateHelpers .. don' display..?](https://www.ruby-forum.com/t/datehelpers-don-display/138137)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/datehelpers-don-display/138137 "2008-05-20T17:30:43Z")

</div>

HI I don’t understand what happen … if I use the script/console : include ActionView::Helpers::DateHelper =\> Object include GLoc =\> Object time\_ago\_in\_words(Time.now, include\_seconds = false) =\> “moins d’un…

---

## [Two issues with foreign attribute](https://www.ruby-forum.com/t/two-issues-with-foreign-attribute/138093)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 4\
**Last updated:** [May 20, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/two-issues-with-foreign-attribute/138093 "2008-05-20T17:29:34Z")

</div>

here are my two tables: ITEMS id name etc… TOOLS item\_id parent\_id etc… tools belongs\_to :item so i can use tool.item.name but how can i use it in this case for a collection select? \<%= f.collection\_select(:p…

---

## [UML with Rails](https://www.ruby-forum.com/t/uml-with-rails/137409)

<div class="topic-metadata">

**Author:** [@pk16](https://www.ruby-forum.com/u/pk16)\
**Replies:** 8\
**Last updated:** [May 20, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/uml-with-rails/137409 "2008-05-20T17:18:42Z")

</div>

Hey has anyone used a good uml tool with rails to design applications? how do most start their rails application design work after collecting requirements? any guidance would be appreciated.

---

## [Slider control \> based on values of table](https://www.ruby-forum.com/t/slider-control-based-on-values-of-table/138149)

<div class="topic-metadata">

**Author:** [@remco123](https://www.ruby-forum.com/u/remco123)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/slider-control-based-on-values-of-table/138149 "2008-05-20T17:00:35Z")

</div>

Hi this is my table structure: create\_table “items”, :force =\> true do |t| t.string “name”, :limit =\> 30 t.integer “quantity”, :default =\> 0, :null =\> false t.integer “price”, :def…

---

## [How To Retrieve Server Address](https://www.ruby-forum.com/t/how-to-retrieve-server-address/138120)

<div class="topic-metadata">

**Author:** [@jagdishSRubin](https://www.ruby-forum.com/u/jagdishSRubin)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 4:31pm UTC](https://www.ruby-forum.com/t/how-to-retrieve-server-address/138120 "2008-05-20T16:31:41Z")

</div>

How to retrieve server address in rails so that in the mail option I get http://serverIP:300/controller/action rather than http://localhost:3000/controller/action

---

## [RailsConf ticket](https://www.ruby-forum.com/t/railsconf-ticket/137898)

<div class="topic-metadata">

**Author:** [@thechak](https://www.ruby-forum.com/u/thechak)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/railsconf-ticket/137898 "2008-05-20T16:29:52Z")

</div>

Hey folks, I have a ticket to RailsConf that I can’t use. I contacted O’Reilly and they said they’d help transfer the registration when I find someone to take the ticket. Email me at removed\_email\_address@domain.inva…

---

## [Update database-field with prototype](https://www.ruby-forum.com/t/update-database-field-with-prototype/138138)

<div class="topic-metadata">

**Author:** [@Chris-Aix](https://www.ruby-forum.com/u/Chris-Aix)\
**Replies:** 5\
**Last updated:** [May 20, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/update-database-field-with-prototype/138138 "2008-05-20T15:49:30Z")

</div>

hi guys, i am trying to update a database-field with the help of prototype. there is something i must have missed because i tried every single combination but the only stuff that worked was GETing a field out of the …

---

## [Issues with update div using ajax](https://www.ruby-forum.com/t/issues-with-update-div-using-ajax/138108)

<div class="topic-metadata">

**Author:** [@supriyaiiita](https://www.ruby-forum.com/u/supriyaiiita)\
**Replies:** 7\
**Last updated:** [May 20, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/issues-with-update-div-using-ajax/138108 "2008-05-20T15:48:54Z")

</div>

Hi! I have been trying to use periodically\_Call\_remote in a table showing various devices , to update a row specific to a device. my view looks like: All Devices Device Name Ping Result \</tr\> …

---

## [Script/console UTF-8 MacOS X?](https://www.ruby-forum.com/t/script-console-utf-8-macos-x/137118)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 4\
**Last updated:** [May 20, 2008, 3:11pm UTC](https://www.ruby-forum.com/t/script-console-utf-8-macos-x/137118 "2008-05-20T15:11:16Z")

</div>

Is it possible to use foreign characters with UTF-8 encoding in the console on MacOS X? I found a few OLD tutorials on the Internet and none of them seemed to work. I’m using Leopard by the way. When I try to paste in…

---

## [Re: How to check the existence of div?](https://www.ruby-forum.com/t/re-how-to-check-the-existence-of-div/138124)

<div class="topic-metadata">

**Author:** [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 2:37pm UTC](https://www.ruby-forum.com/t/re-how-to-check-the-existence-of-div/138124 "2008-05-20T14:37:34Z")

</div>

On 20 May 2008, at 11:53, Nathan E. wrote: then? Two ways…simple way is simply write the function in pure javascript and then invoke it in the rjs…i.e page.call “someFunction”, “param1”, “param2” but what if I REA…

---

## [Noob question re: partials](https://www.ruby-forum.com/t/noob-question-re-partials/138113)

<div class="topic-metadata">

**Author:** [@validkeys](https://www.ruby-forum.com/u/validkeys)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 2:31pm UTC](https://www.ruby-forum.com/t/noob-question-re-partials/138113 "2008-05-20T14:31:03Z")

</div>

Hi there, I have been searching these discussions for a while trying to find an answer to this question. I am learning rails and have been analyzing basecamp a bit more trying to figure out how they did different thin…

---

## [Problem with view, the instance cant be seen](https://www.ruby-forum.com/t/problem-with-view-the-instance-cant-be-seen/138009)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 12\
**Last updated:** [May 20, 2008, 2:09pm UTC](https://www.ruby-forum.com/t/problem-with-view-the-instance-cant-be-seen/138009 "2008-05-20T14:09:02Z")

</div>

I’ve a problem in, my view where the object found via find method, cant be seen i get a You have a nil object when you didn’t expect it! The error occurred while evaluating nil.to\_sym Error every time i try to edit …

---

## [\[ANN\] Engines 1.2.2](https://www.ruby-forum.com/t/ann-engines-1-2-2/138127)

<div class="topic-metadata">

**Author:** [@turnip](https://www.ruby-forum.com/u/turnip)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 1:38pm UTC](https://www.ruby-forum.com/t/ann-engines-1-2-2/138127 "2008-05-20T13:38:38Z")

</div>

Hi, I have just tagged 1.2.2: http://svn.rails-engines.org/engines/tags/rel\_1.2.2 Regards, Jon CHANGELOG = 1.2.2 Added the ability to code mix different types of files, cleaning up the existing code-mixing imp…

---

## [REST and create action: why does it accept GET requests?](https://www.ruby-forum.com/t/rest-and-create-action-why-does-it-accept-get-requests/138112)

<div class="topic-metadata">

**Author:** [@Nicholas\_W](https://www.ruby-forum.com/u/Nicholas_W)\
**Replies:** 3\
**Last updated:** [May 20, 2008, 12:59pm UTC](https://www.ruby-forum.com/t/rest-and-create-action-why-does-it-accept-get-requests/138112 "2008-05-20T12:59:01Z")

</div>

Hi \*, TODO: why does this method accept get requests ? it “should not login getting correct credentials” do get :create, :login =\> ‘quentin’, :password =\> ‘test’ session\[ :user\_id \].should be\_nil flash\[ :notice \].should…

---

## [Struggling with Date fields - select\_month and select\_year](https://www.ruby-forum.com/t/struggling-with-date-fields-select-month-and-select-year/138117)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 3\
**Last updated:** [May 20, 2008, 12:24pm UTC](https://www.ruby-forum.com/t/struggling-with-date-fields-select-month-and-select-year/138117 "2008-05-20T12:24:39Z")

</div>

Hi, I collect month and year from user for a particular field called start date. Year is mandatory where as month is optional. Initially i used date\_select for the field, but moved away when i learnt that in date\_se…

---

## [Complex restful routes](https://www.ruby-forum.com/t/complex-restful-routes/138115)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 11:28am UTC](https://www.ruby-forum.com/t/complex-restful-routes/138115 "2008-05-20T11:28:36Z")

</div>

Hi, i’d like to know how you handle complex restful routes for instance table - join - table2 or set has\_many subset has\_many subsubset won’t the route get a bit awkward ? I’d like to avoid having more than 2 mod…

---

## [Searching: Ruby on Rails Developer](https://www.ruby-forum.com/t/searching-ruby-on-rails-developer/138109)

<div class="topic-metadata">

**Author:** [@pvenero](https://www.ruby-forum.com/u/pvenero)\
**Replies:** 0\
**Last updated:** [May 20, 2008, 10:05am UTC](https://www.ruby-forum.com/t/searching-ruby-on-rails-developer/138109 "2008-05-20T10:05:12Z")

</div>

Searching for a Ruby on Rails developer to assist with the development of the first Ruby on Rails Lottery Website. Please send enquiries to removed\_email\_address@domain.invalid

---

## [Will\_paginate params](https://www.ruby-forum.com/t/will-paginate-params/138099)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 2\
**Last updated:** [May 20, 2008, 9:27am UTC](https://www.ruby-forum.com/t/will-paginate-params/138099 "2008-05-20T09:27:44Z")

</div>

Hi I hav a search UI.And I use will\_paginate to paginate result.My action is def search\_sd\_ticket #@search\_sd\_ui\_hash=params\[:sd\_ticket\] @search\_sd\_ticket\_result=ServiceDeskTicket.record\_paginate\_sd(params\[:sd\_ticke…

---

## [Yahoo or Google SMTP servers to send email from RoR?](https://www.ruby-forum.com/t/yahoo-or-google-smtp-servers-to-send-email-from-ror/137997)

<div class="topic-metadata">

**Author:** [@comopasta](https://www.ruby-forum.com/u/comopasta)\
**Replies:** 4\
**Last updated:** [May 20, 2008, 9:09am UTC](https://www.ruby-forum.com/t/yahoo-or-google-smtp-servers-to-send-email-from-ror/137997 "2008-05-20T09:09:31Z")

</div>

Hi, has anyone succeeded to test sending emails from RoR app using Yahoo or Google SMTP server? I have accounts with those. I am currently adding email support but I can’t get mails sent. Well I can send them if I us…

---

## [ActionMailer Don't Say Nuttin'](https://www.ruby-forum.com/t/actionmailer-dont-say-nuttin/138097)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 10\
**Last updated:** [May 20, 2008, 8:04am UTC](https://www.ruby-forum.com/t/actionmailer-dont-say-nuttin/138097 "2008-05-20T08:04:36Z")

</div>

Yet another variant on the ActionMailer problems. I have no errors, and no emails. The log file & server chatter say that the email is sent–including the To: header. These outputs are immune to ActionMailer::Base.de…

---

## [Active Record 2.0.2 without logger support? \[undefined method \`debug' for nil:NilClass\]](https://www.ruby-forum.com/t/active-record-2-0-2-without-logger-support-undefined-method-debug-for-nil-nilclass/137989)

<div class="topic-metadata">

**Author:** [@philpraxis](https://www.ruby-forum.com/u/philpraxis)\
**Replies:** 1\
**Last updated:** [May 20, 2008, 7:02am UTC](https://www.ruby-forum.com/t/active-record-2-0-2-without-logger-support-undefined-method-debug-for-nil-nilclass/137989 "2008-05-20T07:02:28Z")

</div>

Hi, I have read (Antares Trader) and noticed, when upgrading to Active Record 2.0.2, that not using a logger can cause NilClass errors, more specifically the error “undefined method \`debug’ for nil:NilClass”. There …

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

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