# Rails

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

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

---

## [Getting acts\_as\_tree to work](https://www.ruby-forum.com/t/getting-acts-as-tree-to-work/135087)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 1\
**Last updated:** [April 17, 2008, 8:32pm UTC](https://www.ruby-forum.com/t/getting-acts-as-tree-to-work/135087 "2008-04-17T20:32:46Z")

</div>

I see others have had configuration issues with acts\_as\_tree and sorted them out, but I can’t get it to work. On Rails 2.0.2 I do the usual ‘ruby script/plugin install acts\_as\_tree’ which puts acts\_as\_tree into vendor…

---

## [Callback Problem: Why to use self.var= instead of @var=](https://www.ruby-forum.com/t/callback-problem-why-to-use-self-var-instead-of-var/135088)

<div class="topic-metadata">

**Author:** [@html-kurs](https://www.ruby-forum.com/u/html-kurs)\
**Replies:** 1\
**Last updated:** [April 17, 2008, 8:12pm UTC](https://www.ruby-forum.com/t/callback-problem-why-to-use-self-var-instead-of-var/135088 "2008-04-17T20:12:42Z")

</div>

Hi, I’ve defined the following model: class Eintrag \< ActiveRecord::Base before\_validation :vali protected def vali self.feld1.reverse! self.feld2 = self.feld1 end end Now I’m wondering why I have to write sel…

---

## [Error](https://www.ruby-forum.com/t/error/135090)

<div class="topic-metadata">

**Author:** [@edberner](https://www.ruby-forum.com/u/edberner)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 8:04pm UTC](https://www.ruby-forum.com/t/error/135090 "2008-04-17T20:04:27Z")

</div>

Player model def update\_statistics(game) for round in game.rounds … end Why am I getting undefined method \`each’ for #Round:0x261cc0c ??

---

## [Interesting find: multiple file uploads stopped on Linux](https://www.ruby-forum.com/t/interesting-find-multiple-file-uploads-stopped-on-linux/134779)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/interesting-find-multiple-file-uploads-stopped-on-linux/134779 "2008-04-17T20:00:21Z")

</div>

Hi, I came across something very interesting. I use attachment\_fu for file uploads and mongrel\_cluster for scalability. Together they should allow me to perform multiple (concurrent) file uploads. This does work with…

---

## [Respond\_to block being ignored?](https://www.ruby-forum.com/t/respond-to-block-being-ignored/135080)

<div class="topic-metadata">

**Author:** [@el2king](https://www.ruby-forum.com/u/el2king)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/respond-to-block-being-ignored/135080 "2008-04-17T19:39:22Z")

</div>

I am designing a Rails application with two separate controller scripts, say x\_controller\_1.rb and y\_controller\_2.rb, with both in app/controllers directory. Now, I have a function in each controller script that make…

---

## [Cleaning Rails' ugly HTML output](https://www.ruby-forum.com/t/cleaning-rails-ugly-html-output/135056)

<div class="topic-metadata">

**Author:** [@Mister\_Blood\_R](https://www.ruby-forum.com/u/Mister_Blood_R)\
**Replies:** 9\
**Last updated:** [April 17, 2008, 6:46pm UTC](https://www.ruby-forum.com/t/cleaning-rails-ugly-html-output/135056 "2008-04-17T18:46:27Z")

</div>

is there a way of cleaning rails’ html output? by default, it looks real ugly (in terms of indentation), and i don’t know how people can live with that. there is rails-tidy, and although it makes html really pretty, s…

---

## [Getting Started with Databases](https://www.ruby-forum.com/t/getting-started-with-databases/135068)

<div class="topic-metadata">

**Author:** [@jaime\_schultz](https://www.ruby-forum.com/u/jaime_schultz)\
**Replies:** 1\
**Last updated:** [April 17, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/getting-started-with-databases/135068 "2008-04-17T18:45:02Z")

</div>

Hi everyone. Brief intro - I’m in the process of redesigning a website and I’m exploring programming options for the redesign. I discovered ruby in efforts to understand it and maybe make a recommendation. Anyway, cu…

---

## [Saving instance variables between GETs](https://www.ruby-forum.com/t/saving-instance-variables-between-gets/134848)

<div class="topic-metadata">

**Author:** [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/saving-instance-variables-between-gets/134848 "2008-04-17T18:41:31Z")

</div>

Am I approaching this the wrong way according to the Ruby on Rails conventions? I will explain the situation. I currently have a reporting system which will create and eventually render a report based on some choices …

---

## [Adding javascript inside create view](https://www.ruby-forum.com/t/adding-javascript-inside-create-view/135046)

<div class="topic-metadata">

**Author:** [@irsami1982](https://www.ruby-forum.com/u/irsami1982)\
**Replies:** 3\
**Last updated:** [April 17, 2008, 6:41pm UTC](https://www.ruby-forum.com/t/adding-javascript-inside-create-view/135046 "2008-04-17T18:41:31Z")

</div>

I am a newcommer in both AS and RoR. I have a user active scaffold. The user has name and password. I want to add a password strength javascript inside the create view of user. How can I customize my user default acti…

---

## [Would love to solve 'rake doc:app' problem](https://www.ruby-forum.com/t/would-love-to-solve-rake-doc-app-problem/135011)

<div class="topic-metadata">

**Author:** [@craigrails](https://www.ruby-forum.com/u/craigrails)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/would-love-to-solve-rake-doc-app-problem/135011 "2008-04-17T18:32:01Z")

</div>

I can build doc:plugins but not doc:app $ rake doc:app --trace (in /home/storage/users/craig/svn/th-db/branches/phase5) \*\* Invoke doc:app (first\_time) \*\* Invoke doc/app/index.html (first\_time) rake aborted! Don’t k…

---

## [Link\_to method doesn't work with shared css/javascript class](https://www.ruby-forum.com/t/link-to-method-doesnt-work-with-shared-css-javascript-class/135084)

<div class="topic-metadata">

**Author:** [@claus](https://www.ruby-forum.com/u/claus)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 5:48pm UTC](https://www.ruby-forum.com/t/link-to-method-doesnt-work-with-shared-css-javascript-class/135084 "2008-04-17T17:48:29Z")

</div>

ddaccordion.init({ headerclass: "expandable", ..... \</script \<%= link\_to "institut", {:controller =\> "news"} %\> ...at first I want to say that I'm pretty new in ruby ... may u are able to help me:…

---

## [Forms without a database with Rails 2.0.2](https://www.ruby-forum.com/t/forms-without-a-database-with-rails-2-0-2/135069)

<div class="topic-metadata">

**Author:** [@jlesleyball](https://www.ruby-forum.com/u/jlesleyball)\
**Replies:** 1\
**Last updated:** [April 17, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/forms-without-a-database-with-rails-2-0-2/135069 "2008-04-17T17:30:25Z")

</div>

Hi I’m trying to create a simple HTML form with just one drop-down box (a select tag, I guess) and a button to submit the selected value, and my app has no models. Can anyone point me to a good reference or perhaps …

---

## [Authorization plugin base\_class method](https://www.ruby-forum.com/t/authorization-plugin-base-class-method/196643)

<div class="topic-metadata">

**Author:** [@abusiek](https://www.ruby-forum.com/u/abusiek)\
**Replies:** 1\
**Last updated:** [April 17, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/authorization-plugin-base-class-method/196643 "2008-04-17T17:21:33Z")

</div>

Hi! I’m using Rails 2.0.2 and i’ve install “authorization plugin”, Now when I write something like this: @project = Project.new(params\[:project\]) if @project.save @manager = User.find(params\[:project\]\[:user\_id…

---

## [Rake rails:freeze:gems failing](https://www.ruby-forum.com/t/rake-railsgems-failing/134923)

<div class="topic-metadata">

**Author:** [@recreant](https://www.ruby-forum.com/u/recreant)\
**Replies:** 3\
**Last updated:** [April 17, 2008, 5:18pm UTC](https://www.ruby-forum.com/t/rake-railsgems-failing/134923 "2008-04-17T17:18:37Z")

</div>

I’m new to rails so pre-apologies if this is stupid… I’m trying to deploy my first app. I need to freeze, but when i run rake rails:freeze:gems the rake aborts. I also tried rails:freeze:edge. No idea what to do now. …

---

## [AVG Free Edition reporting digest.so as a Trojan](https://www.ruby-forum.com/t/avg-free-edition-reporting-digest-so-as-a-trojan/134689)

<div class="topic-metadata">

**Author:** [@JoeFaust](https://www.ruby-forum.com/u/JoeFaust)\
**Replies:** 3\
**Last updated:** [April 17, 2008, 5:15pm UTC](https://www.ruby-forum.com/t/avg-free-edition-reporting-digest-so-as-a-trojan/134689 "2008-04-17T17:15:40Z")

</div>

I recently started running into trouble with my ruby install. Anytime I tried to run ‘gem’ or ‘rake’ I’d get the following output: gem list c:/ruby/lib/ruby/1.8/i386-mswin32/digest/sha2.so: no such file to load – di…

---

## [How to accomplish pagination in RoR](https://www.ruby-forum.com/t/how-to-accomplish-pagination-in-ror/134937)

<div class="topic-metadata">

**Author:** [@durgesh](https://www.ruby-forum.com/u/durgesh)\
**Replies:** 12\
**Last updated:** [April 17, 2008, 4:22pm UTC](https://www.ruby-forum.com/t/how-to-accomplish-pagination-in-ror/134937 "2008-04-17T16:22:59Z")

</div>

Hi Folks, I am just trying to get started up in RoR, I have done a simple application of add, edit, delete… I am now trying to accomplish pagination in RoR, I referred a few tutorials, however none of the examples th…

---

## [Linking to "Next Entry \>\>" from the current Entry Page](https://www.ruby-forum.com/t/linking-to-next-entry-from-the-current-entry-page/135006)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 3\
**Last updated:** [April 17, 2008, 3:53pm UTC](https://www.ruby-forum.com/t/linking-to-next-entry-from-the-current-entry-page/135006 "2008-04-17T15:53:34Z")

</div>

Hi all, I’m trying to link to the “Next Entry \>\>” from the current entry page (in show.html.erb). Any one know how I would do it?

---

## [Google Calendar and putting events into calendars](https://www.ruby-forum.com/t/google-calendar-and-putting-events-into-calendars/135062)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/google-calendar-and-putting-events-into-calendars/135062 "2008-04-17T15:18:52Z")

</div>

Hello there Can anyone tell me what exactly needs to go into this bit of code? response = g.new\_event(event, ‘my\_NOT\_default\_calendar’) #post data to that calendar puts response.body All the code is here, thanks to …

---

## [Problems with !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"](https://www.ruby-forum.com/t/problems-with-doctype-html-public-w3c-dtd-html-4-01-en/135045)

<div class="topic-metadata">

**Author:** [@Mister\_Blood\_R](https://www.ruby-forum.com/u/Mister_Blood_R)\
**Replies:** 5\
**Last updated:** [April 17, 2008, 3:18pm UTC](https://www.ruby-forum.com/t/problems-with-doctype-html-public-w3c-dtd-html-4-01-en/135045 "2008-04-17T15:18:17Z")

</div>

When I include in my header, my CSS files no longer show… they show up in code though, \<%= stylesheet\_link\_tag ‘display’ %\> becomes . I heard Rails is hard-coded to only do XHTML, and that I might have to do some mo…

---

## [Requests](https://www.ruby-forum.com/t/requests/135058)

<div class="topic-metadata">

**Author:** [@deliak](https://www.ruby-forum.com/u/deliak)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 2:56pm UTC](https://www.ruby-forum.com/t/requests/135058 "2008-04-17T14:56:07Z")

</div>

Is there already a requests counter in rails? Something like a $requests global variable? Emanuele R…

---

## [Multiple Model Creat idiom question](https://www.ruby-forum.com/t/multiple-model-creat-idiom-question/134292)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 6\
**Last updated:** [April 17, 2008, 2:50pm UTC](https://www.ruby-forum.com/t/multiple-model-creat-idiom-question/134292 "2008-04-17T14:50:13Z")

</div>

I have the case where creating a role for a non-existent entity requires, naturally enough, that the entity be created as well. class Entity has\_one :client class Client belongs\_to :entity I have this code i…

---

## [Threads with shell scripts](https://www.ruby-forum.com/t/threads-with-shell-scripts/135057)

<div class="topic-metadata">

**Author:** [@fox](https://www.ruby-forum.com/u/fox)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 2:46pm UTC](https://www.ruby-forum.com/t/threads-with-shell-scripts/135057 "2008-04-17T14:46:20Z")

</div>

hi all i have some code which has a Queue class, and the queue needs to have a QueueItem, whcih is a ruby thread. The ruby thread invokes a system command, using IO.popen at the moment, but doing something like: t =…

---

## [Country\_select box with country code as value](https://www.ruby-forum.com/t/country-select-box-with-country-code-as-value/135020)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 1:58pm UTC](https://www.ruby-forum.com/t/country-select-box-with-country-code-as-value/135020 "2008-04-17T13:58:04Z")

</div>

HI all, I used country select tag for showing country dropdown. \<%= f.country\_select(:country, \[“United States”\] It result the option values as the full name of that countries as give below. Afghanistan Aland Island…

---

## [Testing request\_routing?](https://www.ruby-forum.com/t/testing-request-routing/135051)

<div class="topic-metadata">

**Author:** [@giantcranes](https://www.ruby-forum.com/u/giantcranes)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/testing-request-routing/135051 "2008-04-17T13:29:58Z")

</div>

Hi, Has anyone managed to test their routes.rb when using request\_routing? How would one go about specifying the domain and subdomain? Thanks, Gavin

---

## [Actionmailer cant sent the mail](https://www.ruby-forum.com/t/actionmailer-cant-sent-the-mail/135036)

<div class="topic-metadata">

**Author:** [@prionko](https://www.ruby-forum.com/u/prionko)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/actionmailer-cant-sent-the-mail/135036 "2008-04-17T13:14:53Z")

</div>

Hi everybody, Im facing problems in sending mail using actionmailer. Im trying to do a simple stuff where user types in his message and the receiptent email address, the n that message should be received by the receip…

---

## [2.0.2 memory footprint](https://www.ruby-forum.com/t/2-0-2-memory-footprint/134831)

<div class="topic-metadata">

**Author:** [@deliak](https://www.ruby-forum.com/u/deliak)\
**Replies:** 9\
**Last updated:** [April 17, 2008, 1:11pm UTC](https://www.ruby-forum.com/t/2-0-2-memory-footprint/134831 "2008-04-17T13:11:18Z")

</div>

http://izumi.plan99.net/blog/index.php/2008/03/19/memory-usage-comparison-rails-126-vs-202/ The article above says, if I did understand it correctly, that the 2.0.2 memory footprint should be smaller than that of 1.2.6…

---

## [JavaScripts don't show](https://www.ruby-forum.com/t/javascripts-dont-show/135042)

<div class="topic-metadata">

**Author:** [@Mister\_Blood\_R](https://www.ruby-forum.com/u/Mister_Blood_R)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/javascripts-dont-show/135042 "2008-04-17T13:09:15Z")

</div>

I have \<%= javascript\_include\_tag “prototype”, “effects”, “controls”, “dragdrop”, “lowpro”, “time”, “application”, :cache =\> ‘mysite’ %\> in my \_header.html.erb, but in the browser only shows… any idea why? – Mister…

---

## [Rjs Type error when added jrails plugin into current RoR project](https://www.ruby-forum.com/t/rjs-type-error-when-added-jrails-plugin-into-current-ror-project/135044)

<div class="topic-metadata">

**Author:** [@irsami1982](https://www.ruby-forum.com/u/irsami1982)\
**Replies:** 0\
**Last updated:** [April 17, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/rjs-type-error-when-added-jrails-plugin-into-current-ror-project/135044 "2008-04-17T13:05:42Z")

</div>

I am really new in both RoR and AS. I wanted to replace jquey in my project as well as active scaffolding. But AS seems like closely incorporated with prototype. Therefore, I am trying to work with both jquery and pro…

---

## [How to install PHP and MySQL on Ruby (Webrick)](https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982)

<div class="topic-metadata">

**Author:** [@lgvalle](https://www.ruby-forum.com/u/lgvalle)\
**Replies:** 5\
**Last updated:** [April 17, 2008, 12:40pm UTC](https://www.ruby-forum.com/t/how-to-install-php-and-mysql-on-ruby-webrick/134982 "2008-04-17T12:40:15Z")

</div>

Hi all. I have Ruby 1.8.6 and Rails 2.0.2 and I want to install php5 and mysql, on webrick, or some server (if you know good server, which we can install ruby on rails, php5 and mysql tell me) Thanks and sorry for …

---

## [Java applet from RAILS application](https://www.ruby-forum.com/t/java-applet-from-rails-application/135031)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 2\
**Last updated:** [April 17, 2008, 12:27pm UTC](https://www.ruby-forum.com/t/java-applet-from-rails-application/135031 "2008-04-17T12:27:24Z")

</div>

We put the MyApplet.class in the lib folder and called the applet using html object tab. We set the codebase = “MyApplet.class”. The application is throwing the class not found exception. Any one tried out calling the…

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

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