# Rails

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

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

---

## [Ruby migration](https://www.ruby-forum.com/t/ruby-migration/88256)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 11:58am UTC](https://www.ruby-forum.com/t/ruby-migration/88256 "2007-03-09T11:58:10Z")

</div>

Hi , I am new to the ruby on rails. I am having some problem with migration on ruby. any one could explain… what db migration on ruby. how to create migration. how to migrate the “db” development to production ( no…

---

## [Multipart emails](https://www.ruby-forum.com/t/multipart-emails/88283)

<div class="topic-metadata">

**Author:** [@jc71229](https://www.ruby-forum.com/u/jc71229)\
**Replies:** 0\
**Last updated:** [March 9, 2007, 11:54am UTC](https://www.ruby-forum.com/t/multipart-emails/88283 "2007-03-09T11:54:45Z")

</div>

Hi, I use the multipart functionality from the action mailer and I do in my Mailer model this: class Mailer \< ActionMailer::Base def confirm(order) subject ‘Your order’ recipients order\[:email\] from ‘removed\_email…

---

## [How to use a lookup table?](https://www.ruby-forum.com/t/how-to-use-a-lookup-table/88180)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 4\
**Last updated:** [March 9, 2007, 11:53am UTC](https://www.ruby-forum.com/t/how-to-use-a-lookup-table/88180 "2007-03-09T11:53:57Z")

</div>

Hi, I have a table in database which has description of all the statuses that an account can have and their flag values, like 0 means unapproved, 1 meanns approved, 3 means suspended and so on. Now, when I am insertin…

---

## [Collection\_select](https://www.ruby-forum.com/t/collection-select/88281)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 0\
**Last updated:** [March 9, 2007, 11:40am UTC](https://www.ruby-forum.com/t/collection-select/88281 "2007-03-09T11:40:18Z")

</div>

I want to give the customised value for collection\_select for ex i am having age group table. I want to display the name attributes in customised format with some strings appended. for ex if it is 16 in database , iwa…

---

## [Rails profiler](https://www.ruby-forum.com/t/rails-profiler/88282)

<div class="topic-metadata">

**Author:** [@jotape](https://www.ruby-forum.com/u/jotape)\
**Replies:** 0\
**Last updated:** [March 9, 2007, 11:38am UTC](https://www.ruby-forum.com/t/rails-profiler/88282 "2007-03-09T11:38:22Z")

</div>

Is there any way to profile an application with radrail? Thanks

---

## [Ordered hash](https://www.ruby-forum.com/t/ordered-hash/88278)

<div class="topic-metadata">

**Author:** [@senthil](https://www.ruby-forum.com/u/senthil)\
**Replies:** 0\
**Last updated:** [March 9, 2007, 11:11am UTC](https://www.ruby-forum.com/t/ordered-hash/88278 "2007-03-09T11:11:10Z")

</div>

hi all, I want to use ordered hash. to do it in ruby i am using RBTree . Without using taht how to do it in rails regards, senthil

---

## [Many to Many questions](https://www.ruby-forum.com/t/many-to-many-questions/88207)

<div class="topic-metadata">

**Author:** [@rordirectory](https://www.ruby-forum.com/u/rordirectory)\
**Replies:** 2\
**Last updated:** [March 9, 2007, 11:06am UTC](https://www.ruby-forum.com/t/many-to-many-questions/88207 "2007-03-09T11:06:32Z")

</div>

Hi I have the following tables Ads - contains ads by people Options - contains options (all are yes or no like a check box) for each ad; examples (assuming it is a car ad) Air\_condition, Auto\_Transmission, Keyless\_e…

---

## [Simple dropdown menu](https://www.ruby-forum.com/t/simple-dropdown-menu/98229)

<div class="topic-metadata">

**Author:** [@bex3000](https://www.ruby-forum.com/u/bex3000)\
**Replies:** 2\
**Last updated:** [March 9, 2007, 9:41am UTC](https://www.ruby-forum.com/t/simple-dropdown-menu/98229 "2007-03-09T09:41:11Z")

</div>

Hi, I’m quite new to this language and I’m having trouble finding out simple things like a dropdown menu in rhtml. I know I have to use \<% select\_tag %\> but I’ve read lots of different ways to put in the options so I’…

---

## [How to use edit ajax link in controller](https://www.ruby-forum.com/t/how-to-use-edit-ajax-link-in-controller/88099)

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 9:38am UTC](https://www.ruby-forum.com/t/how-to-use-edit-ajax-link-in-controller/88099 "2007-03-09T09:38:21Z")

</div>

hi all, i want to put the html coding in my controller, because i want to return the value like this. but i don’t how to declare here. i declared, but it show error. i have listed my coding here. plese tell me what’s …

---

## [CodeGear Rails IDE maybe in the works](https://www.ruby-forum.com/t/codegear-rails-ide-maybe-in-the-works/88218)

<div class="topic-metadata">

**Author:** [@cskidmore](https://www.ruby-forum.com/u/cskidmore)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 8:09am UTC](https://www.ruby-forum.com/t/codegear-rails-ide-maybe-in-the-works/88218 "2007-03-09T08:09:12Z")

</div>

http://www.thepythia.com/?p=38 I’ve been a long time user of CodeGear’s products and also a Rails developer. Marrying the Delphi IDE design with Rails power would be too good to be true… If it was done right.

---

## [How do you pass html objects from the view to the helper cla](https://www.ruby-forum.com/t/how-do-you-pass-html-objects-from-the-view-to-the-helper-cla/88248)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [March 9, 2007, 7:06am UTC](https://www.ruby-forum.com/t/how-do-you-pass-html-objects-from-the-view-to-the-helper-cla/88248 "2007-03-09T07:06:07Z")

</div>

I would like to pass the title to the helper class and manipulate it. I have in the view test In the helper, I have def hide\_and\_reset(div) update\_page do |page| if page\[div\].title == ‘show’ page\[div\].hide pag…

---

## [Bug in habtm?](https://www.ruby-forum.com/t/bug-in-habtm/88165)

<div class="topic-metadata">

**Author:** [@starburger](https://www.ruby-forum.com/u/starburger)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 6:28am UTC](https://www.ruby-forum.com/t/bug-in-habtm/88165 "2007-03-09T06:28:04Z")

</div>

To implement a simple messaging system for a community platform I’ve done the following code: class Message \< ActiveRecord::Base belongs\_to :sender, :class\_name =\> ‘User’ has\_and\_belongs\_to\_many :recipients, :class\_n…

---

## [Eager loading with inheritance](https://www.ruby-forum.com/t/eager-loading-with-inheritance/88247)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 0\
**Last updated:** [March 9, 2007, 5:01am UTC](https://www.ruby-forum.com/t/eager-loading-with-inheritance/88247 "2007-03-09T05:01:59Z")

</div>

In order to implement inheritance (STI was not ideal), I have implemented a solution similar to what is described in this post: Any good alternative to single-table-inheritance? - Rails - Ruby-Forum. I have one model …

---

## [Problem loading data from database](https://www.ruby-forum.com/t/problem-loading-data-from-database/88163)

<div class="topic-metadata">

**Author:** [@eyp](https://www.ruby-forum.com/u/eyp)\
**Replies:** 3\
**Last updated:** [March 9, 2007, 4:39am UTC](https://www.ruby-forum.com/t/problem-loading-data-from-database/88163 "2007-03-09T04:39:58Z")

</div>

Hello, I get this error trying to load some data from DB. I’m using Rails 1.2.2 on Fedora Core 6 and Sybase adapter. This worked fine when application run under Rails 1.1.6 but now I’m migrating to 1.2.2 and have some…

---

## [Issue with rake db:migrate command](https://www.ruby-forum.com/t/issue-with-rake-db-migrate-command/88242)

<div class="topic-metadata">

**Author:** [@dangermoose](https://www.ruby-forum.com/u/dangermoose)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 4:27am UTC](https://www.ruby-forum.com/t/issue-with-rake-db-migrate-command/88242 "2007-03-09T04:27:57Z")

</div>

In chapter five of the book Build Your Own Ruby on Rails Applications, when I entered the rake db:migrate command in the Ruby console, I got the following message back: Warning require\_gem is obsolete. Use gem instead…

---

## [Hierarchical pages content](https://www.ruby-forum.com/t/hierarchical-pages-content/88168)

<div class="topic-metadata">

**Author:** [@johanatan](https://www.ruby-forum.com/u/johanatan)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 4:16am UTC](https://www.ruby-forum.com/t/hierarchical-pages-content/88168 "2007-03-09T04:16:57Z")

</div>

Hi, this is a design question I’ve setup a micro-cms for my About pages etc using a “pages” table containing name, title, body, parent\_id, position, and the model is setup as both acts\_as\_tree and acts\_as\_list. The pa…

---

## [Daily logger not working?](https://www.ruby-forum.com/t/daily-logger-not-working/88204)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 3\
**Last updated:** [March 9, 2007, 3:51am UTC](https://www.ruby-forum.com/t/daily-logger-not-working/88204 "2007-03-09T03:51:55Z")

</div>

Hi, In my controller I have given: logger = Logger.new(‘try.log’, shift\_age=‘daily’) A file is created in the root folder of my application as try.log. But if I give logger.info(‘testing’) then this is logged in dev…

---

## [Updating mutiple tables from the same form](https://www.ruby-forum.com/t/updating-mutiple-tables-from-the-same-form/88235)

<div class="topic-metadata">

**Author:** [@georgeuoa](https://www.ruby-forum.com/u/georgeuoa)\
**Replies:** 2\
**Last updated:** [March 9, 2007, 3:43am UTC](https://www.ruby-forum.com/t/updating-mutiple-tables-from-the-same-form/88235 "2007-03-09T03:43:55Z")

</div>

Hi Guys! Does anyone have an idea on how to update fields in different tables using a single form? Say i have 3 tables and i wanted to create new entries and update them from a single form. how can i build such a mod…

---

## [Syndicating multiple user feeds](https://www.ruby-forum.com/t/syndicating-multiple-user-feeds/88209)

<div class="topic-metadata">

**Author:** [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 3:38am UTC](https://www.ruby-forum.com/t/syndicating-multiple-user-feeds/88209 "2007-03-09T03:38:52Z")

</div>

Hello, sorry if this isn’t appropriate for this forum… I’m sort of writing a blogger application where multiple users can create their own accounts and then generate their own blogs with rss feeds. I’ve generated an …

---

## [Is this a necessary precaution?](https://www.ruby-forum.com/t/is-this-a-necessary-precaution/88232)

<div class="topic-metadata">

**Author:** [@anonymous](https://www.ruby-forum.com/u/anonymous)\
**Replies:** 4\
**Last updated:** [March 9, 2007, 3:27am UTC](https://www.ruby-forum.com/t/is-this-a-necessary-precaution/88232 "2007-03-09T03:27:16Z")

</div>

If I’m not mistaken, a user can send POST data from outside of a web browser; I think this is something that is done to brute-force form logins, or to automate spam, etc. In my app, which operates like a forum, Commen…

---

## [Ajax.InPlaceEditor & REST](https://www.ruby-forum.com/t/ajax-inplaceeditor-rest/88194)

<div class="topic-metadata">

**Author:** [@jko170](https://www.ruby-forum.com/u/jko170)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 3:04am UTC](https://www.ruby-forum.com/t/ajax-inplaceeditor-rest/88194 "2007-03-09T03:04:48Z")

</div>

I cannot for the life of me get this to work: \<% @ranks.each do |rank| %\> \<%= rank.number %\> \<%= rank.rank %\>\</ span\> \<%= javascript\_tag “new Ajax.InPlaceEditor(‘edit\_#{rank.rank}’, ‘#{rank\_url(rank)}’, {aja…

---

## [Having trouble with #method() method](https://www.ruby-forum.com/t/having-trouble-with-method-method/88135)

<div class="topic-metadata">

**Author:** [@builderchad](https://www.ruby-forum.com/u/builderchad)\
**Replies:** 4\
**Last updated:** [March 9, 2007, 2:36am UTC](https://www.ruby-forum.com/t/having-trouble-with-method-method/88135 "2007-03-09T02:36:46Z")

</div>

I am having trouble with the use of method() method. I am successfully creating a new ActiveRecord object for a model I have called Person: new\_foreign\_object = case foreign\_class when 'Person' then …

---

## [Complete newbie](https://www.ruby-forum.com/t/complete-newbie/88227)

<div class="topic-metadata">

**Author:** [@Sterling](https://www.ruby-forum.com/u/Sterling)\
**Replies:** 3\
**Last updated:** [March 9, 2007, 2:22am UTC](https://www.ruby-forum.com/t/complete-newbie/88227 "2007-03-09T02:22:45Z")

</div>

I have experience with html, css, php, and some with mysql. My co workers set me up with ruby on rails and radrails. Where can I go te get a good tutorial that will help me get started?

---

## [Ruby on Rails Platform Maturity - Need Some Feedback](https://www.ruby-forum.com/t/ruby-on-rails-platform-maturity-need-some-feedback/88220)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [March 9, 2007, 2:18am UTC](https://www.ruby-forum.com/t/ruby-on-rails-platform-maturity-need-some-feedback/88220 "2007-03-09T02:18:00Z")

</div>

I am posting these questions for one of my friend who is thinking about moving from J2EE to Ruby on Rails for his web development projects within his company. His plan is to develop the product and then go for venture…

---

## [Limiting query with created\_at?](https://www.ruby-forum.com/t/limiting-query-with-created-at/88216)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 3\
**Last updated:** [March 9, 2007, 1:44am UTC](https://www.ruby-forum.com/t/limiting-query-with-created-at/88216 "2007-03-09T01:44:34Z")

</div>

I have no idea why this isn’t working but maybe a new set of eyes can help. I want to only collect posts from yesterday: Post.find( :all, :conditions =\> "posts.created\_at \> #{(1.day.ago).to\_i}", …

---

## [Using params to create new, and edit records](https://www.ruby-forum.com/t/using-params-to-create-new-and-edit-records/88234)

<div class="topic-metadata">

**Author:** [@markh](https://www.ruby-forum.com/u/markh)\
**Replies:** 0\
**Last updated:** [March 9, 2007, 1:20am UTC](https://www.ruby-forum.com/t/using-params-to-create-new-and-edit-records/88234 "2007-03-09T01:20:58Z")

</div>

Hi all, I’m working on my first RoR project and it’s slowly coming together. I am having a problem getting a new object initialised from the params being sent back from the form. It goes like this… I have Questions a…

---

## [Empty text\_area yields 'Template is missing' error](https://www.ruby-forum.com/t/empty-text-area-yields-template-is-missing-error/88228)

<div class="topic-metadata">

**Author:** [@dankitania](https://www.ruby-forum.com/u/dankitania)\
**Replies:** 0\
**Last updated:** [March 9, 2007, 1:03am UTC](https://www.ruby-forum.com/t/empty-text-area-yields-template-is-missing-error/88228 "2007-03-09T01:03:38Z")

</div>

PROBLEM STATEMENT My app gives a missing-template error if the user enters nothing into a provided text\_area. But if something is provided, everything works fine. I’m still a newbie, so I don’t really understand the…

---

## [NetBeans 6.0 Rails Support](https://www.ruby-forum.com/t/netbeans-6-0-rails-support/88202)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 6\
**Last updated:** [March 9, 2007, 12:39am UTC](https://www.ruby-forum.com/t/netbeans-6-0-rails-support/88202 "2007-03-09T00:39:34Z")

</div>

The new Ruby support flash demos on netbeans.org site are very good. I am trying to duplicate them on my Windows XP machine. Running into #28000Access denied for user ‘root’@‘localhost’ (using password: YES) error w…

---

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

<div class="topic-metadata">

**Author:** [@wintermute](https://www.ruby-forum.com/u/wintermute)\
**Replies:** 2\
**Last updated:** [March 9, 2007, 12:26am UTC](https://www.ruby-forum.com/t/session-data/87941 "2007-03-09T00:26:16Z")

</div>

I have a major headache. I have a complete set of data from a database table and I have deleted all of the contents from the table, DON’T ASK. I need to recover the data. The data is stored in the session hash and I …

---

## [Cannot save session in IE6](https://www.ruby-forum.com/t/cannot-save-session-in-ie6/87692)

<div class="topic-metadata">

**Author:** [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Replies:** 3\
**Last updated:** [March 8, 2007, 11:40pm UTC](https://www.ruby-forum.com/t/cannot-save-session-in-ie6/87692 "2007-03-08T23:40:42Z")

</div>

A search only returned this thread: http://www.ruby-forum.com/topic/71970#101107 FF and IE7 both accept and store sessions as such: — !ruby/object:CGI::Session data: &id001 :person\_id: 1 :person\_name: Bob flash: !…

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

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