# Rails

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

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

---

## [Models that reference themselves](https://www.ruby-forum.com/t/models-that-reference-themselves/117047)

<div class="topic-metadata">

**Author:** [@DavidH](https://www.ruby-forum.com/u/DavidH)\
**Replies:** 3\
**Last updated:** [October 12, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/models-that-reference-themselves/117047 "2007-10-12T14:10:40Z")

</div>

Hi I’m pretty much a newbie to Rails and I have at least two projects under development that are going to need the same type of constructs and I’m struggling to get my head around how to achieve what I want using Rai…

---

## [Using link\_to\_remote from live\_search Resutls](https://www.ruby-forum.com/t/using-link-to-remote-from-live-search-resutls/117050)

<div class="topic-metadata">

**Author:** [@mgiorno](https://www.ruby-forum.com/u/mgiorno)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 12:49pm UTC](https://www.ruby-forum.com/t/using-link-to-remote-from-live-search-resutls/117050 "2007-10-12T12:49:40Z")

</div>

Hi There. I was wondering if anyone one could help me understand how to update a parent element. I’ve basically got some “live search” results being delivered into search\_results, as so: \<div id="page"\> #live search…

---

## [Upload problems](https://www.ruby-forum.com/t/upload-problems/117005)

<div class="topic-metadata">

**Author:** [@brunopreis](https://www.ruby-forum.com/u/brunopreis)\
**Replies:** 1\
**Last updated:** [October 12, 2007, 12:48pm UTC](https://www.ruby-forum.com/t/upload-problems/117005 "2007-10-12T12:48:10Z")

</div>

Hi all, when I try to upload a file with 200kb or less, rails does it fine. But when I try a bigger one, I get the following error: ActiveRecord::StatementInvalid in ConteudoController#enviar\_imagem Mysql::Error: Los…

---

## [Multiple tables query](https://www.ruby-forum.com/t/multiple-tables-query/116682)

<div class="topic-metadata">

**Author:** [@niky81](https://www.ruby-forum.com/u/niky81)\
**Replies:** 1\
**Last updated:** [October 12, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/multiple-tables-query/116682 "2007-10-12T12:29:27Z")

</div>

HI, I’ve read the basic books about ROR and even skimmed the recipes book but can’t find a standard path for my problem. I’ve to show data that due to relationships is going to take more tables, not one or two but 6/7…

---

## [Find :include and :joins?](https://www.ruby-forum.com/t/find-include-and-joins/117045)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 12:29pm UTC](https://www.ruby-forum.com/t/find-include-and-joins/117045 "2007-10-12T12:29:20Z")

</div>

Hello there, I facing some problems with :include, I want to be able to use the :select method or I will end up using the :joins :frowning: JOINS =\> find(:first, :select =\> “messages.\*, users.id as nid, users.nicknam…

---

## [Shopping-web site php codes FULL FREE](https://www.ruby-forum.com/t/shopping-web-site-php-codes-full-free/117044)

<div class="topic-metadata">

**Author:** [@SeksiSeytan](https://www.ruby-forum.com/u/SeksiSeytan)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 12:21pm UTC](https://www.ruby-forum.com/t/shopping-web-site-php-codes-full-free/117044 "2007-10-12T12:21:50Z")

</div>

shopping-web site php codes http://www.yenisaclarim.com

---

## [Acts\_as\_commentable?](https://www.ruby-forum.com/t/acts-as-commentable/117039)

<div class="topic-metadata">

**Author:** [@apie](https://www.ruby-forum.com/u/apie)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 11:30am UTC](https://www.ruby-forum.com/t/acts-as-commentable/117039 "2007-10-12T11:30:18Z")

</div>

Hi, I worked with acts\_as\_commentable a while ago, but haven’t been keeping up to date with similar plugins. Is acts\_as\_commentable still the default plugin for adding commenting functionality to a number of models? …

---

## [Utf8 myslq search](https://www.ruby-forum.com/t/utf8-myslq-search/117037)

<div class="topic-metadata">

**Author:** [@karps](https://www.ruby-forum.com/u/karps)\
**Replies:** 3\
**Last updated:** [October 12, 2007, 11:06am UTC](https://www.ruby-forum.com/t/utf8-myslq-search/117037 "2007-10-12T11:06:04Z")

</div>

how do search in mysql by utf8?

---

## [Can I run ERb instructions in a test fixture YML file?](https://www.ruby-forum.com/t/can-i-run-erb-instructions-in-a-test-fixture-yml-file/117026)

<div class="topic-metadata">

**Author:** [@Ranieri\_T](https://www.ruby-forum.com/u/Ranieri_T)\
**Replies:** 1\
**Last updated:** [October 12, 2007, 10:46am UTC](https://www.ruby-forum.com/t/can-i-run-erb-instructions-in-a-test-fixture-yml-file/117026 "2007-10-12T10:46:20Z")

</div>

I think that fixtures file must contains raw (final value) data. By using a file from the ebook “Build Your Own Ruby on Rails Web Applications” by Patrick Lenz, I’ve trying to run the line “created\_at: \<% Time.now.to\_…

---

## [If you have hair loss problem this will help you](https://www.ruby-forum.com/t/if-you-have-hair-loss-problem-this-will-help-you/196486)

<div class="topic-metadata">

**Author:** [@SeksiSeytan](https://www.ruby-forum.com/u/SeksiSeytan)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 9:15am UTC](https://www.ruby-forum.com/t/if-you-have-hair-loss-problem-this-will-help-you/196486 "2007-10-12T09:15:39Z")

</div>

if you have hair loss problem this will help you http://www.yenisaclarim.com

---

## [Problem with show and hide div on mouse events](https://www.ruby-forum.com/t/problem-with-show-and-hide-div-on-mouse-events/117031)

<div class="topic-metadata">

**Author:** [@kirankinuforu](https://www.ruby-forum.com/u/kirankinuforu)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 8:24am UTC](https://www.ruby-forum.com/t/problem-with-show-and-hide-div-on-mouse-events/117031 "2007-10-12T08:24:40Z")

</div>

Hi, Friends, I am new to Ruby On Rails, I want to implement show and hide div on mouseover and mouseout events, I have tried by various ways using .rjs(Ruby Javascript) and Ajax also but its not working smoothly as I …

---

## [Users and Photos - Is this the best way?](https://www.ruby-forum.com/t/users-and-photos-is-this-the-best-way/116868)

<div class="topic-metadata">

**Author:** [@sshefer](https://www.ruby-forum.com/u/sshefer)\
**Replies:** 2\
**Last updated:** [October 12, 2007, 6:02am UTC](https://www.ruby-forum.com/t/users-and-photos-is-this-the-best-way/116868 "2007-10-12T06:02:10Z")

</div>

Hi, I have a user and photo model where a user has one photo (using attachment\_fu). I have copied my user actions for create and update below, and I was wondering if someone could suggest a better method. I’m just n…

---

## [How to get Agile Web Development with rails source code](https://www.ruby-forum.com/t/how-to-get-agile-web-development-with-rails-source-code/117018)

<div class="topic-metadata">

**Author:** [@ChandleWEi](https://www.ruby-forum.com/u/ChandleWEi)\
**Replies:** 2\
**Last updated:** [October 12, 2007, 5:11am UTC](https://www.ruby-forum.com/t/how-to-get-agile-web-development-with-rails-source-code/117018 "2007-10-12T05:11:54Z")

</div>

I try to get http://media.pragprog.com/titles/rails2/code/rails2-code.tgz but response 440 fail

---

## [Composed\_of vs has\_one](https://www.ruby-forum.com/t/composed-of-vs-has-one/117015)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 3:23am UTC](https://www.ruby-forum.com/t/composed-of-vs-has-one/117015 "2007-10-12T03:23:05Z")

</div>

Im trying to decide how to model very simple relationships in ActiveRecord. My understanding is that as far as database performance goes, using composed\_of will be easier on the database but a little ackward when wor…

---

## [How to save an object with its associations into session](https://www.ruby-forum.com/t/how-to-save-an-object-with-its-associations-into-session/116972)

<div class="topic-metadata">

**Author:** [@brunopreis](https://www.ruby-forum.com/u/brunopreis)\
**Replies:** 3\
**Last updated:** [October 12, 2007, 2:42am UTC](https://www.ruby-forum.com/t/how-to-save-an-object-with-its-associations-into-session/116972 "2007-10-12T02:42:28Z")

</div>

Hi, How do I save an object with its children into the session? By default AR cleans the children when I put the object there. And if someone knows any docs about that please show the link. Thks, Bruno R.

---

## [Composed\_of automatically instantiated with include?](https://www.ruby-forum.com/t/composed-of-automatically-instantiated-with-include/117013)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 2:17am UTC](https://www.ruby-forum.com/t/composed-of-automatically-instantiated-with-include/117013 "2007-10-12T02:17:07Z")

</div>

Im currently using composed\_of in many places in my AR models where I don’t want to do a has\_one association. The problem is, is that I would like to model instantiated immediately when it is found. For example: class…

---

## [Ruby on Rails Tutor Needed in Los Angeles](https://www.ruby-forum.com/t/ruby-on-rails-tutor-needed-in-los-angeles/116961)

<div class="topic-metadata">

**Author:** [@banry](https://www.ruby-forum.com/u/banry)\
**Replies:** 3\
**Last updated:** [October 12, 2007, 2:07am UTC](https://www.ruby-forum.com/t/ruby-on-rails-tutor-needed-in-los-angeles/116961 "2007-10-12T02:07:51Z")

</div>

I learned tcl, html and sql to create a database-backed website (tightcircle.com, now defunct). That was fun. Now I want to learn Ruby on Rails. I wrote some decent Ruby programs in July, including one that scraped a …

---

## [If you have hair loss problem this will help you](https://www.ruby-forum.com/t/if-you-have-hair-loss-problem-this-will-help-you/117010)

<div class="topic-metadata">

**Author:** [@SeksiSeytan](https://www.ruby-forum.com/u/SeksiSeytan)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 1:22am UTC](https://www.ruby-forum.com/t/if-you-have-hair-loss-problem-this-will-help-you/117010 "2007-10-12T01:22:51Z")

</div>

if you have hair loss problem this will help you http://www.yenisaclarim.com

---

## [If you have hair losss problem you must visit this site](https://www.ruby-forum.com/t/if-you-have-hair-losss-problem-you-must-visit-this-site/117007)

<div class="topic-metadata">

**Author:** [@SeksiSeytan](https://www.ruby-forum.com/u/SeksiSeytan)\
**Replies:** 0\
**Last updated:** [October 12, 2007, 1:05am UTC](https://www.ruby-forum.com/t/if-you-have-hair-losss-problem-you-must-visit-this-site/117007 "2007-10-12T01:05:20Z")

</div>

if you have hair losss problem you must visit this site http://www.yenisaclarim.com

---

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

<div class="topic-metadata">

**Author:** [@narozk](https://www.ruby-forum.com/u/narozk)\
**Replies:** 6\
**Last updated:** [October 12, 2007, 12:50am UTC](https://www.ruby-forum.com/t/params-in-partials/116976 "2007-10-12T00:50:42Z")

</div>

I have a navigation bar which buttons should activate themselves on click but “params\[:thistheme\]” is always nil in my partial. Why? my view \<%= render :partial =\> ‘shared/themeMnuBtn\_1’ %\> \_themeMnuBtn\_1 \<% if params…

---

## [Custom rescue\_action\_\* methods not being called?](https://www.ruby-forum.com/t/custom-rescue-action-methods-not-being-called/116999)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 0\
**Last updated:** [October 11, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/custom-rescue-action-methods-not-being-called/116999 "2007-10-11T23:25:00Z")

</div>

All, Rails 1.1.6 Ruby 1.8.6 Win XP It appears that none of my rescue\_action\_\* methods, if defined in my application.rb file, are being called. I’ve placed debug statements inside of the ActionController Rescue mod…

---

## [Php to rails](https://www.ruby-forum.com/t/php-to-rails/116997)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 11, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/php-to-rails/116997 "2007-10-11T23:02:27Z")

</div>

looking for someone to convert a php program to rails. removed\_email\_address@domain.invalid

---

## [Simple division problems... I know horrible!](https://www.ruby-forum.com/t/simple-division-problems-i-know-horrible/116987)

<div class="topic-metadata">

**Author:** [@new\_rails-ny](https://www.ruby-forum.com/u/new_rails-ny)\
**Replies:** 3\
**Last updated:** [October 11, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/simple-division-problems-i-know-horrible/116987 "2007-10-11T23:02:27Z")

</div>

Hey all, Thanks for your time here but I am having problems with something that should be so simple… @campaigns = Campaign.find(:all, :conditions =\> \[“end\_date \>= ?”, Date.today\]) @total\_running = Campaign.sum(:impr…

---

## [RubyAMF methods not being found - plugin not being included?](https://www.ruby-forum.com/t/rubyamf-methods-not-being-found-plugin-not-being-included/116979)

<div class="topic-metadata">

**Author:** [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Replies:** 0\
**Last updated:** [October 11, 2007, 8:46pm UTC](https://www.ruby-forum.com/t/rubyamf-methods-not-being-found-plugin-not-being-included/116979 "2007-10-11T20:46:46Z")

</div>

Hi, Im trying to use rubyAMF, and I installed the plugin into my vendor/plugins directory. However, it doesnt seem to be loading the active\_record and action\_controller utilities. There is a method in rubyAMF called …

---

## [Multiple forms for same model - DOM id collision?](https://www.ruby-forum.com/t/multiple-forms-for-same-model-dom-id-collision/116977)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [October 11, 2007, 8:41pm UTC](https://www.ruby-forum.com/t/multiple-forms-for-same-model-dom-id-collision/116977 "2007-10-11T20:41:20Z")

</div>

I’m hoping someone can point me to what the “best practice” is… The basic scenario is a page with two AJAX forms for the same model. One is to create a new object, while another is to edit an existing object of the …

---

## [How to create new row (relationship)?](https://www.ruby-forum.com/t/how-to-create-new-row-relationship/116973)

<div class="topic-metadata">

**Author:** [@jamal](https://www.ruby-forum.com/u/jamal)\
**Replies:** 1\
**Last updated:** [October 11, 2007, 8:15pm UTC](https://www.ruby-forum.com/t/how-to-create-new-row-relationship/116973 "2007-10-11T20:15:53Z")

</div>

Hi, I have some problems creating new rows based on relationship :slight\_smile: I’m using has\_and\_belongs\_to\_many Groups \<=\> ContactsGroups \<=\> Contacts When I type in Irb this: Group.find(4).contacts I get the fol…

---

## [Tests](https://www.ruby-forum.com/t/tests/116953)

<div class="topic-metadata">

**Author:** [@whitewolfaustria](https://www.ruby-forum.com/u/whitewolfaustria)\
**Replies:** 1\
**Last updated:** [October 11, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/tests/116953 "2007-10-11T20:12:08Z")

</div>

Hi all I am testing my model. My model has validates presence of and a validate function that assumes that there is something in a variable that I have based on the aect that it has validates its presence. when I cal…

---

## [Opinion on default values -- DB or AR?](https://www.ruby-forum.com/t/opinion-on-default-values-db-or-ar/116968)

<div class="topic-metadata">

**Author:** [@dewie](https://www.ruby-forum.com/u/dewie)\
**Replies:** 2\
**Last updated:** [October 11, 2007, 7:31pm UTC](https://www.ruby-forum.com/t/opinion-on-default-values-db-or-ar/116968 "2007-10-11T19:31:04Z")

</div>

I was working yesterday and realized that I couldn’t find how a model of mine was getting a default value: part = Part.new part.type # 1 I scoured my model and its observer, but such a default had not been programme…

---

## [Advantages of Rails over .NET for web](https://www.ruby-forum.com/t/advantages-of-rails-over-net-for-web/116781)

<div class="topic-metadata">

**Author:** [@jimmyz](https://www.ruby-forum.com/u/jimmyz)\
**Replies:** 8\
**Last updated:** [October 11, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/advantages-of-rails-over-net-for-web/116781 "2007-10-11T19:16:37Z")

</div>

I don’t want to incite a religious war here. I’m looking for case studies and good arguments for using Rails for a large corporate website rather than using .NET. Most of the arguments I see are about Rails vs php or …

---

## [Execute Action at a Specified Time](https://www.ruby-forum.com/t/execute-action-at-a-specified-time/116532)

<div class="topic-metadata">

**Author:** [@david](https://www.ruby-forum.com/u/david)\
**Replies:** 3\
**Last updated:** [October 11, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/execute-action-at-a-specified-time/116532 "2007-10-11T18:47:15Z")

</div>

Hey all. I’m creating an app that that involves sending emails at a specified date-time. I only have one model and it has a “sendat” (:datetime) column. I need to send an email to an email address (also in the model)…

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

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