# Rails

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

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

---

## [Helper method](https://www.ruby-forum.com/t/helper-method/107317)

<div class="topic-metadata">

**Author:** [@apsingh1981](https://www.ruby-forum.com/u/apsingh1981)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 12:34pm UTC](https://www.ruby-forum.com/t/helper-method/107317 "2007-06-20T12:34:33Z")

</div>

Hi … Can anyone please let me know what will be the helper method for this loop … My code is like this , which i have placed in view … \<% @lost\_ftl.each do |i|%\> \<%= i.title %\> From \<%= …

---

## [Find\_by\_parent\_id](https://www.ruby-forum.com/t/find-by-parent-id/107300)

<div class="topic-metadata">

**Author:** [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/find-by-parent-id/107300 "2007-06-20T12:26:07Z")

</div>

I guess it will return all the objects whose parent\_id is assigned. But I get only an object. I have to do like these @parent\_id = params\[:parent\_id\] if @parent\_id.nil? conditions = \["parent\_id is null"\] else con…

---

## [ActionMailer into a Component](https://www.ruby-forum.com/t/actionmailer-into-a-component/107314)

<div class="topic-metadata">

**Author:** [@laurent](https://www.ruby-forum.com/u/laurent)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 12:16pm UTC](https://www.ruby-forum.com/t/actionmailer-into-a-component/107314 "2007-06-20T12:16:07Z")

</div>

Hello I’ve created a little component rsbt (for really Simple Bug Tracker) : \<app\_root\>/components/rsbt Inside this component i have my MVC : bt\_controller.rb , bug.rb (model) and the view (into a ‘bt’ subfolder) Th…

---

## [Gem is an evil?](https://www.ruby-forum.com/t/gem-is-an-evil/107277)

<div class="topic-metadata">

**Author:** [@Valery](https://www.ruby-forum.com/u/Valery)\
**Replies:** 6\
**Last updated:** [June 20, 2007, 11:54am UTC](https://www.ruby-forum.com/t/gem-is-an-evil/107277 "2007-06-20T11:54:04Z")

</div>

Hi all, looks like “gem update” killed my application. it was a very simplistic application that i carefully cooked under ubuntu after the selfprepared recipe: rails+goldberg+activescaffold+capistrano+mongrel+apache…

---

## [ActiveRecord: update fails when field content inlcudes a sin](https://www.ruby-forum.com/t/activerecord-update-fails-when-field-content-inlcudes-a-sin/107143)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 9\
**Last updated:** [June 20, 2007, 11:30am UTC](https://www.ruby-forum.com/t/activerecord-update-fails-when-field-content-inlcudes-a-sin/107143 "2007-06-20T11:30:53Z")

</div>

Hello, I received the following error when updating a field in an activerecord which contains an single quote “’” ActiveRecord::StatementInvalid (DBI::DatabaseError: Execute OLE error code:80040E14 in Microsoft OLE D…

---

## [RJS call in :complete of form\_remote\_tag](https://www.ruby-forum.com/t/rjs-call-in-complete-of-form-remote-tag/107084)

<div class="topic-metadata">

**Author:** [@max](https://www.ruby-forum.com/u/max)\
**Replies:** 5\
**Last updated:** [June 20, 2007, 11:21am UTC](https://www.ruby-forum.com/t/rjs-call-in-complete-of-form-remote-tag/107084 "2007-06-20T11:21:57Z")

</div>

Hi, this should be easy: I have a “test.rjs” and I want to call it from the :complete of a form\_remote\_tag. How would I do that? Thanks, Max

---

## [Plugin not working after update](https://www.ruby-forum.com/t/plugin-not-working-after-update/107307)

<div class="topic-metadata">

**Author:** [@sprachprofi](https://www.ruby-forum.com/u/sprachprofi)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 10:59am UTC](https://www.ruby-forum.com/t/plugin-not-working-after-update/107307 "2007-06-20T10:59:53Z")

</div>

Hello, I created a forum in RoR using the acts\_as\_threaded plugin for the Esperanto social networking site www.amikumu.com. After the recent update to the latest version of RoR, adding new posts to the forum is no lo…

---

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

<div class="topic-metadata">

**Author:** [@guest](https://www.ruby-forum.com/u/guest)\
**Replies:** 4\
**Last updated:** [June 20, 2007, 10:55am UTC](https://www.ruby-forum.com/t/params/107296 "2007-06-20T10:55:33Z")

</div>

Hallo I have the Problem that i give a parameter from the the Controller to the view and then i want to give back that Parameter from the view to the controller! But it doesn’t work. Please can somebody help me! \<% f…

---

## [Cgi on ruby rails](https://www.ruby-forum.com/t/cgi-on-ruby-rails/107303)

<div class="topic-metadata">

**Author:** [@matteobo77](https://www.ruby-forum.com/u/matteobo77)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 10:53am UTC](https://www.ruby-forum.com/t/cgi-on-ruby-rails/107303 "2007-06-20T10:53:44Z")

</div>

Hi, I have problem to run a little example of cgi. When I execute a program with statement cgi = CGI.new(“html4”) , interpreter tell me to insert acouples of values. Whi?

---

## [Hello world](https://www.ruby-forum.com/t/hello-world/107298)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 6\
**Last updated:** [June 20, 2007, 10:51am UTC](https://www.ruby-forum.com/t/hello-world/107298 "2007-06-20T10:51:52Z")

</div>

I’ve done these steps before, but am retracing my steps. Now, it generates an error and I’m not sure why. Navigating to \<http:// localhost:3000/hello\> gives: "Action Controller: Exception caught Unknown action No …

---

## [Auto #valid? good or bad idea for tests?](https://www.ruby-forum.com/t/auto-valid-good-or-bad-idea-for-tests/107305)

<div class="topic-metadata">

**Author:** [@joenova](https://www.ruby-forum.com/u/joenova)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 10:45am UTC](https://www.ruby-forum.com/t/auto-valid-good-or-bad-idea-for-tests/107305 "2007-06-20T10:45:52Z")

</div>

I’ve recently added this to the bottom of my test\_helper.rb (it should really be in its own file, but first I want to get feedback): module ActiveRecord class Errors alias\_method :old\_on, :on def on(attribute) self…

---

## [Html format](https://www.ruby-forum.com/t/html-format/107288)

<div class="topic-metadata">

**Author:** [@cfingerh](https://www.ruby-forum.com/u/cfingerh)\
**Replies:** 8\
**Last updated:** [June 20, 2007, 10:21am UTC](https://www.ruby-forum.com/t/html-format/107288 "2007-06-20T10:21:48Z")

</div>

Hi, i have a text field in html format “It is a sunny day. Bye” When i put in the rhtml \<%= news.text\_field %\> I get printed the text with the tags inside… is there a to\_html or soemthing like that? thanks Chr…

---

## [Why do large posts fail from gmane?](https://www.ruby-forum.com/t/why-do-large-posts-fail-from-gmane/107301)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 10:09am UTC](https://www.ruby-forum.com/t/why-do-large-posts-fail-from-gmane/107301 "2007-06-20T10:09:45Z")

</div>

I much prefer gmane over a web browser for lists and so forth, but large posts fail to this particular list. small posts work fine 100% of the time. Just thought that I’d mention it. Maybe it’s more widespread and i…

---

## [Sequence name prefix](https://www.ruby-forum.com/t/sequence-name-prefix/107217)

<div class="topic-metadata">

**Author:** [@isaphan](https://www.ruby-forum.com/u/isaphan)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 9:54am UTC](https://www.ruby-forum.com/t/sequence-name-prefix/107217 "2007-06-20T09:54:44Z")

</div>

In Postgres, I use different database schemas for each application, by declaring, e.g.: class ApplicationController \< ActionController::Base ActiveRecord::Base.table\_name\_prefix = “keywords.” end I assumed that the …

---

## [Good rails hosting](https://www.ruby-forum.com/t/good-rails-hosting/107285)

<div class="topic-metadata">

**Author:** [@reacher](https://www.ruby-forum.com/u/reacher)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 9:36am UTC](https://www.ruby-forum.com/t/good-rails-hosting/107285 "2007-06-20T09:36:43Z")

</div>

I’m looking to switch web hosting companies and was wondering if any reputable ones offer Ruby on Rails support. I’ve played with rails for a few months or so, and want to see my work published live.

---

## [Mysql-5.0.41 and mysql native gem](https://www.ruby-forum.com/t/mysql-5-0-41-and-mysql-native-gem/107105)

<div class="topic-metadata">

**Author:** [@rlwinter](https://www.ruby-forum.com/u/rlwinter)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 9:04am UTC](https://www.ruby-forum.com/t/mysql-5-0-41-and-mysql-native-gem/107105 "2007-06-20T09:04:41Z")

</div>

Has anyone else had problems with the mysql native gem when using MySQL 5.0.41. It appears that this version of MySQL has moved some depended library files. I rolled back to MySQL 5.0.37 and all seems to be working …

---

## [Fixtures using csv](https://www.ruby-forum.com/t/fixtures-using-csv/107237)

<div class="topic-metadata">

**Author:** [@Florian\_ASSSSmann](https://www.ruby-forum.com/u/Florian_ASSSSmann)\
**Replies:** 5\
**Last updated:** [June 20, 2007, 8:45am UTC](https://www.ruby-forum.com/t/fixtures-using-csv/107237 "2007-06-20T08:45:40Z")

</div>

Hi there, I got a Problem using comma-seperated-values as fixtures. It simply does not fixture anything, no error message at all. :frowning: Here my code (… =\> RAILS\_ROOT): the test in …/test/unit/uk/incode\_test.rb r…

---

## [Strings symbols and databases](https://www.ruby-forum.com/t/strings-symbols-and-databases/107295)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 8:25am UTC](https://www.ruby-forum.com/t/strings-symbols-and-databases/107295 "2007-06-20T08:25:38Z")

</div>

What is the preferred method of saving a hash with symbols as keys to the db? I tried to find this addressed in the archives, already, but came up empty. Since \<%= text\_field %\> creates hashes with symbols by default,…

---

## [Ruby on Rails Web site Developer/Designer](https://www.ruby-forum.com/t/ruby-on-rails-web-site-developer-designer/107270)

<div class="topic-metadata">

**Author:** [@tom](https://www.ruby-forum.com/u/tom)\
**Replies:** 1\
**Last updated:** [June 20, 2007, 8:21am UTC](https://www.ruby-forum.com/t/ruby-on-rails-web-site-developer-designer/107270 "2007-06-20T08:21:40Z")

</div>

We are a start up record label looking for a web developer/designer to build our new site using Ruby. The site will be complex and will require a variety of features, including e-commerce, a CMS with individual artist…

---

## [Basecamp and tada killer](https://www.ruby-forum.com/t/basecamp-and-tada-killer/107289)

<div class="topic-metadata">

**Author:** [@addam](https://www.ruby-forum.com/u/addam)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 8:09am UTC](https://www.ruby-forum.com/t/basecamp-and-tada-killer/107289 "2007-06-20T08:09:37Z")

</div>

Hi every body, After trying the baescamp and tada web applications of 37signals I have been impressioned. After googling I found some opensource basecamp-like projects in other languages such php but I haven’t found …

---

## [Nested tanavs based on controller/actions](https://www.ruby-forum.com/t/nested-tanavs-based-on-controller-actions/107291)

<div class="topic-metadata">

**Author:** [@ezhuthukaaran](https://www.ruby-forum.com/u/ezhuthukaaran)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 7:03am UTC](https://www.ruby-forum.com/t/nested-tanavs-based-on-controller-actions/107291 "2007-06-20T07:03:28Z")

</div>

How to nest tabnavs such that the first row has the all the controllers and the second row has all the methods/actions of the selected controller. Each first row tab element ‘named’ =\> should be equal to @controller.…

---

## [Basecamp and tada killer](https://www.ruby-forum.com/t/basecamp-and-tada-killer/107286)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 5:47am UTC](https://www.ruby-forum.com/t/basecamp-and-tada-killer/107286 "2007-06-20T05:47:25Z")

</div>

Hi every body, After trying the baescamp and tada web applications of 37signals I have been impressioned. After googling I found some opensource basecamp-like projects in other languages such php but I haven’t found …

---

## [Update\_attributes, want to add not replace?](https://www.ruby-forum.com/t/update-attributes-want-to-add-not-replace/107049)

<div class="topic-metadata">

**Author:** [@pappa-gottis](https://www.ruby-forum.com/u/pappa-gottis)\
**Replies:** 5\
**Last updated:** [June 20, 2007, 5:31am UTC](https://www.ruby-forum.com/t/update-attributes-want-to-add-not-replace/107049 "2007-06-20T05:31:42Z")

</div>

Hi hi, I am currently changing some things in an old Ruby on Rails application, and I have run into a little problem. This is how the function at hand looks like: def update\_js @url = params\[:webpage\]\[:url\] @webpag…

---

## [After 1.2 upgrade - a copy of X has been removed from the mo](https://www.ruby-forum.com/t/after-1-2-upgrade-a-copy-of-x-has-been-removed-from-the-mo/107284)

<div class="topic-metadata">

**Author:** [@David\_L\_Bean](https://www.ruby-forum.com/u/David_L_Bean)\
**Replies:** 0\
**Last updated:** [June 20, 2007, 3:37am UTC](https://www.ruby-forum.com/t/after-1-2-upgrade-a-copy-of-x-has-been-removed-from-the-mo/107284 "2007-06-20T03:37:19Z")

</div>

All, I’ve been diligently looking for a complete answer to the following question, but I haven’t seen any real resolution to it. Anyone have any new news? Problem: After associating an authentication method of the …

---

## [Binary upload and parsing with Rails](https://www.ruby-forum.com/t/binary-upload-and-parsing-with-rails/107279)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 1\
**Last updated:** [June 20, 2007, 1:53am UTC](https://www.ruby-forum.com/t/binary-upload-and-parsing-with-rails/107279 "2007-06-20T01:53:12Z")

</div>

What is the best way for me to upload a binary file to a Rails site? I’ll be uploading from a .NET client. What is the best way to parse the binary file to extract the data? Would I need to “drop” to C and read th…

---

## [Link\_To\_Remote Incrementing](https://www.ruby-forum.com/t/link-to-remote-incrementing/107192)

<div class="topic-metadata">

**Author:** [@sixofhearts](https://www.ruby-forum.com/u/sixofhearts)\
**Replies:** 6\
**Last updated:** [June 20, 2007, 1:53am UTC](https://www.ruby-forum.com/t/link-to-remote-incrementing/107192 "2007-06-20T01:53:01Z")

</div>

Hey folks, I’m new to Ruby and Rails, so I’d like to ask you a quick question on how to make my program work as I need to. What I want to do is, have a link\_to\_remote called “Click Me!” which, upon clicking, will cre…

---

## [Insert records into MySQL](https://www.ruby-forum.com/t/insert-records-into-mysql/107196)

<div class="topic-metadata">

**Author:** [@randall](https://www.ruby-forum.com/u/randall)\
**Replies:** 3\
**Last updated:** [June 20, 2007, 1:20am UTC](https://www.ruby-forum.com/t/insert-records-into-mysql/107196 "2007-06-20T01:20:18Z")

</div>

Hello all, I am struggling with a part of code and not sure where to start my research. I have created code that will insert a record into MySQL. It uses the usual standard code created by scaffold: def create @g…

---

## [Inflector problem?](https://www.ruby-forum.com/t/inflector-problem/107245)

<div class="topic-metadata">

**Author:** [@emmanueloga](https://www.ruby-forum.com/u/emmanueloga)\
**Replies:** 1\
**Last updated:** [June 20, 2007, 12:22am UTC](https://www.ruby-forum.com/t/inflector-problem/107245 "2007-06-20T00:22:04Z")

</div>

Hi, i think i have an inflector problem, 'cause my “has\_many through” association is failing like this: Mysql::Error: #42S22Unknown column ‘prod\_thicknesses\_prod\_codes\_join.prod\_thicknes\_id’ in ‘on clause’: SELECT c…

---

## [Extending left outer joins when using active eager loading](https://www.ruby-forum.com/t/extending-left-outer-joins-when-using-active-eager-loading/106977)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [June 20, 2007, 12:05am UTC](https://www.ruby-forum.com/t/extending-left-outer-joins-when-using-active-eager-loading/106977 "2007-06-20T00:05:46Z")

</div>

Hi, From the ActiveRecord::Associations::ClassMethods docs, there is the following: “for post in Post.find(:all, :include =\> \[ :author, :comments \])” “Thatâ€˜ll add another join along the lines of: LEFT OUTER JOIN co…

---

## [How to specify condition for eagerly joined model using :inc](https://www.ruby-forum.com/t/how-to-specify-condition-for-eagerly-joined-model-using-inc/69814)

<div class="topic-metadata">

**Author:** [@Hammed\_M](https://www.ruby-forum.com/u/Hammed_M)\
**Replies:** 7\
**Last updated:** [June 20, 2007, 12:04am UTC](https://www.ruby-forum.com/t/how-to-specify-condition-for-eagerly-joined-model-using-inc/69814 "2007-06-20T00:04:08Z")

</div>

I’d like to specify conditions for a model that I’m left outer joining using :include. A simplification of the problem: User.find :all, :include =\> :addresses, :conditions =\> \[“addresses.is\_active = 1”\] Results in th…

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

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