# Rails

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

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

---

## [Acts\_as\_authenticated error](https://www.ruby-forum.com/t/acts-as-authenticated-error/131468)

<div class="topic-metadata">

**Author:** [@capslock118](https://www.ruby-forum.com/u/capslock118)\
**Replies:** 3\
**Last updated:** [March 10, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/acts-as-authenticated-error/131468 "2008-03-10T17:38:08Z")

</div>

I tried to use acts\_as\_authenticated on my site but I was getting some errors. I went to techno-weenie and found that they depreciated that for restful\_authentication instead. Ok, so I follow the instructions as laid …

---

## [Validates\_presence\_of problem](https://www.ruby-forum.com/t/validates-presence-of-problem/131490)

<div class="topic-metadata">

**Author:** [@lisa127](https://www.ruby-forum.com/u/lisa127)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 5:19pm UTC](https://www.ruby-forum.com/t/validates-presence-of-problem/131490 "2008-03-10T17:19:48Z")

</div>

Hi! I’m new with ruby on rails. I have a problem with validates\_presence\_of: it work too much! It gives me error when the form is blank and when it is not blank too. I simply put in my model this line: validates\_pre…

---

## [Write to file instead of rendering to screen](https://www.ruby-forum.com/t/write-to-file-instead-of-rendering-to-screen/131489)

<div class="topic-metadata">

**Author:** [@agilehack](https://www.ruby-forum.com/u/agilehack)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 5:04pm UTC](https://www.ruby-forum.com/t/write-to-file-instead-of-rendering-to-screen/131489 "2008-03-10T17:04:26Z")

</div>

Radiant gurus please help! I know this should be for the Radiant mailing list, but very low activity there. I am trying to create functionality to write the HTML(page(s)) to a file instead of rendering to screen. I …

---

## [Adding actions to in\_place\_edit](https://www.ruby-forum.com/t/adding-actions-to-in-place-edit/131482)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [March 10, 2008, 4:50pm UTC](https://www.ruby-forum.com/t/adding-actions-to-in-place-edit/131482 "2008-03-10T16:50:51Z")

</div>

When an in\_place\_edit field’s value has been updated I would like to do something such as sending an email. How can I add functionality to the set\_{obj}\_ method?

---

## [Session cookies in IE7](https://www.ruby-forum.com/t/session-cookies-in-ie7/131486)

<div class="topic-metadata">

**Author:** [@jonlog](https://www.ruby-forum.com/u/jonlog)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 4:20pm UTC](https://www.ruby-forum.com/t/session-cookies-in-ie7/131486 "2008-03-10T16:20:21Z")

</div>

I’ve come across an interesting problem that’s only present in IE7, not even IE6. I have an application with a number of different subdomains, a few of which are static (programmed in) and a few that are dynamically …

---

## [Rails WIKI is dead?](https://www.ruby-forum.com/t/rails-wiki-is-dead/131478)

<div class="topic-metadata">

**Author:** [@Tyoma](https://www.ruby-forum.com/u/Tyoma)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/rails-wiki-is-dead/131478 "2008-03-10T16:14:10Z")

</div>

Hi folks! Rails is a great app indeed and nice community around. But what happened to rails WIKI ? this page I can access: http://wiki.rubyonrails.org/rails but trying to follow any of the links fails… always "ERROR…

---

## [File-uploads in rails 2.0.2 + AJAX](https://www.ruby-forum.com/t/file-uploads-in-rails-2-0-2-ajax/128902)

<div class="topic-metadata">

**Author:** [@Felix\_N](https://www.ruby-forum.com/u/Felix_N)\
**Replies:** 3\
**Last updated:** [March 10, 2008, 3:01pm UTC](https://www.ruby-forum.com/t/file-uploads-in-rails-2-0-2-ajax/128902 "2008-03-10T15:01:59Z")

</div>

hi, I am porting an app from 1.2.5 to 2.0.2 and I am having problems with file uploads. The form fields look like this: \<%= ‘Add attachment’.t %\>: \<%= file\_field ‘attachments’, “upload#{id}”, :size =\> ‘40’ %\> The o…

---

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

<div class="topic-metadata">

**Author:** [@flnative](https://www.ruby-forum.com/u/flnative)\
**Replies:** 2\
**Last updated:** [March 10, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/error-message/131424 "2008-03-10T14:54:02Z")

</div>

hi @ all How can I modify the error messages in the view? Now, in every error message, I’ve all time the unessential lines “1 error prohibited this xxx from being saved” and “There were problems with the following fi…

---

## [Why do I get an empty class when I run ruby script/generate scaffold?](https://www.ruby-forum.com/t/why-do-i-get-an-empty-class-when-i-run-ruby-script-generate-scaffold/128602)

<div class="topic-metadata">

**Author:** [@lxp149](https://www.ruby-forum.com/u/lxp149)\
**Replies:** 10\
**Last updated:** [March 10, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/why-do-i-get-an-empty-class-when-i-run-ruby-script-generate-scaffold/128602 "2008-03-10T14:03:24Z")

</div>

I’ve been trying to figure this out since yesterday afternoon with no success. I’ve tried to run ruby with oracle, 11, 10, and as of today 10g XE. The problem is obviously not on the oracle side because I can query th…

---

## [Relating tables from different datbases possibly?](https://www.ruby-forum.com/t/relating-tables-from-different-datbases-possibly/131472)

<div class="topic-metadata">

**Author:** [@remco123](https://www.ruby-forum.com/u/remco123)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 1:50pm UTC](https://www.ruby-forum.com/t/relating-tables-from-different-datbases-possibly/131472 "2008-03-10T13:50:10Z")

</div>

Hi, Has an external table wich i connect through this code. So the table “bestemming” is stored on the exterbal database fly2. class External \< ActiveRecord::Base establish\_connection :extern self.abstract\_class = t…

---

## [Ruby and RoR on Google Android?](https://www.ruby-forum.com/t/ruby-and-ror-on-google-android/131418)

<div class="topic-metadata">

**Author:** [@explainer](https://www.ruby-forum.com/u/explainer)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/ruby-and-ror-on-google-android/131418 "2008-03-10T13:31:59Z")

</div>

Hi Everyone, I am interested in finding out if anyone has looked into the feasibility of porting Ruby and RoR to the Google Android Open Source phone SDK. Has anyone considered this? Since Android has Java support,…

---

## [Creating a search](https://www.ruby-forum.com/t/creating-a-search/131366)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 4\
**Last updated:** [March 10, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/creating-a-search/131366 "2008-03-10T13:31:16Z")

</div>

Hi there, I spent a long time on the following “problem” and cant’ figure it out on my own: I need to have a search function and thought I could do it like this: the search page has a form which takes the search cri…

---

## [UTF-8 not working (Mac OS X)](https://www.ruby-forum.com/t/utf-8-not-working-mac-os-x/130271)

<div class="topic-metadata">

**Author:** [@jeronimo](https://www.ruby-forum.com/u/jeronimo)\
**Replies:** 4\
**Last updated:** [March 10, 2008, 1:23pm UTC](https://www.ruby-forum.com/t/utf-8-not-working-mac-os-x/130271 "2008-03-10T13:23:37Z")

</div>

I’m trying to get UTF-8 working, but I can’t get it work fully. I have the data in my MySQL-database, the tables and fields are in utf-8 charset. If I query the database from the terminal, all UTF-8 characters show up…

---

## [Mobile Income without Investment](https://www.ruby-forum.com/t/mobile-income-without-investment/131467)

<div class="topic-metadata">

**Author:** [@Priyabrata\_Patra](https://www.ruby-forum.com/u/Priyabrata_Patra)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 1:17pm UTC](https://www.ruby-forum.com/t/mobile-income-without-investment/131467 "2008-03-10T13:17:05Z")

</div>

Hello, I found few genuine sites for earning through your mobile. http://www.sms2india.co.in/?user=patrapb http://www.youmint.com/network-patrapb mginger.com - This website is for sale! - mginger Resources and …

---

## [How to set permissions for public folder?](https://www.ruby-forum.com/t/how-to-set-permissions-for-public-folder/131466)

<div class="topic-metadata">

**Author:** [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/how-to-set-permissions-for-public-folder/131466 "2008-03-10T13:14:08Z")

</div>

Hi, I’m using deprec+capistrano to deploy my app. The problem is that everything is assigned to the user (and his group) that the application was deployed by. This causes problems with i.e. caching, because mongrel c…

---

## [Best way to manage different settings model for different user roles?](https://www.ruby-forum.com/t/best-way-to-manage-different-settings-model-for-different-user-roles/131423)

<div class="topic-metadata">

**Author:** [@marstoni](https://www.ruby-forum.com/u/marstoni)\
**Replies:** 3\
**Last updated:** [March 10, 2008, 1:07pm UTC](https://www.ruby-forum.com/t/best-way-to-manage-different-settings-model-for-different-user-roles/131423 "2008-03-10T13:07:31Z")

</div>

I’m looking for some input on the best way to support user settings when dealing with different user roles. I have a Users model and in that have all the ‘required’ fields for a user. A given user can have a differen…

---

## [Problem with acts\_as\_ferret plugin?](https://www.ruby-forum.com/t/problem-with-acts-as-ferret-plugin/131456)

<div class="topic-metadata">

**Author:** [@tharrisx](https://www.ruby-forum.com/u/tharrisx)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 12:57pm UTC](https://www.ruby-forum.com/t/problem-with-acts-as-ferret-plugin/131456 "2008-03-10T12:57:27Z")

</div>

Hy folks, can anyone tell me if there definitely IS a problem with the acts\_as\_ferret plugin? It seems I can’t download it from its repository: Neither… a) ruby script/plugin install svn://projects.jkraemer.net/acts…

---

## [How to use will\_paginate with ajax](https://www.ruby-forum.com/t/how-to-use-will-paginate-with-ajax/131460)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 11:16am UTC](https://www.ruby-forum.com/t/how-to-use-will-paginate-with-ajax/131460 "2008-03-10T11:16:38Z")

</div>

Hi I have a tabbed view in the file show\_details.rhtml as follows attachments—contacts Attachments Contacts \<%= render :partial =\> 'service\_desk\_part/view\_sd\_attachment\_details'%\> \<%= render :partial =\> 'service\_d…

---

## [Difference between \[class,instance\].transaction method?](https://www.ruby-forum.com/t/difference-between-class-instance-transaction-method/131447)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 10:02am UTC](https://www.ruby-forum.com/t/difference-between-class-instance-transaction-method/131447 "2008-03-10T10:02:40Z")

</div>

what is the difference between class transaction definition(method) & instance transaction definition(method) in Active Record ?

---

## [Setup relationship external database](https://www.ruby-forum.com/t/setup-relationship-external-database/131245)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 3\
**Last updated:** [March 10, 2008, 9:20am UTC](https://www.ruby-forum.com/t/setup-relationship-external-database/131245 "2008-03-10T09:20:43Z")

</div>

Hi…my company has a central database. I want to use some data in my rails-app. This is my setup: class External \< ActiveRecord::Base establish\_connection :extern end class Land \< External has\_and\_belongs\_to\_many :…

---

## [Rake on dreamhost](https://www.ruby-forum.com/t/rake-on-dreamhost/131427)

<div class="topic-metadata">

**Author:** [@shaish](https://www.ruby-forum.com/u/shaish)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 8:50am UTC](https://www.ruby-forum.com/t/rake-on-dreamhost/131427 "2008-03-10T08:50:41Z")

</div>

hey, I just started working with dreamhost and cant rake to work properly, or at all for that matter. every rake I try to result in an error like this one for instance: $ rake db:migrate /usr/bin/rake:17:Warning: req…

---

## [Simple AJAX / Rails IM](https://www.ruby-forum.com/t/simple-ajax-rails-im/131445)

<div class="topic-metadata">

**Author:** [@grayson](https://www.ruby-forum.com/u/grayson)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 8:12am UTC](https://www.ruby-forum.com/t/simple-ajax-rails-im/131445 "2008-03-10T08:12:38Z")

</div>

Hello, Anyone know where I could find a simple AJAX/Rails Instant Messaging like this? http://www.codeproject.com/KB/aspnet/Ajax\_Chat.aspx Thanks, GP

---

## [Date field-------------------](https://www.ruby-forum.com/t/date-field/131452)

<div class="topic-metadata">

**Author:** [@jagdishSRubin](https://www.ruby-forum.com/u/jagdishSRubin)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 7:40am UTC](https://www.ruby-forum.com/t/date-field/131452 "2008-03-10T07:40:48Z")

</div>

Dear all rubindasessssssss plz help … I want to display the customised date field such that in browser after navigation, the field should have the default value like dd mm yy in each of select boxes instead of the nu…

---

## [N00b can't run script/generate ugh](https://www.ruby-forum.com/t/n00b-cant-run-script-generate-ugh/131448)

<div class="topic-metadata">

**Author:** [@shenry](https://www.ruby-forum.com/u/shenry)\
**Replies:** 1\
**Last updated:** [March 10, 2008, 7:07am UTC](https://www.ruby-forum.com/t/n00b-cant-run-script-generate-ugh/131448 "2008-03-10T07:07:20Z")

</div>

Just got ruby/gems/rails installed (OS 10.3), I’ve been able to login to the http://localhost:3000 and see that I am at least doing something right… When I try to run script/generate I get: Grey-Box:~/sites/test shen…

---

## [Cannot route new actions added to a controller in Rails 2.0.2](https://www.ruby-forum.com/t/cannot-route-new-actions-added-to-a-controller-in-rails-2-0-2/131446)

<div class="topic-metadata">

**Author:** [@liquid\_rails](https://www.ruby-forum.com/u/liquid_rails)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 6:26am UTC](https://www.ruby-forum.com/t/cannot-route-new-actions-added-to-a-controller-in-rails-2-0-2/131446 "2008-03-10T06:26:17Z")

</div>

Does anyone know of a good tutorial on routing for Rails 2.0.2? I added a new method to one of my controllers and when I point to it by localhost/:controller/:action, I can’t see it! In my routes.rb file, I’ve got: …

---

## [How do we handle session timeout](https://www.ruby-forum.com/t/how-do-we-handle-session-timeout/131439)

<div class="topic-metadata">

**Author:** [@beginner](https://www.ruby-forum.com/u/beginner)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 3:48am UTC](https://www.ruby-forum.com/t/how-do-we-handle-session-timeout/131439 "2008-03-10T03:48:21Z")

</div>

Currently I am using ActiveRecord as session store. And have this (protect\_from\_forgery :secret=“xxxx”) set in ApplicationController. Also every five minutes I have a cron job to delete any session record that has not…

---

## [What is the best way to approach a CMS?](https://www.ruby-forum.com/t/what-is-the-best-way-to-approach-a-cms/131370)

<div class="topic-metadata">

**Author:** [@ron](https://www.ruby-forum.com/u/ron)\
**Replies:** 4\
**Last updated:** [March 10, 2008, 3:04am UTC](https://www.ruby-forum.com/t/what-is-the-best-way-to-approach-a-cms/131370 "2008-03-10T03:04:52Z")

</div>

I posted on a question with erb in SQL entries because I’ve been building a CMS for my own website. I’ve built them before, but in ColdFusion, and I’m not sure how best to approach it in Rails. Right now, I have a si…

---

## [Update geometry field using SQL with ActiveRecord](https://www.ruby-forum.com/t/update-geometry-field-using-sql-with-activerecord/131321)

<div class="topic-metadata">

**Author:** [@Andrew\_Dubinsky](https://www.ruby-forum.com/u/Andrew_Dubinsky)\
**Replies:** 3\
**Last updated:** [March 10, 2008, 2:49am UTC](https://www.ruby-forum.com/t/update-geometry-field-using-sql-with-activerecord/131321 "2008-03-10T02:49:28Z")

</div>

I am trying to insert lat/long into mysql from a ruby object. Here is the method that mysql requires: “GeomFromText('POINT(35.211232 -111.613529))” So I need to insert this into the “geometry” field. The only way I ca…

---

## [\[ANN\] Offering to work directly for the Ruby community!](https://www.ruby-forum.com/t/ann-offering-to-work-directly-for-the-ruby-community/131437)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 2:45am UTC](https://www.ruby-forum.com/t/ann-offering-to-work-directly-for-the-ruby-community/131437 "2008-03-10T02:45:16Z")

</div>

Hi folks, I’ve been prone to having crazy ideas before, but this one is my latest. After posting a long, whimsical post on the O’Reilly blog about this, my friends have persuaded me to try this for real. If you have…

---

## [RSpec, validates\_presence\_of, and foreign\_key](https://www.ruby-forum.com/t/rspec-validates-presence-of-and-foreign-key/131435)

<div class="topic-metadata">

**Author:** [@Pietro](https://www.ruby-forum.com/u/Pietro)\
**Replies:** 0\
**Last updated:** [March 10, 2008, 2:30am UTC](https://www.ruby-forum.com/t/rspec-validates-presence-of-and-foreign-key/131435 "2008-03-10T02:30:37Z")

</div>

I’m having trouble with validation and RSpec/spec::rails. I have an Item model which acts\_as\_ratable. Item has\_many :ratings (Rating is another model which essentially maps users to ratings). In the Rating model I hav…

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

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