# Rails

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

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

---

## [Fixture data in the rails console](https://www.ruby-forum.com/t/fixture-data-in-the-rails-console/142316)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 4\
**Last updated:** [July 6, 2008, 10:30pm UTC](https://www.ruby-forum.com/t/fixture-data-in-the-rails-console/142316 "2008-07-06T22:30:45Z")

</div>

How can I load fixture data in the Rails Console for quick testing?

---

## [Unobtrusive javascript/Ajax in Rails](https://www.ruby-forum.com/t/unobtrusive-javascript-ajax-in-rails/142308)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 6\
**Last updated:** [July 6, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/unobtrusive-javascript-ajax-in-rails/142308 "2008-07-06T22:14:05Z")

</div>

Hello list, I have been reading a lot about web standards lately, and specially about unobtrusive javascript. It essentially tells you to get rid of javascript in the view layer ((X)HTML), including event assignment…

---

## [Why did in place editing move to being in a plugin?](https://www.ruby-forum.com/t/why-did-in-place-editing-move-to-being-in-a-plugin/142323)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 2\
**Last updated:** [July 6, 2008, 10:00pm UTC](https://www.ruby-forum.com/t/why-did-in-place-editing-move-to-being-in-a-plugin/142323 "2008-07-06T22:00:33Z")

</div>

Hi, So I just finished installing a plugin for in place editing. It works and everything, but I guess I’m wondering why people decided to move it to a plugin? I would think having it built in would remove a depende…

---

## [Basic routing question](https://www.ruby-forum.com/t/basic-routing-question/142309)

<div class="topic-metadata">

**Author:** [@lazylester](https://www.ruby-forum.com/u/lazylester)\
**Replies:** 2\
**Last updated:** [July 6, 2008, 9:18pm UTC](https://www.ruby-forum.com/t/basic-routing-question/142309 "2008-07-06T21:18:13Z")

</div>

Sorry for such a basic question… total neophyte here! I’ve put a new action “foobar” in my “things” actioncontroller. I want to link to this action in a linkto function… so: \<% link\_to “go to foobar”, :action=\>“foobar…

---

## [Ajax update and running scripts](https://www.ruby-forum.com/t/ajax-update-and-running-scripts/142324)

<div class="topic-metadata">

**Author:** [@arvias](https://www.ruby-forum.com/u/arvias)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 8:58pm UTC](https://www.ruby-forum.com/t/ajax-update-and-running-scripts/142324 "2008-07-06T20:58:22Z")

</div>

Hi, I am using rjs to update a page and send a preview code for a widget. However that code isn’t executed by the browsers. The returned script looks like: After a refresh this code is executed corectly, but when I …

---

## [Install git on ubuntu and Links to rails/git resources](https://www.ruby-forum.com/t/install-git-on-ubuntu-and-links-to-rails-git-resources/142313)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/install-git-on-ubuntu-and-links-to-rails-git-resources/142313 "2008-07-06T17:40:07Z")

</div>

I spent 30 minutes on Google attempting to discover how to install Git on Ubuntu, so I thought I would post this so others may find it. sudo apt-get install git-core simple enough, but it could be gem install, or some…

---

## [Apache HOW-TO](https://www.ruby-forum.com/t/apache-how-to/142166)

<div class="topic-metadata">

**Author:** [@jasonb](https://www.ruby-forum.com/u/jasonb)\
**Replies:** 2\
**Last updated:** [July 6, 2008, 3:29pm UTC](https://www.ruby-forum.com/t/apache-how-to/142166 "2008-07-06T15:29:18Z")

</div>

Can anyone please recommend a good tutorial on how to deploy a rails app on apache? My system info is: linux (non-debian) ruby 1.8.6 (2007-03-13 patchlevel 0) \[i686-linux\] gem -v 1.2.0 rails -v Rails 2.0.2 apachec…

---

## [XHTML/CSS/JS service for Ruby on Rails developers](https://www.ruby-forum.com/t/xhtml-css-js-service-for-ruby-on-rails-developers/142306)

<div class="topic-metadata">

**Author:** [@WOSG\_Services](https://www.ruby-forum.com/u/WOSG_Services)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 3:14pm UTC](https://www.ruby-forum.com/t/xhtml-css-js-service-for-ruby-on-rails-developers/142306 "2008-07-06T15:14:05Z")

</div>

hi, RoR developers: We all know Ruby on Rails is an amazing language for quick web development. We have noticed that many developers can get the backend functionality implemented in hours but frequently stuck with fro…

---

## [How do you encrypt URLs of pages?](https://www.ruby-forum.com/t/how-do-you-encrypt-urls-of-pages/142302)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 1\
**Last updated:** [July 6, 2008, 2:52pm UTC](https://www.ruby-forum.com/t/how-do-you-encrypt-urls-of-pages/142302 "2008-07-06T14:52:25Z")

</div>

I saw that Box.net does this for their shared pages: http://www.box.net/shared/7g4q7pnok4 instead of the usual: http://www.box.net/shared/12345 I Googled for the last hour, but still haven’t found out how to encrypt …

---

## [Date format and parsing to Javascript Date](https://www.ruby-forum.com/t/date-format-and-parsing-to-javascript-date/142276)

<div class="topic-metadata">

**Author:** [@Abel](https://www.ruby-forum.com/u/Abel)\
**Replies:** 3\
**Last updated:** [July 6, 2008, 2:10pm UTC](https://www.ruby-forum.com/t/date-format-and-parsing-to-javascript-date/142276 "2008-07-06T14:10:26Z")

</div>

Rails gives you the possibility to include a field in your tables with the date in wich a record has been updated: updated-at. Well, I can access this filed via xml (I’m developing an Ajax application) so I have it in…

---

## [ActionView::Base.field\_error\_proc not getting an error field](https://www.ruby-forum.com/t/actionview-base-field-error-proc-not-getting-an-error-field/196736)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 1:44pm UTC](https://www.ruby-forum.com/t/actionview-base-field-error-proc-not-getting-an-error-field/196736 "2008-07-06T13:44:32Z")

</div>

In my User form I have standard field to get user record attributes (first\_name, last\_name and email) I also have a select drop\_down to choose a role from an array first\_name, last\_name and email are user record attr…

---

## [Django-like nested templates with Rails layouts](https://www.ruby-forum.com/t/django-like-nested-templates-with-rails-layouts/142284)

<div class="topic-metadata">

**Author:** [@JonSidnell](https://www.ruby-forum.com/u/JonSidnell)\
**Replies:** 2\
**Last updated:** [July 6, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/django-like-nested-templates-with-rails-layouts/142284 "2008-07-06T13:29:55Z")

</div>

Hi everyone I’ve been briefly flirting with Django, and have decided that I’m going to stick with Ruby on Rails for the time being. The only thing I think I’m going to miss is Django’s implementation of nested templa…

---

## [ActionView::Base.field\_error\_proc not getting an error field](https://www.ruby-forum.com/t/actionview-base-field-error-proc-not-getting-an-error-field/142298)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/actionview-base-field-error-proc-not-getting-an-error-field/142298 "2008-07-06T12:45:28Z")

</div>

In my User form I have standard field to get user record attributes (first\_name, last\_name and email) I also have a select drop\_down to choose a role from an array first\_name, last\_name and email are user record attr…

---

## [Copying variables between rows](https://www.ruby-forum.com/t/copying-variables-between-rows/142022)

<div class="topic-metadata">

**Author:** [@MalHayn](https://www.ruby-forum.com/u/MalHayn)\
**Replies:** 3\
**Last updated:** [July 6, 2008, 9:22am UTC](https://www.ruby-forum.com/t/copying-variables-between-rows/142022 "2008-07-06T09:22:31Z")

</div>

Is there an elegant way of copying some variables from one row to another row? Here is the current code: color = Color.find(id, :select =\> “a, b, c, d, e, f”) copy = Color.find(copy, :select =\> “c, d, e”) color.c = …

---

## [\[ANN\] 0.0.5 releases of LogBuddy and CapGun](https://www.ruby-forum.com/t/ann-0-0-5-releases-of-logbuddy-and-capgun/142290)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 7:42am UTC](https://www.ruby-forum.com/t/ann-0-0-5-releases-of-logbuddy-and-capgun/142290 "2008-07-06T07:42:33Z")

</div>

Some long overdue releases of cap\_gun and log\_buddy - both have been updated to version 0.0.5. Both are now available as gems on Relevance · GitHub as well as from rubyforge. CapGun gives you super simple deployment …

---

## [Xmpp4r problems?](https://www.ruby-forum.com/t/xmpp4r-problems/142287)

<div class="topic-metadata">

**Author:** [@joergbattermann](https://www.ruby-forum.com/u/joergbattermann)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 3:49am UTC](https://www.ruby-forum.com/t/xmpp4r-problems/142287 "2008-07-06T03:49:19Z")

</div>

not entirely rails related, but I just wanted to install xmpp4r on a brandnew leopard system and somehow it does not work: macPro:tmp joerg$ ruby -v ruby 1.8.6 (2008-03-03 patchlevel 114) \[universal-darwin9.0\] macPro…

---

## [How to install jrails\_in\_place\_editing plugin manually?](https://www.ruby-forum.com/t/how-to-install-jrails-in-place-editing-plugin-manually/142286)

<div class="topic-metadata">

**Author:** [@rabaukendisko](https://www.ruby-forum.com/u/rabaukendisko)\
**Replies:** 0\
**Last updated:** [July 6, 2008, 2:31am UTC](https://www.ruby-forum.com/t/how-to-install-jrails-in-place-editing-plugin-manually/142286 "2008-07-06T02:31:33Z")

</div>

hello, i’ve been trying for days to install jrails\_in\_place\_editing from github, but couldn’t figure out how to do it. seems a big hassle on windows. so i thought i’m now trying to install it manually. i downloaded a…

---

## [Remove instance of model and its associations](https://www.ruby-forum.com/t/remove-instance-of-model-and-its-associations/142282)

<div class="topic-metadata">

**Author:** [@THEBIGO](https://www.ruby-forum.com/u/THEBIGO)\
**Replies:** 5\
**Last updated:** [July 6, 2008, 1:03am UTC](https://www.ruby-forum.com/t/remove-instance-of-model-and-its-associations/142282 "2008-07-06T01:03:50Z")

</div>

I’m a newb with a quick question. I have a model class Call has\_many :visits and class Visit belongs\_to :call If I delete a call will it automatically delete the associated visits?? Any help will be greatly appr…

---

## [Scaffold Problem](https://www.ruby-forum.com/t/scaffold-problem/142283)

<div class="topic-metadata">

**Author:** [@mdaoust](https://www.ruby-forum.com/u/mdaoust)\
**Replies:** 1\
**Last updated:** [July 6, 2008, 12:17am UTC](https://www.ruby-forum.com/t/scaffold-problem/142283 "2008-07-06T00:17:40Z")

</div>

When i use script/generate scaffold … the code it produces seems to be non-resful, from an older rails version – but the project is rails 2.1 – any clues? Thanks, ~ Mark

---

## [Undefined Method Angst After Rails / Ruby / Gem Updates](https://www.ruby-forum.com/t/undefined-method-angst-after-rails-ruby-gem-updates/142278)

<div class="topic-metadata">

**Author:** [@Jay\_Jansheski](https://www.ruby-forum.com/u/Jay_Jansheski)\
**Replies:** 0\
**Last updated:** [July 5, 2008, 10:14pm UTC](https://www.ruby-forum.com/t/undefined-method-angst-after-rails-ruby-gem-updates/142278 "2008-07-05T22:14:52Z")

</div>

I have what appears to be a problem accessing methods from within an application. I can access them from irb, but not from within the app. In other words: irb(main):001:0\> require 'rubygems' =\> true irb(main):002:0\> …

---

## [Compulsive Traveler is hiring](https://www.ruby-forum.com/t/compulsive-traveler-is-hiring/142277)

<div class="topic-metadata">

**Author:** [@zilkey](https://www.ruby-forum.com/u/zilkey)\
**Replies:** 0\
**Last updated:** [July 5, 2008, 9:39pm UTC](https://www.ruby-forum.com/t/compulsive-traveler-is-hiring/142277 "2008-07-05T21:39:09Z")

</div>

http://www.compulsivetraveler.tv/ is looking for a rails programmer for a 4-5 week gig. Must be a solid, experienced rails developer who can jump right in and start coding day 1. The site specs: Rails 2 MySQL Spec’…

---

## [Coloring selected li](https://www.ruby-forum.com/t/coloring-selected-li/142160)

<div class="topic-metadata">

**Author:** [@rudy](https://www.ruby-forum.com/u/rudy)\
**Replies:** 7\
**Last updated:** [July 5, 2008, 8:18pm UTC](https://www.ruby-forum.com/t/coloring-selected-li/142160 "2008-07-05T20:18:50Z")

</div>

Hi, can’t find a solution for this. Have a series of 's. When the user clicks on one of them, a second series shows in a updated, other . Works fine with RJS. But: I'd like to change the background-color for the click…

---

## [Find Conditions - Variable Column Name](https://www.ruby-forum.com/t/find-conditions-variable-column-name/142127)

<div class="topic-metadata">

**Author:** [@lottario](https://www.ruby-forum.com/u/lottario)\
**Replies:** 9\
**Last updated:** [July 5, 2008, 7:36pm UTC](https://www.ruby-forum.com/t/find-conditions-variable-column-name/142127 "2008-07-05T19:36:35Z")

</div>

Hi all. I’m trying to DRY out a bit of code that I’ve written. Right now, its something along the lines of: if var=“column1” User.find(:all, :conditions =\>{:column1=\>true}) elsif var=“column2” User.find(:all, :con…

---

## [Integer vs decimal db design](https://www.ruby-forum.com/t/integer-vs-decimal-db-design/142226)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [July 5, 2008, 7:03pm UTC](https://www.ruby-forum.com/t/integer-vs-decimal-db-design/142226 "2008-07-05T19:03:54Z")

</div>

Hi, I ve got a table with 6 attributes which all have a two digit fractional part. Now, I am wondering if it would be better to define them as decimals or as integers (dividing them by 100 in my app)… Are there sign…

---

## [RubyGems update](https://www.ruby-forum.com/t/rubygems-update/142241)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 4\
**Last updated:** [July 5, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/rubygems-update/142241 "2008-07-05T17:19:43Z")

</div>

I have RubGems 1.1.0 installed on my Fedora Core 5 machine along with a lot of rails 2.0.2 stuff. I want to upgrade to version 1.2.0 as easily as possible. I typed in: gem update --system as root but that did not d…

---

## [How do you count Booleans in a model?](https://www.ruby-forum.com/t/how-do-you-count-booleans-in-a-model/142245)

<div class="topic-metadata">

**Author:** [@lpdahito](https://www.ruby-forum.com/u/lpdahito)\
**Replies:** 5\
**Last updated:** [July 5, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/how-do-you-count-booleans-in-a-model/142245 "2008-07-05T16:49:16Z")

</div>

Hey… I’d like to knw how to count the number of trues or falses a boolean in my model contains… Example: create\_table :opinions do |t| t.boolean :agree end In this migration… if :agree is true… that means that the…

---

## [Rendering multiple views](https://www.ruby-forum.com/t/rendering-multiple-views/142244)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 5\
**Last updated:** [July 5, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/rendering-multiple-views/142244 "2008-07-05T15:50:45Z")

</div>

Hi, How can i render multiple views in rails? For example i have two .rhtml files: header.rhtml -\> a chunk of html codes to be rendered on top of the page sidebar.rhtml -\> also a chunk of html, to be rendered in th…

---

## [Help in AJAX page using partials](https://www.ruby-forum.com/t/help-in-ajax-page-using-partials/142249)

<div class="topic-metadata">

**Author:** [@rocknrollcar](https://www.ruby-forum.com/u/rocknrollcar)\
**Replies:** 6\
**Last updated:** [July 5, 2008, 2:29pm UTC](https://www.ruby-forum.com/t/help-in-ajax-page-using-partials/142249 "2008-07-05T14:29:43Z")

</div>

Hi. I am doing a web project for my school. I have models like Forum, Student, Event, Teacher, etc. Users are allowed to go to these models only after logging in so that they can view and update their details, create …

---

## [Undefined method \`require\_gem' for main:Object (NoMethodErro](https://www.ruby-forum.com/t/undefined-method-require-gem-for-main-object-nomethoderro/142246)

<div class="topic-metadata">

**Author:** [@tuhin\_cse99](https://www.ruby-forum.com/u/tuhin_cse99)\
**Replies:** 1\
**Last updated:** [July 5, 2008, 12:47pm UTC](https://www.ruby-forum.com/t/undefined-method-require-gem-for-main-object-nomethoderro/142246 "2008-07-05T12:47:26Z")

</div>

Hi guys, In my fedora 9 system i have installed ruby 1.86, actionmailer (2.1.0) actionpack (2.1.0) activerecord (2.1.0) activeresource (2.1.0) activesupport (2.1.0) cgi\_multipart\_eof\_fix (2.5.0) daemons (1.0.10) …

---

## [Log files deleted](https://www.ruby-forum.com/t/log-files-deleted/142261)

<div class="topic-metadata">

**Author:** [@pederbl](https://www.ruby-forum.com/u/pederbl)\
**Replies:** 0\
**Last updated:** [July 5, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/log-files-deleted/142261 "2008-07-05T12:45:06Z")

</div>

Somehow my rails log files get deleted after some time. The log files do get created properly when I restart my mongrel server. I usually have tail -f on the log files and they function well even after the files don’…

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

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