# Rails

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

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

---

## [Help with form\_for](https://www.ruby-forum.com/t/help-with-form-for/196612)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 9:06pm UTC](https://www.ruby-forum.com/t/help-with-form-for/196612 "2008-03-27T21:06:22Z")

</div>

I have this rhtml, that generate a table with the object @evaluations filled it before. The problem is that i need to get those text\_field with the data loaded, but instead it’ filled all text\_field whit the last @eva…

---

## [Ruby On Rails Book](https://www.ruby-forum.com/t/ruby-on-rails-book/133100)

<div class="topic-metadata">

**Author:** [@israel](https://www.ruby-forum.com/u/israel)\
**Replies:** 6\
**Last updated:** [March 27, 2008, 9:02pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-book/133100 "2008-03-27T21:02:49Z")

</div>

Hi, I’m going to buy only one book of Rails, what book do you recommend ? Regards. Israel.

---

## [Rake only works once from rails](https://www.ruby-forum.com/t/rake-only-works-once-from-rails/133105)

<div class="topic-metadata">

**Author:** [@ddancer](https://www.ruby-forum.com/u/ddancer)\
**Replies:** 2\
**Last updated:** [March 27, 2008, 8:01pm UTC](https://www.ruby-forum.com/t/rake-only-works-once-from-rails/133105 "2008-03-27T20:01:14Z")

</div>

posted this on Ruby forum, no luck there - maybe a Railser has dealt with this issue… I’ve made a rake task that I’m running from my rails, and it works - but only once. If I then restart the server (mongrel) it work…

---

## [Params key](https://www.ruby-forum.com/t/params-key/133084)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 8\
**Last updated:** [March 27, 2008, 7:51pm UTC](https://www.ruby-forum.com/t/params-key/133084 "2008-03-27T19:51:05Z")

</div>

Hi there, What is the best way to see if a certain key exists in my params hash in my controller? Thanks, steve

---

## [Help with authentication errors](https://www.ruby-forum.com/t/help-with-authentication-errors/133083)

<div class="topic-metadata">

**Author:** [@asjohns1](https://www.ruby-forum.com/u/asjohns1)\
**Replies:** 3\
**Last updated:** [March 27, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/help-with-authentication-errors/133083 "2008-03-27T19:31:14Z")

</div>

Hello, I have been working through two books, “Agile Web D. with Rails, 2nd Ed.” and “Ajax on Rails”. I’m using Rails2.0. In both cases, I run into an authentication error when doing the examples. In AWDwR, when tryi…

---

## [Regenerate Fixture file](https://www.ruby-forum.com/t/regenerate-fixture-file/133103)

<div class="topic-metadata">

**Author:** [@simon1](https://www.ruby-forum.com/u/simon1)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 7:31pm UTC](https://www.ruby-forum.com/t/regenerate-fixture-file/133103 "2008-03-27T19:31:01Z")

</div>

so lets say you create a model and you edit your migrations but something changes and its like very really in your project so you just edit the migration file and roll back to version=0 and recreate all the tables is…

---

## [What's the best way to create complex form](https://www.ruby-forum.com/t/whats-the-best-way-to-create-complex-form/133092)

<div class="topic-metadata">

**Author:** [@psyche](https://www.ruby-forum.com/u/psyche)\
**Replies:** 1\
**Last updated:** [March 27, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/whats-the-best-way-to-create-complex-form/133092 "2008-03-27T19:22:06Z")

</div>

What’s the best way to create complex form with has\_many :through relationship?

---

## [Looking for freelance Ruby development skills](https://www.ruby-forum.com/t/looking-for-freelance-ruby-development-skills/133101)

<div class="topic-metadata">

**Author:** [@Bader\_Rutter](https://www.ruby-forum.com/u/Bader_Rutter)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 7:05pm UTC](https://www.ruby-forum.com/t/looking-for-freelance-ruby-development-skills/133101 "2008-03-27T19:05:29Z")

</div>

Looking for freelance Ruby development skills: Preferably local in Wisconsin, but not entirely necessary. We have an app in hand that was written with Ruby, and expect that we’ll need to rely on outside help to suppor…

---

## [You've got your observe\_form in my peanut butter](https://www.ruby-forum.com/t/youve-got-your-observe-form-in-my-peanut-butter/133096)

<div class="topic-metadata">

**Author:** [@Russ\_McBride](https://www.ruby-forum.com/u/Russ_McBride)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 5:52pm UTC](https://www.ruby-forum.com/t/youve-got-your-observe-form-in-my-peanut-butter/133096 "2008-03-27T17:52:06Z")

</div>

I’ve got an observe\_form method that calls a remote action (when any of the form fields are modified) and then simply displays the result in a div tag. Generic. I can’t for the life of my figure out why my observe\_f…

---

## [Converting unix\_t time to something rails understands](https://www.ruby-forum.com/t/converting-unix-t-time-to-something-rails-understands/133073)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 2\
**Last updated:** [March 27, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/converting-unix-t-time-to-something-rails-understands/133073 "2008-03-27T17:48:29Z")

</div>

I have some data that I want to import into a table. The import file has dates in unix\_t time format ( seconds since 1970). How would I convert that to either a datetime value or a string? Is that a magic function …

---

## [Update issue](https://www.ruby-forum.com/t/update-issue/133088)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 6\
**Last updated:** [March 27, 2008, 5:35pm UTC](https://www.ruby-forum.com/t/update-issue/133088 "2008-03-27T17:35:00Z")

</div>

Hi there, can anyone please tell me what’s wrong with the following line? (It must be so simple but I’ve been trying to find the error for so long…) Message.update\_all (:read =\> true, 'target\_id = #{session\[:user\_id\]…

---

## [Deleting children](https://www.ruby-forum.com/t/deleting-children/133091)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 2\
**Last updated:** [March 27, 2008, 5:12pm UTC](https://www.ruby-forum.com/t/deleting-children/133091 "2008-03-27T17:12:13Z")

</div>

Hello again, What is the best way to delete all children of a parent in a controller. For example I have restaurants with a has\_many association to boundaries. I would like to do something like this: @restaurant.boun…

---

## [\[off topic\] Best choice of word](https://www.ruby-forum.com/t/off-topic-best-choice-of-word/132987)

<div class="topic-metadata">

**Author:** [@Vinicius\_Manhaes\_Te](https://www.ruby-forum.com/u/Vinicius_Manhaes_Te)\
**Replies:** 17\
**Last updated:** [March 27, 2008, 4:51pm UTC](https://www.ruby-forum.com/t/off-topic-best-choice-of-word/132987 "2008-03-27T16:51:58Z")

</div>

We’re working on a simple Rails app that solves a common problem for groups of people. It’s not yet another social network, tough. :slight\_smile: The thing is that we’re trying to find an appropriate word, in English,…

---

## [Threads and Accessing MySQL](https://www.ruby-forum.com/t/threads-and-accessing-mysql/133019)

<div class="topic-metadata">

**Author:** [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Replies:** 7\
**Last updated:** [March 27, 2008, 4:44pm UTC](https://www.ruby-forum.com/t/threads-and-accessing-mysql/133019 "2008-03-27T16:44:46Z")

</div>

Hi, I have a function which when called triggers a thread. The function returns after starting the thread. Thread should access database update few tables and then should end. But I am getting an error when Thread tr…

---

## [Rails looks for .rhtml even when rxml exists](https://www.ruby-forum.com/t/rails-looks-for-rhtml-even-when-rxml-exists/133087)

<div class="topic-metadata">

**Author:** [@makire](https://www.ruby-forum.com/u/makire)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 4:34pm UTC](https://www.ruby-forum.com/t/rails-looks-for-rhtml-even-when-rxml-exists/133087 "2008-03-27T16:34:20Z")

</div>

Hi I am building XML using partials but for some (I cannot see a pattern for when it happens) cases I get the: No such file or directory /app/views/content\_objects/news\_article/xml/ partials/\_show.rhtml The correspo…

---

## [Problem with in\_place\_editor\_field](https://www.ruby-forum.com/t/problem-with-in-place-editor-field/133046)

<div class="topic-metadata">

**Author:** [@apswartz](https://www.ruby-forum.com/u/apswartz)\
**Replies:** 6\
**Last updated:** [March 27, 2008, 4:25pm UTC](https://www.ruby-forum.com/t/problem-with-in-place-editor-field/133046 "2008-03-27T16:25:08Z")

</div>

ok, I am really pulling my hair out here over something that should be simple. (Rails2, In\_place\_editor plugin) In my index.html.erb, I have: \<% @tasks.each do |root| %\> \<%= render(:partial =\> "task\_node", :o…

---

## [Javascript in view](https://www.ruby-forum.com/t/javascript-in-view/133078)

<div class="topic-metadata">

**Author:** [@sjglazer](https://www.ruby-forum.com/u/sjglazer)\
**Replies:** 2\
**Last updated:** [March 27, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/javascript-in-view/133078 "2008-03-27T16:18:37Z")

</div>

HI there, How do I add a javascript function that gets called when the page loads in one of my views? Thanks, steve

---

## [Ticket #11394, Adding ActiveRecord::Errors#merge! method](https://www.ruby-forum.com/t/ticket-11394-adding-activerecord-errors-merge-method/133080)

<div class="topic-metadata">

**Author:** [@zdennis](https://www.ruby-forum.com/u/zdennis)\
**Replies:** 2\
**Last updated:** [March 27, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/ticket-11394-adding-activerecord-errors-merge-method/133080 "2008-03-27T16:15:02Z")

</div>

Ticket 11394 adds the merge! method to any ActiveRecord::Errors object. If anyone has time to review the ticket and post their comments on if they like the idea of having this functionality: http://dev.rubyonrails.org…

---

## [Partial not passing](https://www.ruby-forum.com/t/partial-not-passing/133076)

<div class="topic-metadata">

**Author:** [@hgtesta](https://www.ruby-forum.com/u/hgtesta)\
**Replies:** 3\
**Last updated:** [March 27, 2008, 2:32pm UTC](https://www.ruby-forum.com/t/partial-not-passing/133076 "2008-03-27T14:32:26Z")

</div>

Hi there, I have a partial like this: \<%= render :partial =\> @person.address %\> and in app/views/addresses/\_address.html.erb: Street: \<%= address.street %\> But address in the partial is nil… shouldn’t the local vari…

---

## [Creating customize XML](https://www.ruby-forum.com/t/creating-customize-xml/133070)

<div class="topic-metadata">

**Author:** [@ekta](https://www.ruby-forum.com/u/ekta)\
**Replies:** 1\
**Last updated:** [March 27, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/creating-customize-xml/133070 "2008-03-27T14:07:59Z")

</div>

I have database in MYSQL, from its two table , I want to create XML. I extracted the data from the table A using active record and that data can be saved in another table in the form of XML also. But inside the extrac…

---

## [Webpage has expired](https://www.ruby-forum.com/t/webpage-has-expired/115576)

<div class="topic-metadata">

**Author:** [@teesea](https://www.ruby-forum.com/u/teesea)\
**Replies:** 4\
**Last updated:** [March 27, 2008, 1:32pm UTC](https://www.ruby-forum.com/t/webpage-has-expired/115576 "2008-03-27T13:32:41Z")

</div>

Hi I am currently getting this error in IE7 Most likely cause: The local copy of this webpage is out of date, and the website requires that you download it again. What you can try: Click on the Refresh button on t…

---

## [Rails server benchmarks](https://www.ruby-forum.com/t/rails-server-benchmarks/133072)

<div class="topic-metadata">

**Author:** [@Jan\_De\_Poorter](https://www.ruby-forum.com/u/Jan_De_Poorter)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 1:06pm UTC](https://www.ruby-forum.com/t/rails-server-benchmarks/133072 "2008-03-27T13:06:12Z")

</div>

Hello rails-talk, A colleague of me recently did some benchmarking on different ways to server Rails (Lighttpd + FCgi, Lighttpd+Thin, Nginx+Ebb, and so on) to find the best solution for our shared hosting. He did a wr…

---

## [Rails 2.0 and current\_user](https://www.ruby-forum.com/t/rails-2-0-and-current-user/133067)

<div class="topic-metadata">

**Author:** [@pubclub](https://www.ruby-forum.com/u/pubclub)\
**Replies:** 4\
**Last updated:** [March 27, 2008, 12:56pm UTC](https://www.ruby-forum.com/t/rails-2-0-and-current-user/133067 "2008-03-27T12:56:08Z")

</div>

Hello, I am setting up a Rails 2.0 project where i am using acts\_as\_authenticated as my user ‘manager’. I am trying to use the scope\_out plugin to group users into a Account. In order for that to work i need to use t…

---

## [Ruby and rjs](https://www.ruby-forum.com/t/ruby-and-rjs/133054)

<div class="topic-metadata">

**Author:** [@suneeta](https://www.ruby-forum.com/u/suneeta)\
**Replies:** 2\
**Last updated:** [March 27, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/ruby-and-rjs/133054 "2008-03-27T12:45:43Z")

</div>

Hi all… Can we write ruby code directly in an rjs file? I have to replace a div with \<%= text\_field “ciclass”, “name”, “size” =\> 20, “value” =\> @class\_name, :readonly =\> “readonly” %\> \<%= hidden\_field “ci”, “ci\_clas…

---

## [Model.update and associations](https://www.ruby-forum.com/t/model-update-and-associations/133023)

<div class="topic-metadata">

**Author:** [@simonr](https://www.ruby-forum.com/u/simonr)\
**Replies:** 3\
**Last updated:** [March 27, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/model-update-and-associations/133023 "2008-03-27T12:30:29Z")

</div>

Hi all, Just a strange little one I came across this afternoon, I’d much appreciate any thoughts any of you might have on it… I was just implementing a small AJAX list sorter on a project, however when I passed the “…

---

## [FlexImage pre-processing avec beer in brazil](https://www.ruby-forum.com/t/fleximage-pre-processing-avec-beer-in-brazil/132738)

<div class="topic-metadata">

**Author:** [@gattone](https://www.ruby-forum.com/u/gattone)\
**Replies:** 3\
**Last updated:** [March 27, 2008, 12:05pm UTC](https://www.ruby-forum.com/t/fleximage-pre-processing-avec-beer-in-brazil/132738 "2008-03-27T12:05:36Z")

</div>

Hi everyone… Since i can’t find noob friendly information about rmagick and fleximage on the web, I’m here offering a beer for the one good soul who can help me to get rid of my ignorance. I’ve been trying for weeks …

---

## [Problem with webcal](https://www.ruby-forum.com/t/problem-with-webcal/133064)

<div class="topic-metadata">

**Author:** [@vamsi](https://www.ruby-forum.com/u/vamsi)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 11:59am UTC](https://www.ruby-forum.com/t/problem-with-webcal/133064 "2008-03-27T11:59:46Z")

</div>

Hi can any body help regarding the error that i got while using webcal the error is: ERROR LOADING THE CALENDAR there was an error loading the claendar,“1127askldk12111111” please reply as early as possi…

---

## [Getting IO error while uploading file on sever](https://www.ruby-forum.com/t/getting-io-error-while-uploading-file-on-sever/133062)

<div class="topic-metadata">

**Author:** [@ajay](https://www.ruby-forum.com/u/ajay)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 10:41am UTC](https://www.ruby-forum.com/t/getting-io-error-while-uploading-file-on-sever/133062 "2008-03-27T10:41:05Z")

</div>

I am using flex 3, actionscript 3 and rails for developing a small application. I want to upload a file on server in a particular directory but i am getting the IO error at run time. Please help me fixing this bug. C…

---

## [Response time problem](https://www.ruby-forum.com/t/response-time-problem/132547)

<div class="topic-metadata">

**Author:** [@Mukund](https://www.ruby-forum.com/u/Mukund)\
**Replies:** 3\
**Last updated:** [March 27, 2008, 10:26am UTC](https://www.ruby-forum.com/t/response-time-problem/132547 "2008-03-27T10:26:58Z")

</div>

About your application’s environment Ruby version 1.8.6 (x86\_64-linux) RubyGems version 1.0.1 Rails version 2.0.2 Active Record version 2.0.2 Action Pack version 2.0.2 Ac…

---

## [Bundled\_resources plugin : slow download](https://www.ruby-forum.com/t/bundled-resources-plugin-slow-download/133060)

<div class="topic-metadata">

**Author:** [@hildegunst](https://www.ruby-forum.com/u/hildegunst)\
**Replies:** 0\
**Last updated:** [March 27, 2008, 10:09am UTC](https://www.ruby-forum.com/t/bundled-resources-plugin-slow-download/133060 "2008-03-27T10:09:48Z")

</div>

Hello, I am using the bundled\_resources plugin v0.9 from Duan Johnson. It is a cool plugin that makes dynarch calendar, lightbox and some other usefull javascript stuff easier to integrate in a Rails application. How…

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

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