# Rails

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

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

---

## [Listing actions of the controller](https://www.ruby-forum.com/t/listing-actions-of-the-controller/136294)

<div class="topic-metadata">

**Author:** [@saravanankrishnan](https://www.ruby-forum.com/u/saravanankrishnan)\
**Replies:** 8\
**Last updated:** [April 30, 2008, 5:06pm UTC](https://www.ruby-forum.com/t/listing-actions-of-the-controller/136294 "2008-04-30T17:06:11Z")

</div>

Hi to all, Is it possible to list out all the actions inside the controller. Thanks in Advance Saravanan

---

## [Adding new a new font](https://www.ruby-forum.com/t/adding-new-a-new-font/136280)

<div class="topic-metadata">

**Author:** [@paradise](https://www.ruby-forum.com/u/paradise)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 5:03pm UTC](https://www.ruby-forum.com/t/adding-new-a-new-font/136280 "2008-04-30T17:03:14Z")

</div>

I was wondering if anyone knows where to add a new font with a TrueType Font File. Is there a specific file for extra fonts? thanks, Dave

---

## [Adding errors to an autocomplete field and ensuring it is wrapped with fieldWithErrors](https://www.ruby-forum.com/t/adding-errors-to-an-autocomplete-field-and-ensuring-it-is-wrapped-with-fieldwitherrors/135064)

<div class="topic-metadata">

**Author:** [@dale](https://www.ruby-forum.com/u/dale)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/adding-errors-to-an-autocomplete-field-and-ensuring-it-is-wrapped-with-fieldwitherrors/135064 "2008-04-30T17:00:42Z")

</div>

So I’m failing to find how to do this the ‘rails-way’ Here’s the problem, it’s easier to show it in an example…but basically I’m having issues with validation errors highlighting (wrapping) with the ‘fieldWithErrors’ …

---

## [Single table inheritance: declare non-shared attributes](https://www.ruby-forum.com/t/single-table-inheritance-declare-non-shared-attributes/136163)

<div class="topic-metadata">

**Author:** [@song](https://www.ruby-forum.com/u/song)\
**Replies:** 3\
**Last updated:** [April 30, 2008, 4:49pm UTC](https://www.ruby-forum.com/t/single-table-inheritance-declare-non-shared-attributes/136163 "2008-04-30T16:49:47Z")

</div>

Hi! I have a Model Foo and two subclasses Bar1 and Bar2. Bar1 have some attributes which shouldn’t be accessible in Bar2 (because they aren’t needed), what is the best practice to declare such attributes as non-share…

---

## [No such file to load -- sqlite3](https://www.ruby-forum.com/t/no-such-file-to-load-sqlite3/136277)

<div class="topic-metadata">

**Author:** [@manika](https://www.ruby-forum.com/u/manika)\
**Replies:** 3\
**Last updated:** [April 30, 2008, 4:46pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-sqlite3/136277 "2008-04-30T16:46:40Z")

</div>

Hi I have created a controller but when I am running it with http://127.0.0.1:3000/my\_test getting error MissingSourceFile in My testController#index no such file to load – sqlite3 what is the problem?

---

## [Adding a bit of ajax to rails question](https://www.ruby-forum.com/t/adding-a-bit-of-ajax-to-rails-question/136123)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [April 30, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/adding-a-bit-of-ajax-to-rails-question/136123 "2008-04-30T16:40:36Z")

</div>

Hi, I just started playing to add some ajax to my RoR application. works… but something weird is going on that is most problably a newbee error than anything else. I have this code in one of my views… \<%= link\_to\_re…

---

## [RAM saving plugins](https://www.ruby-forum.com/t/ram-saving-plugins/136302)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 4:29pm UTC](https://www.ruby-forum.com/t/ram-saving-plugins/136302 "2008-04-30T16:29:18Z")

</div>

Thought I’d put in a plug for some plugins I noticed the other day. http://pennysmalls.com/ slim attribute plugin purports to ‘lazy load’ your AR attributes, so if you never use that description, it never gets loaded…

---

## [\[OT\] Before thinking on my startup... what elements would I need?](https://www.ruby-forum.com/t/ot-before-thinking-on-my-startup-what-elements-would-i-need/136298)

<div class="topic-metadata">

**Author:** [@mhfs](https://www.ruby-forum.com/u/mhfs)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 4:15pm UTC](https://www.ruby-forum.com/t/ot-before-thinking-on-my-startup-what-elements-would-i-need/136298 "2008-04-30T16:15:06Z")

</div>

Hello all, I’m looking for some advice on what skills / subjects to get me involved before thinking in executing my plans of starting my own thing (startup thing). I already have a great idea of application as a serv…

---

## [Wish to import .csv files for processing and then throw away?](https://www.ruby-forum.com/t/wish-to-import-csv-files-for-processing-and-then-throw-away/136297)

<div class="topic-metadata">

**Author:** [@Kathleen\_Kennedy](https://www.ruby-forum.com/u/Kathleen_Kennedy)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 3:52pm UTC](https://www.ruby-forum.com/t/wish-to-import-csv-files-for-processing-and-then-throw-away/136297 "2008-04-30T15:52:39Z")

</div>

I’ve written a routine allowing the client user to declare where their .csv import file resides and then send it to the server to import the many rows into an existing model table, and then throw it away. I’ve import…

---

## [Admin namespace not working with duplicated action](https://www.ruby-forum.com/t/admin-namespace-not-working-with-duplicated-action/136292)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 3:49pm UTC](https://www.ruby-forum.com/t/admin-namespace-not-working-with-duplicated-action/136292 "2008-04-30T15:49:51Z")

</div>

Hi, I have decided to setup my Rails app with a public and admin side. To manage a list of users, I have a public app/controllers/users\_controller.rb where users can list there friends. And an admin side: app/control…

---

## [How to set cgi temp directory for uploads?](https://www.ruby-forum.com/t/how-to-set-cgi-temp-directory-for-uploads/136265)

<div class="topic-metadata">

**Author:** [@Sean\_OSHara](https://www.ruby-forum.com/u/Sean_OSHara)\
**Replies:** 5\
**Last updated:** [April 30, 2008, 3:03pm UTC](https://www.ruby-forum.com/t/how-to-set-cgi-temp-directory-for-uploads/136265 "2008-04-30T15:03:07Z")

</div>

Hi all, my application has some very large file uploads, up to around 200MB. This eats up all my /tmp space (1 Gig) and so the upload fails. I get this message: No space left on device - /tmp/CGI16004-2 Is there a w…

---

## [Default values for belongs\_to and has\_one](https://www.ruby-forum.com/t/default-values-for-belongs-to-and-has-one/136219)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [April 30, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/default-values-for-belongs-to-and-has-one/136219 "2008-04-30T14:42:18Z")

</div>

There really doesn’t seem to be a declarative way to define a default value for belongs\_to and has\_one associations class Person \< ActiveRecord::Base belongs\_to :address end p = Person.new p.address.city = ‘Atlanti…

---

## [Getting Quicktime movie size with Ruby](https://www.ruby-forum.com/t/getting-quicktime-movie-size-with-ruby/136158)

<div class="topic-metadata">

**Author:** [@fipa](https://www.ruby-forum.com/u/fipa)\
**Replies:** 3\
**Last updated:** [April 30, 2008, 1:10pm UTC](https://www.ruby-forum.com/t/getting-quicktime-movie-size-with-ruby/136158 "2008-04-30T13:10:35Z")

</div>

I am trying to automatically insert the object properties in order to play some embedded videos in my webpage. The problem is that I need to specify the height and width of the video. I can do it by hand but it is a b…

---

## [High CPU usage problem](https://www.ruby-forum.com/t/high-cpu-usage-problem/136050)

<div class="topic-metadata">

**Author:** [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 12:53pm UTC](https://www.ruby-forum.com/t/high-cpu-usage-problem/136050 "2008-04-30T12:53:53Z")

</div>

Hi, Iâ€™ve been working with ruby on rails now for around 4 weeks, I am having several issues with an apps Iâ€™m working on that was not developed by myself, the site was made by a company that we no longer in contac…

---

## [Can't get drop\_receiving\_element to work](https://www.ruby-forum.com/t/cant-get-drop-receiving-element-to-work/136285)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 12:49pm UTC](https://www.ruby-forum.com/t/cant-get-drop-receiving-element-to-work/136285 "2008-04-30T12:49:59Z")

</div>

Any idea what’s wrong with this snippet? Looks pretty simple to me. Yet no matter what I try, the drop\_receiving\_element helper causes an error. drop here \<%= drop\_receiving\_element('dropFoo', :hoverclass =\> 'hover')…

---

## [Excessive sessions](https://www.ruby-forum.com/t/excessive-sessions/136084)

<div class="topic-metadata">

**Author:** [@S-gw](https://www.ruby-forum.com/u/S-gw)\
**Replies:** 4\
**Last updated:** [April 30, 2008, 12:46pm UTC](https://www.ruby-forum.com/t/excessive-sessions/136084 "2008-04-30T12:46:58Z")

</div>

One of the negative side effects of using the classic monit / mongrel\_cluster stack with a URL poll by monit is that Rails generates a session for every connection. This session is pretty much useless, and in my case …

---

## [Displaying/running ruby tags in static HTML](https://www.ruby-forum.com/t/displaying-running-ruby-tags-in-static-html/136139)

<div class="topic-metadata">

**Author:** [@saurabhpurnaye](https://www.ruby-forum.com/u/saurabhpurnaye)\
**Replies:** 5\
**Last updated:** [April 30, 2008, 11:52am UTC](https://www.ruby-forum.com/t/displaying-running-ruby-tags-in-static-html/136139 "2008-04-30T11:52:42Z")

</div>

Hi all. greetings… I have came across a situation where I let CMS user/admin on my site to create a page with the HTML editor(tiny\_mce)and he wants me to run some ruby code to generate the dynamic content through that…

---

## [Rails array to javascript](https://www.ruby-forum.com/t/rails-array-to-javascript/136264)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 10:22am UTC](https://www.ruby-forum.com/t/rails-array-to-javascript/136264 "2008-04-30T10:22:59Z")

</div>

The effect I’m trying to achieve here is basically as follows: test\_controller.rb class TestController \< ApplicationController def test end def fetch @array = \[1,2,3,4,5,6,7,8,9\] end end fetch.rhtml TEST \<%= x=0…

---

## [Beginner mysql problem involving Rake](https://www.ruby-forum.com/t/beginner-mysql-problem-involving-rake/136276)

<div class="topic-metadata">

**Author:** [@donald](https://www.ruby-forum.com/u/donald)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 10:18am UTC](https://www.ruby-forum.com/t/beginner-mysql-problem-involving-rake/136276 "2008-04-30T10:18:10Z")

</div>

Hello, I’m new to rails and I’m trying to get a tutorial application off the ground when running rake migrate it errors with a mysql syntax error response: Mysql::Error: You have an error in your SQL syntax; check th…

---

## [RubyOnRails Plugin: Auto Tags](https://www.ruby-forum.com/t/rubyonrails-plugin-auto-tags/196659)

<div class="topic-metadata">

**Author:** [@sur](https://www.ruby-forum.com/u/sur)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 9:58am UTC](https://www.ruby-forum.com/t/rubyonrails-plugin-auto-tags/196659 "2008-04-30T09:58:05Z")

</div>

AutoTags, an open source project, is a plugin for RubyOnRails applications to automatically generate the relevant tags for the provided content. Its quite simple to use and provide easy integration with ActiveRecord. …

---

## [Flash notice](https://www.ruby-forum.com/t/flash-notice/136269)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 3\
**Last updated:** [April 30, 2008, 9:36am UTC](https://www.ruby-forum.com/t/flash-notice/136269 "2008-04-30T09:36:19Z")

</div>

Hello, I’m using this piece of code to allow users to register to my site : def create cookies.delete :auth\_token @user = User.new(params\[:user\]) @user.save! #Uncomment to have the user logged in after cre…

---

## [Hello world](https://www.ruby-forum.com/t/hello-world/134358)

<div class="topic-metadata">

**Author:** [@mickey13](https://www.ruby-forum.com/u/mickey13)\
**Replies:** 23\
**Last updated:** [April 30, 2008, 5:55am UTC](https://www.ruby-forum.com/t/hello-world/134358 "2008-04-30T05:55:59Z")

</div>

I have a web server (apache2) that I want to host my ruby app on. So far I’ve been unsuccessful in getting a hello world app to work. I’ve tried playing around with my virtual host file to get it to point to my inde…

---

## [Reading files in a Dir](https://www.ruby-forum.com/t/reading-files-in-a-dir/136246)

<div class="topic-metadata">

**Author:** [@sithadmin](https://www.ruby-forum.com/u/sithadmin)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 3:21am UTC](https://www.ruby-forum.com/t/reading-files-in-a-dir/136246 "2008-04-30T03:21:24Z")

</div>

Hello, How can I read files form a directory? I basically just want to print out a list of filenames in a particular directory. Thanks, Jeff M.

---

## [RESTful mass deletion?](https://www.ruby-forum.com/t/restful-mass-deletion/136179)

<div class="topic-metadata">

**Author:** [@Juan\_LupiSSS\_n](https://www.ruby-forum.com/u/Juan_LupiSSS_n)\
**Replies:** 3\
**Last updated:** [April 30, 2008, 2:39am UTC](https://www.ruby-forum.com/t/restful-mass-deletion/136179 "2008-04-30T02:39:27Z")

</div>

How should I implement mass deletion of records in a RESTful way? i.e. from my index view I display a checkbox next to each record, and have a submit button that will delete all of the checked boxes. Everything I goo…

---

## [How to test Rails apps without model?](https://www.ruby-forum.com/t/how-to-test-rails-apps-without-model/136138)

<div class="topic-metadata">

**Author:** [@arunmehta](https://www.ruby-forum.com/u/arunmehta)\
**Replies:** 6\
**Last updated:** [April 30, 2008, 2:26am UTC](https://www.ruby-forum.com/t/how-to-test-rails-apps-without-model/136138 "2008-04-30T02:26:36Z")

</div>

Hi, I am using Rails to develop an application where I do not use a database at all, so I have not defined a model at all, just controllers and views. The application runs fine, but when I try to run functional tests,…

---

## [Every interaction with my app gives me this message. Why?](https://www.ruby-forum.com/t/every-interaction-with-my-app-gives-me-this-message-why/136239)

<div class="topic-metadata">

**Author:** [@nik](https://www.ruby-forum.com/u/nik)\
**Replies:** 1\
**Last updated:** [April 30, 2008, 2:10am UTC](https://www.ruby-forum.com/t/every-interaction-with-my-app-gives-me-this-message-why/136239 "2008-04-30T02:10:48Z")

</div>

Hello all, It has been more than three months now and I have been getting this kind of message for every little thing I do on my app, .e.g, I just go from one static page to another, it gives me that! I know this mig…

---

## [Rake build\_postgres\_databases fails on edge... How to use the new schema.rb system?](https://www.ruby-forum.com/t/rake-build-postgres-databases-fails-on-edge-how-to-use-the-new-schema-rb-system/136242)

<div class="topic-metadata">

**Author:** [@jdevine](https://www.ruby-forum.com/u/jdevine)\
**Replies:** 0\
**Last updated:** [April 30, 2008, 1:53am UTC](https://www.ruby-forum.com/t/rake-build-postgres-databases-fails-on-edge-how-to-use-the-new-schema-rb-system/136242 "2008-04-30T01:53:17Z")

</div>

Posted this message on Core, but maybe it belongs here. The subject pretty much says it all. I’m getting ready to set up an environment for working on my first patch, and I discovered that the activerecord/test/schema…

---

## [RESTful route for member action](https://www.ruby-forum.com/t/restful-route-for-member-action/136226)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 1:06am UTC](https://www.ruby-forum.com/t/restful-route-for-member-action/136226 "2008-04-30T01:06:28Z")

</div>

I have run into this scenario a couple of times and am wondering how other people get around it. When you create a member route it is intended to operate on just one of a particular model object. My problem is that s…

---

## [Copying RoR Session Data Into Oracle v$session](https://www.ruby-forum.com/t/copying-ror-session-data-into-oracle-v-session/136032)

<div class="topic-metadata">

**Author:** [@bikle](https://www.ruby-forum.com/u/bikle)\
**Replies:** 2\
**Last updated:** [April 30, 2008, 12:59am UTC](https://www.ruby-forum.com/t/copying-ror-session-data-into-oracle-v-session/136032 "2008-04-30T00:59:27Z")

</div>

People, I just wrote a short paper and put it on my site: Copying Data From A Ruby On Rails Session Into An Oracle Session The intended audience is people who know a little about Rails and/or a little about Oracle. …

---

## [User registration with email confirmation](https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227)

<div class="topic-metadata">

**Author:** [@joel](https://www.ruby-forum.com/u/joel)\
**Replies:** 5\
**Last updated:** [April 30, 2008, 12:10am UTC](https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227 "2008-04-30T00:10:20Z")

</div>

Hello people, i’m trying to implement a user registration system with email confirmation using the tutorial from technologyvoodoo.com but it seems the methods used to access text fields aren’t working. Perhaps these …

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

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