# Rails

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

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

---

## [Displaying an acts\_as\_tree tree?](https://www.ruby-forum.com/t/displaying-an-acts-as-tree-tree/134599)

<div class="topic-metadata">

**Author:** [@Ilya](https://www.ruby-forum.com/u/Ilya)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/displaying-an-acts-as-tree-tree/134599 "2008-04-13T20:02:18Z")

</div>

The question is this, how do i display the acts\_as\_tree tree i have created? I have this: \<% puts TreeItem.root.children.find(:all)%\> also i tried: (using the display\_children method from the agile book. \<% display\_c…

---

## [Anyone with experience using Typo for blogs?](https://www.ruby-forum.com/t/anyone-with-experience-using-typo-for-blogs/134668)

<div class="topic-metadata">

**Author:** [@coreyonrails](https://www.ruby-forum.com/u/coreyonrails)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 7:58pm UTC](https://www.ruby-forum.com/t/anyone-with-experience-using-typo-for-blogs/134668 "2008-04-13T19:58:07Z")

</div>

I have a Typo blog, everything works great locally as always. When I push it up to my shared host, which supports typo and has all requirements, I am getting the 500 error from my htaccess file. I believe that the iss…

---

## [Scaffolding and date\_select issues](https://www.ruby-forum.com/t/scaffolding-and-date-select-issues/134667)

<div class="topic-metadata">

**Author:** [@carlox](https://www.ruby-forum.com/u/carlox)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 7:39pm UTC](https://www.ruby-forum.com/t/scaffolding-and-date-select-issues/134667 "2008-04-13T19:39:15Z")

</div>

I’ve started a fresh new app via SSH here’s what I typed: $ rails test cd test $ ruby script/generate scaffold Evento nombre:string locacion:text fecha:date when I try to create a new ‘evento’ from the Eventos list…

---

## [Migration Problem](https://www.ruby-forum.com/t/migration-problem/134663)

<div class="topic-metadata">

**Author:** [@Prateek](https://www.ruby-forum.com/u/Prateek)\
**Replies:** 2\
**Last updated:** [April 13, 2008, 5:43pm UTC](https://www.ruby-forum.com/t/migration-problem/134663 "2008-04-13T17:43:21Z")

</div>

Hello, I am trying to change the default value of a couple of fields in a table. In one of my migrations, I had given a default value. It looked something like this (Please note - ‘users’ table already exists) - ===…

---

## [Uninitialized constant](https://www.ruby-forum.com/t/uninitialized-constant/134658)

<div class="topic-metadata">

**Author:** [@lfeistel](https://www.ruby-forum.com/u/lfeistel)\
**Replies:** 4\
**Last updated:** [April 13, 2008, 5:30pm UTC](https://www.ruby-forum.com/t/uninitialized-constant/134658 "2008-04-13T17:30:41Z")

</div>

Hi guys, I’m part way through a RoR application, for some reason whenever I add new controllers (using scaffold) I get an uninitialized constant \[name of controller\] error. The first few controllers work fine, the onl…

---

## [Wireless Spy Camera Pen](https://www.ruby-forum.com/t/wireless-spy-camera-pen/134661)

<div class="topic-metadata">

**Author:** [@Gadget\_Champ](https://www.ruby-forum.com/u/Gadget_Champ)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 5:13pm UTC](https://www.ruby-forum.com/t/wireless-spy-camera-pen/134661 "2008-04-13T17:13:55Z")

</div>

Wireless Spy Camera Pen http://tinyurl.com/5zcrgz This pen looks just like any other normal pen but hides a built-in wireless mini spy camera and uses the sun to charge itself. http://tinyurl.com/5zcrgz Details at T…

---

## [Can't get simple link\_to\_remote to work](https://www.ruby-forum.com/t/cant-get-simple-link-to-remote-to-work/134644)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 3\
**Last updated:** [April 13, 2008, 3:45pm UTC](https://www.ruby-forum.com/t/cant-get-simple-link-to-remote-to-work/134644 "2008-04-13T15:45:23Z")

</div>

AFAICT, this is all I need to do to get a simple example working: the should have this: \<%= javascript\_include\_tag :defaults %\> My test page view should have a div with an id and the ERB like this: \<%= link\_to\_remot…

---

## [Help redirect\_to funciton](https://www.ruby-forum.com/t/help-redirect-to-funciton/134627)

<div class="topic-metadata">

**Author:** [@duke](https://www.ruby-forum.com/u/duke)\
**Replies:** 2\
**Last updated:** [April 13, 2008, 3:27pm UTC](https://www.ruby-forum.com/t/help-redirect-to-funciton/134627 "2008-04-13T15:27:46Z")

</div>

I used scaffold to generate a product The scaffold created some code in the product controller def create @product = Product.new(params\[:product\]) respond\_to do |format| if @product.save flash\[:notice\] = 'Prod…

---

## [Help with Apache2 and stylesheet](https://www.ruby-forum.com/t/help-with-apache2-and-stylesheet/134651)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [April 13, 2008, 3:24pm UTC](https://www.ruby-forum.com/t/help-with-apache2-and-stylesheet/134651 "2008-04-13T15:24:10Z")

</div>

I have problems with my \<%= stylesheet\_link\_tag ‘example’ %\> with apache . I have my css file under public/stylesheets/example.css, but it seems apache can’t read it.

---

## [CSS and images cannot be read on server when deployed](https://www.ruby-forum.com/t/css-and-images-cannot-be-read-on-server-when-deployed/134654)

<div class="topic-metadata">

**Author:** [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 3:17pm UTC](https://www.ruby-forum.com/t/css-and-images-cannot-be-read-on-server-when-deployed/134654 "2008-04-13T15:17:46Z")

</div>

Dear all I deployed rail app. but the app does not see the CSS files and the images basically it does not see the public directory i created the softlink ln -s /home//rails/app/public /home/ /public\_html the applic…

---

## [Mod\_rails: Anybody got a minimal Apache configuration file?](https://www.ruby-forum.com/t/mod-rails-anybody-got-a-minimal-apache-configuration-file/134647)

<div class="topic-metadata">

**Author:** [@kyrre](https://www.ruby-forum.com/u/kyrre)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 2:33pm UTC](https://www.ruby-forum.com/t/mod-rails-anybody-got-a-minimal-apache-configuration-file/134647 "2008-04-13T14:33:03Z")

</div>

Does anyone have a minimal Apache configuration file for running a Rails site? The standard one is a monster! So far I have http://pastie.org/179907 but I haven’t tested it yet. –Kyrre

---

## [How to Choose an Unlimited Web Hosting for free](https://www.ruby-forum.com/t/how-to-choose-an-unlimited-web-hosting-for-free/134652)

<div class="topic-metadata">

**Author:** [@Free\_Domain\_S\_Web\_H](https://www.ruby-forum.com/u/Free_Domain_S_Web_H)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 2:25pm UTC](https://www.ruby-forum.com/t/how-to-choose-an-unlimited-web-hosting-for-free/134652 "2008-04-13T14:25:27Z")

</div>

How to Choose an Unlimited Web Hosting Visit http://www.axealis.com to get domain and hosting Unlimited Bandwidth ,this mean unlimited data transmission for your client access. Unlimited Space , you can upload file fo…

---

## [Trouble installing Rails 1.2.6](https://www.ruby-forum.com/t/trouble-installing-rails-1-2-6/134016)

<div class="topic-metadata">

**Author:** [@alexr](https://www.ruby-forum.com/u/alexr)\
**Replies:** 5\
**Last updated:** [April 13, 2008, 1:47pm UTC](https://www.ruby-forum.com/t/trouble-installing-rails-1-2-6/134016 "2008-04-13T13:47:59Z")

</div>

Hello! I’m a user of a Ubuntu box I have just installed ruby, rails and other gems and i was willing to try mephistoblog, which uses rails version 1.2.6. The problem is that when I try to install that version it says…

---

## [Drop index](https://www.ruby-forum.com/t/drop-index/134642)

<div class="topic-metadata">

**Author:** [@Erwin](https://www.ruby-forum.com/u/Erwin)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 12:58pm UTC](https://www.ruby-forum.com/t/drop-index/134642 "2008-04-13T12:58:41Z")

</div>

Hello In my migration, I created index as follows: def self.up add\_index :users, :facebook\_id add\_index :references, \[:referencing\_user\_id, :created\_at\] … and def self.down remove\_index :users, :facebook\_id rem…

---

## [Any Free Trial shared hosting offer with mod\_rails..?](https://www.ruby-forum.com/t/any-free-trial-shared-hosting-offer-with-mod-rails/134589)

<div class="topic-metadata">

**Author:** [@rahil](https://www.ruby-forum.com/u/rahil)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/any-free-trial-shared-hosting-offer-with-mod-rails/134589 "2008-04-13T12:55:58Z")

</div>

Hi, Today morning was great for me. I just read the news of mod\_rails available for apache. Now we do not have a single reason to envy PHP or Asp.net, when it comes to deployment. Mod\_rails will take shared hosting m…

---

## [ActiveRecord models stored in globals lose methods](https://www.ruby-forum.com/t/activerecord-models-stored-in-globals-lose-methods/134625)

<div class="topic-metadata">

**Author:** [@dukael](https://www.ruby-forum.com/u/dukael)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/activerecord-models-stored-in-globals-lose-methods/134625 "2008-04-13T12:54:34Z")

</div>

Hi all, I was experimenting with storing models in Ruby’s global space (as a quick and dirty alternative to memcached), and I came across some weird behavior I couldn’t figure out. First, I create a basic ActiveRecor…

---

## [Show Referer URL in logs?](https://www.ruby-forum.com/t/show-referer-url-in-logs/134609)

<div class="topic-metadata">

**Author:** [@jh100000](https://www.ruby-forum.com/u/jh100000)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 11:46am UTC](https://www.ruby-forum.com/t/show-referer-url-in-logs/134609 "2008-04-13T11:46:51Z")

</div>

When reviewing my logs, every so often I notice an exception where I understand the problem but don’t know where the problem is arising. Specifically, I can see the controller/action/params being called and can identi…

---

## [Index.html.erb](https://www.ruby-forum.com/t/index-html-erb/134613)

<div class="topic-metadata">

**Author:** [@jump](https://www.ruby-forum.com/u/jump)\
**Replies:** 1\
**Last updated:** [April 13, 2008, 11:42am UTC](https://www.ruby-forum.com/t/index-html-erb/134613 "2008-04-13T11:42:09Z")

</div>

Hi Everyone, A newbie question, I have my subdomain pointing to th respective app/views folder however the browser does not default to the index.html.erb , so instead I just have file listing. When I click on the in…

---

## [Send me an SMS](https://www.ruby-forum.com/t/send-me-an-sms/134638)

<div class="topic-metadata">

**Author:** [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Replies:** 0\
**Last updated:** [April 13, 2008, 8:56am UTC](https://www.ruby-forum.com/t/send-me-an-sms/134638 "2008-04-13T08:56:07Z")

</div>

Hi, Here is the link to send free SMS to any mobile in India. I use it too :-) http://www.indyarocks.com/register\_step1.php?invitor=NzI4MTU0&emailencryp=cnVieW9ucmFpbHMtdGFsa0Bnb29nbGVncm91cHMuY29t -Piyush Gajja…

---

## [Deployed version acting different than desktop version?](https://www.ruby-forum.com/t/deployed-version-acting-different-than-desktop-version/134508)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 13, 2008, 3:55am UTC](https://www.ruby-forum.com/t/deployed-version-acting-different-than-desktop-version/134508 "2008-04-13T03:55:43Z")

</div>

I found the most scary and annoying symptom last night when I found a bug on my deployment application that was working correctly on my identical desktop version. It had to do with one parent integer field being updat…

---

## [Cant find session user\_id while using restful\_authentication](https://www.ruby-forum.com/t/cant-find-session-user-id-while-using-restful-authentication/134618)

<div class="topic-metadata">

**Author:** [@warlock\_handler](https://www.ruby-forum.com/u/warlock_handler)\
**Replies:** 2\
**Last updated:** [April 13, 2008, 12:20am UTC](https://www.ruby-forum.com/t/cant-find-session-user-id-while-using-restful-authentication/134618 "2008-04-13T00:20:41Z")

</div>

Hi guys, I am using the restful\_authentication gem for my logins after the user has logged in I see his user id in the session dump in the variable user\_id but when i try to access it as session\[‘user\_id’\] i get a nu…

---

## [Edit method and request.put? check](https://www.ruby-forum.com/t/edit-method-and-request-put-check/133665)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 11:49pm UTC](https://www.ruby-forum.com/t/edit-method-and-request-put-check/133665 "2008-04-12T23:49:33Z")

</div>

I am trying to use single method for Edit and Update…but doesn’t seem to work. Following is in my view… \<% form\_for :project, @project, :html =\> {:method =\> :put}, :url =\> {:action =\> ‘edit’} do |f| %\> Name: \<%= f…

---

## [How do I scan a directory tree using a Rake task?](https://www.ruby-forum.com/t/how-do-i-scan-a-directory-tree-using-a-rake-task/133649)

<div class="topic-metadata">

**Author:** [@Tonkatsufan](https://www.ruby-forum.com/u/Tonkatsufan)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 11:47pm UTC](https://www.ruby-forum.com/t/how-do-i-scan-a-directory-tree-using-a-rake-task/133649 "2008-04-12T23:47:31Z")

</div>

Hi everybody, in my application, I want to offer file downloads on a per-user basis. That means, a user has to authenticate and gets assigned a user\_id. Now, in my filesystem, I have a directory for each user\_id (abov…

---

## [Updating the same record without change](https://www.ruby-forum.com/t/updating-the-same-record-without-change/133770)

<div class="topic-metadata">

**Author:** [@vapor](https://www.ruby-forum.com/u/vapor)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 11:41pm UTC](https://www.ruby-forum.com/t/updating-the-same-record-without-change/133770 "2008-04-12T23:41:18Z")

</div>

In scaffold, if I click Edit and press Update without changing anything, it still says record updated. How can I check if user really updated something and didn’t just press Update?

---

## [How do I display an image from a rails app in another site?](https://www.ruby-forum.com/t/how-do-i-display-an-image-from-a-rails-app-in-another-site/133889)

<div class="topic-metadata">

**Author:** [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/how-do-i-display-an-image-from-a-rails-app-in-another-site/133889 "2008-04-12T23:37:09Z")

</div>

I have a rails app with some images uploaded with file\_column the url of one of the images is http://soccertackle/image/image/189/supertramp-thumb.jpg. When I type this into a browsers address bar I can see the image. …

---

## [Caching js](https://www.ruby-forum.com/t/caching-js/133993)

<div class="topic-metadata">

**Author:** [@keynan](https://www.ruby-forum.com/u/keynan)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/caching-js/133993 "2008-04-12T23:33:58Z")

</div>

Hi all, I want to cache the results of a rjs file as a fragment. Any one know how? -K

---

## [Problem with some characters](https://www.ruby-forum.com/t/problem-with-some-characters/134614)

<div class="topic-metadata">

**Author:** [@masylum](https://www.ruby-forum.com/u/masylum)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/problem-with-some-characters/134614 "2008-04-12T23:33:57Z")

</div>

I’m trying to make a digital firm with SHA1 but i have problem with some characters. Digest::SHA1.hexdigest("#{@league.name}.#{current\_user.name}.#{@num\_scores}") When @leagues.name is for example “asÃ­” the firm gene…

---

## [Can ruby support send http request or call other programs written in like c or c# or Java?](https://www.ruby-forum.com/t/can-ruby-support-send-http-request-or-call-other-programs-written-in-like-c-or-c-or-java/134380)

<div class="topic-metadata">

**Author:** [@lily](https://www.ruby-forum.com/u/lily)\
**Replies:** 1\
**Last updated:** [April 12, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/can-ruby-support-send-http-request-or-call-other-programs-written-in-like-c-or-c-or-java/134380 "2008-04-12T23:10:30Z")

</div>

hello, everyone, I am developping a website using Ruby on Rails which need to go to another website to get some information to update my own database. Does ruby have similar function support like in c#:WebRequest.Crea…

---

## [RoR book free copy!](https://www.ruby-forum.com/t/ror-book-free-copy/134454)

<div class="topic-metadata">

**Author:** [@vlad](https://www.ruby-forum.com/u/vlad)\
**Replies:** 6\
**Last updated:** [April 12, 2008, 10:53pm UTC](https://www.ruby-forum.com/t/ror-book-free-copy/134454 "2008-04-12T22:53:11Z")

</div>

Hey can anybody upload a free PDF file of Agile Web D. with Rails Thanks.

---

## [Developers Developers Developers](https://www.ruby-forum.com/t/developers-developers-developers/134606)

<div class="topic-metadata">

**Author:** [@kevin\_evans](https://www.ruby-forum.com/u/kevin_evans)\
**Replies:** 0\
**Last updated:** [April 12, 2008, 9:30pm UTC](https://www.ruby-forum.com/t/developers-developers-developers/134606 "2008-04-12T21:30:59Z")

</div>

Think Balmer without the sweat … We’re looking for two developers, preferably Rails http://inform.glam.ac.uk/jobs/details/171/ Joining a great team, good perks and working environment.

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

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