# Rails

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

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

---

## [Error with RESTful model generated with scaffold\_resource](https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115277)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 0\
**Last updated:** [September 23, 2007, 12:55am UTC](https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115277 "2007-09-23T00:55:20Z")

</div>

I created a RESTful model (User) using the scaffold\_resource generator and used ActiveScaffold on it. Unfortunately, I get the following error when I click “Edit” for a particular row: ActionController::RoutingError (…

---

## [Acts\_as\_comparable: gem installation](https://www.ruby-forum.com/t/acts-as-comparable-gem-installation/115270)

<div class="topic-metadata">

**Author:** [@leonb](https://www.ruby-forum.com/u/leonb)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 11:25pm UTC](https://www.ruby-forum.com/t/acts-as-comparable-gem-installation/115270 "2007-09-22T23:25:10Z")

</div>

Hi all, I installed acts\_as\_comparable as gem and I added the acts\_as\_comparable-method in my model. But now I get this error: NoMethodError: undefined method \`acts\_as\_comparable’ for Ticket:Class I tried to require…

---

## [Error i cant figure out, only on my local machine](https://www.ruby-forum.com/t/error-i-cant-figure-out-only-on-my-local-machine/115267)

<div class="topic-metadata">

**Author:** [@inari](https://www.ruby-forum.com/u/inari)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 10:43pm UTC](https://www.ruby-forum.com/t/error-i-cant-figure-out-only-on-my-local-machine/115267 "2007-09-22T22:43:41Z")

</div>

after svn update of our development server i get this error when trying to use the app (db:migrate goes without a hitch). the svn update is working fine on my other computer. its just here, heres the error: ActiveReco…

---

## [Error with RESTful model generated with scaffold\_resource](https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115266)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115266 "2007-09-22T22:42:12Z")

</div>

I created a model (User) using the scaffold\_resource generator and get the following error when I click “Edit” with ActiveScaffold: ActionController::RoutingError (no route found to match “/user/1;edit” with {:method=\>…

---

## [Text messaging with Ruby on Rails](https://www.ruby-forum.com/t/text-messaging-with-ruby-on-rails/115152)

<div class="topic-metadata">

**Author:** [@chirag](https://www.ruby-forum.com/u/chirag)\
**Replies:** 5\
**Last updated:** [September 22, 2007, 10:18pm UTC](https://www.ruby-forum.com/t/text-messaging-with-ruby-on-rails/115152 "2007-09-22T22:18:10Z")

</div>

I want to create a text messaging system with my RoR web site. Anybody know of any good plug-ins or gems? I found this which is about 6 cents per text message: http://www.lukeredpath.co.uk/2007/8/29/sending-sms-messag…

---

## [How do I "render" a Java applet from a controller?](https://www.ruby-forum.com/t/how-do-i-render-a-java-applet-from-a-controller/115196)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [September 22, 2007, 10:08pm UTC](https://www.ruby-forum.com/t/how-do-i-render-a-java-applet-from-a-controller/115196 "2007-09-22T22:08:07Z")

</div>

Hi, I need to render the results of another program, which are stored in the form of applets, each stored in their own directories. The applet-related data is referenced in a plain html file, which contains stateme…

---

## [Method seems to work ok but the test fails - why?](https://www.ruby-forum.com/t/method-seems-to-work-ok-but-the-test-fails-why/115254)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [September 22, 2007, 9:48pm UTC](https://www.ruby-forum.com/t/method-seems-to-work-ok-but-the-test-fails-why/115254 "2007-09-22T21:48:06Z")

</div>

Can anyone help me by explaining why this test fails? An article has a title and a url (among other things). If we don’t get a title from the create article form, then i use hpricot and open-uri to look on the net a…

---

## [Rails newbie: passing a value to hidden form field, then get](https://www.ruby-forum.com/t/rails-newbie-passing-a-value-to-hidden-form-field-then-get/115262)

<div class="topic-metadata">

**Author:** [@tomh](https://www.ruby-forum.com/u/tomh)\
**Replies:** 1\
**Last updated:** [September 22, 2007, 9:05pm UTC](https://www.ruby-forum.com/t/rails-newbie-passing-a-value-to-hidden-form-field-then-get/115262 "2007-09-22T21:05:59Z")

</div>

Warning: I am as green as #00FF00 with rails :slight\_smile: I have an rhtml view that shows a survey: /views/survey/show.rhtml. I have a Survey model, helper and controller. I’m using the acts\_as\_commentable plugin …

---

## [Number to words](https://www.ruby-forum.com/t/number-to-words/115188)

<div class="topic-metadata">

**Author:** [@Naga\_harish\_K](https://www.ruby-forum.com/u/Naga_harish_K)\
**Replies:** 8\
**Last updated:** [September 22, 2007, 4:05pm UTC](https://www.ruby-forum.com/t/number-to-words/115188 "2007-09-22T16:05:21Z")

</div>

Hi all, Is there a way to convert number to words in Ruby?? eg., if the number is 35764, then the word should be Thirty Five Thousand Seven Hundred and Sixty Four if it is 345 then Three Hundred and forty five. Can …

---

## [Howto customize deployment with capistrano2](https://www.ruby-forum.com/t/howto-customize-deployment-with-capistrano2/115232)

<div class="topic-metadata">

**Author:** [@helzer](https://www.ruby-forum.com/u/helzer)\
**Replies:** 1\
**Last updated:** [September 22, 2007, 2:23pm UTC](https://www.ruby-forum.com/t/howto-customize-deployment-with-capistrano2/115232 "2007-09-22T14:23:36Z")

</div>

My deployment requires a few extra steps after ‘update\_code’ and then again after ‘symlink’. Until I migrated to capistrano2, I had my own deploy\_with\_migration task which added these steps. What would be a recommend…

---

## [How test a file upload (with attachment\_fu)?](https://www.ruby-forum.com/t/how-test-a-file-upload-with-attachment-fu/115250)

<div class="topic-metadata">

**Author:** [@mix](https://www.ruby-forum.com/u/mix)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 1:29pm UTC](https://www.ruby-forum.com/t/how-test-a-file-upload-with-attachment-fu/115250 "2007-09-22T13:29:04Z")

</div>

Hi, i’m using attachment\_fu and now it works, the file is uploaded and resized without problems… but how can i test this ? i’m trying to add the file with fixture\_file\_upload with the post, but it give me a 500 :frowni…

---

## [Dynamic view - is it possible at all?](https://www.ruby-forum.com/t/dynamic-view-is-it-possible-at-all/115240)

<div class="topic-metadata">

**Author:** [@inrila](https://www.ruby-forum.com/u/inrila)\
**Replies:** 2\
**Last updated:** [September 22, 2007, 11:00am UTC](https://www.ruby-forum.com/t/dynamic-view-is-it-possible-at-all/115240 "2007-09-22T11:00:46Z")

</div>

I have the following question. It sounds weird, but still. We all have app/views/say.rhtml or any other template for the view. It can include of course instructions in \<% %\> So the question is next – is it possible to…

---

## [How to send mails using ip address](https://www.ruby-forum.com/t/how-to-send-mails-using-ip-address/115242)

<div class="topic-metadata">

**Author:** [@abhi](https://www.ruby-forum.com/u/abhi)\
**Replies:** 1\
**Last updated:** [September 22, 2007, 10:23am UTC](https://www.ruby-forum.com/t/how-to-send-mails-using-ip-address/115242 "2007-09-22T10:23:40Z")

</div>

will smone plz tell me how can i send mails using actionmailer but with only ip address of my pc no without any domain name…means i want to put ip address in my domain name … how is it possible ???plz tell me???

---

## [Hm:t definition help](https://www.ruby-forum.com/t/hm-t-definition-help/115237)

<div class="topic-metadata">

**Author:** [@Koalemos](https://www.ruby-forum.com/u/Koalemos)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 4:31am UTC](https://www.ruby-forum.com/t/hm-t-definition-help/115237 "2007-09-22T04:31:18Z")

</div>

I have the Raid model with: has\_many :earners, :through =\> :raid\_attendees, :source =\> :character The raid\_attendees table has an earner\_id table. When I try to define something using at = RaidAttendee.new at.ea…

---

## [Temporary disabling after\_update](https://www.ruby-forum.com/t/temporary-disabling-after-update/115219)

<div class="topic-metadata">

**Author:** [@glenn](https://www.ruby-forum.com/u/glenn)\
**Replies:** 1\
**Last updated:** [September 22, 2007, 4:29am UTC](https://www.ruby-forum.com/t/temporary-disabling-after-update/115219 "2007-09-22T04:29:18Z")

</div>

Hi, I am trying to replace my old database trigger with ActiveRecord callbacks in rails. I have a model like following: class Action \< ActiveRecord::Base belongs\_to :inquiry def after\_update #clean up all action a…

---

## [Split tag from acts\_as\_taggable\_on\_steroids](https://www.ruby-forum.com/t/split-tag-from-acts-as-taggable-on-steroids/115209)

<div class="topic-metadata">

**Author:** [@peninha](https://www.ruby-forum.com/u/peninha)\
**Replies:** 1\
**Last updated:** [September 22, 2007, 3:04am UTC](https://www.ruby-forum.com/t/split-tag-from-acts-as-taggable-on-steroids/115209 "2007-09-22T03:04:12Z")

</div>

Hi, I have set up acts\_as\_taggable\_on\_steroids and it works great. But I’m having trouble spliting the tag\_list string to generate individual links for each tag. I’m getting the data in my controller: @dishes = Dish…

---

## [ActionWebServer and SOAPFault](https://www.ruby-forum.com/t/actionwebserver-and-soapfault/115229)

<div class="topic-metadata">

**Author:** [@locky2003](https://www.ruby-forum.com/u/locky2003)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 1:30am UTC](https://www.ruby-forum.com/t/actionwebserver-and-soapfault/115229 "2007-09-22T01:30:02Z")

</div>

I’m really new to RoR and my first task is to write SOAP web service. The problem is that I don’t understand how to send custom SOAPFault messages in case of the errors. For example, I have FindCustomerById API signat…

---

## [Mongrel / Nginx on Ubuntu: Can't see it in a browser](https://www.ruby-forum.com/t/mongrel-nginx-on-ubuntu-cant-see-it-in-a-browser/115226)

<div class="topic-metadata">

**Author:** [@datorrey](https://www.ruby-forum.com/u/datorrey)\
**Replies:** 0\
**Last updated:** [September 22, 2007, 12:31am UTC](https://www.ruby-forum.com/t/mongrel-nginx-on-ubuntu-cant-see-it-in-a-browser/115226 "2007-09-22T00:31:19Z")

</div>

I have an existing rails app I’m developing on for a client and need to run in a local environment on my home box. I’m running Ubuntu/Feisty and I followed this tutorial: http://www.urbanpuddle.com/articles/2007/05/09…

---

## [Associations troubles](https://www.ruby-forum.com/t/associations-troubles/115217)

<div class="topic-metadata">

**Author:** [@student](https://www.ruby-forum.com/u/student)\
**Replies:** 6\
**Last updated:** [September 21, 2007, 9:55pm UTC](https://www.ruby-forum.com/t/associations-troubles/115217 "2007-09-21T21:55:45Z")

</div>

Still working this global legacy database. I’m autogenerating the base model files. Here’s the error: ActionView::TemplateError (compile error C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/ ac…

---

## [Windows XP tips and tricks](https://www.ruby-forum.com/t/windows-xp-tips-and-tricks/115218)

<div class="topic-metadata">

**Author:** [@John\_Travolta](https://www.ruby-forum.com/u/John_Travolta)\
**Replies:** 0\
**Last updated:** [September 21, 2007, 9:20pm UTC](https://www.ruby-forum.com/t/windows-xp-tips-and-tricks/115218 "2007-09-21T21:20:44Z")

</div>

Learn how to repair, speed up and tweak your Windows XP

---

## [Moving logic to controller in for loop - newbie question](https://www.ruby-forum.com/t/moving-logic-to-controller-in-for-loop-newbie-question/115216)

<div class="topic-metadata">

**Author:** [@rails-nooby](https://www.ruby-forum.com/u/rails-nooby)\
**Replies:** 2\
**Last updated:** [September 21, 2007, 8:43pm UTC](https://www.ruby-forum.com/t/moving-logic-to-controller-in-for-loop-newbie-question/115216 "2007-09-21T20:43:49Z")

</div>

Hi, Im new at this. I have something like this in my list view \<% for property in @properties %\> … \<%= number\_to\_currency((property.current\_value - property.mortgage\_amount), {:unit =\> “£”}) %\> \<% end %\> which ha…

---

## [Sortable\_element doesn't update div nor call onComplete func](https://www.ruby-forum.com/t/sortable-element-doesnt-update-div-nor-call-oncomplete-func/115215)

<div class="topic-metadata">

**Author:** [@snaggy](https://www.ruby-forum.com/u/snaggy)\
**Replies:** 0\
**Last updated:** [September 21, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/sortable-element-doesnt-update-div-nor-call-oncomplete-func/115215 "2007-09-21T20:21:39Z")

</div>

I have a sortable UL with LIs in it example: \<%= sortable\_element("my\_list", { :complete =\> "alert ('hi')", :handle =\> "drag", :update =\> "menu", :url =\> { :action =\> "order\_menu" } } ) %\> nothing happens, noth…

---

## [Using collection\_select for a dropdown list navigation?](https://www.ruby-forum.com/t/using-collection-select-for-a-dropdown-list-navigation/115201)

<div class="topic-metadata">

**Author:** [@superwick](https://www.ruby-forum.com/u/superwick)\
**Replies:** 1\
**Last updated:** [September 21, 2007, 8:21pm UTC](https://www.ruby-forum.com/t/using-collection-select-for-a-dropdown-list-navigation/115201 "2007-09-21T20:21:39Z")

</div>

I’m trying to figure out the best way to do this: I have an Artist model I want to create a dropdown list of all the artists in the database. When you select one of them form the list, you get redirected to their res…

---

## [More svn problems - installed but not working (i think)](https://www.ruby-forum.com/t/more-svn-problems-installed-but-not-working-i-think/115203)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 2\
**Last updated:** [September 21, 2007, 8:14pm UTC](https://www.ruby-forum.com/t/more-svn-problems-installed-but-not-working-i-think/115203 "2007-09-21T20:14:31Z")

</div>

I’ve been struggling with installing svn, using a forum post on my shared host (bluehost)'s forum: http://www.bluehostforum.com/showthread.php?p=40515#post40515 I’m asking here because there’s not much traffic and not…

---

## [Ruby on Rails projects](https://www.ruby-forum.com/t/ruby-on-rails-projects/115124)

<div class="topic-metadata">

**Author:** [@MrSWatson](https://www.ruby-forum.com/u/MrSWatson)\
**Replies:** 5\
**Last updated:** [September 21, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/ruby-on-rails-projects/115124 "2007-09-21T19:57:37Z")

</div>

How do you fully delete a rails project? I have deleted the whole project in the rails application folder, but it does NOT delete the SQL and other files within the whole project. Can anyone tell me how I can do this?…

---

## [Resource routing isn't working](https://www.ruby-forum.com/t/resource-routing-isnt-working/115206)

<div class="topic-metadata">

**Author:** [@Christopher\_JSBott](https://www.ruby-forum.com/u/Christopher_JSBott)\
**Replies:** 1\
**Last updated:** [September 21, 2007, 7:57pm UTC](https://www.ruby-forum.com/t/resource-routing-isnt-working/115206 "2007-09-21T19:57:37Z")

</div>

Hello, ActionController::Routing::Routes.draw do |map| map.resources :fs\_store\_entries end uri = make\_uri uri.path = “/fs\_store\_entries/#{id}” response = Net::HTTP.post\_form(uri, :\_method =\> ‘delete’) Does not get…

---

## [How to unset the headers "Cache-Control" and "Pragma" on Rai](https://www.ruby-forum.com/t/how-to-unset-the-headers-cache-control-and-pragma-on-rai/115208)

<div class="topic-metadata">

**Author:** [@walksalong](https://www.ruby-forum.com/u/walksalong)\
**Replies:** 0\
**Last updated:** [September 21, 2007, 6:32pm UTC](https://www.ruby-forum.com/t/how-to-unset-the-headers-cache-control-and-pragma-on-rai/115208 "2007-09-21T18:32:25Z")

</div>

Does anyone know how to unset the headers cache-control and pragma on Rails and where I would put the code to unset it? I’m using Flex on Rails and I cannot see the application in Internet Explorer. Its a white screen…

---

## [System optimizer](https://www.ruby-forum.com/t/system-optimizer/115205)

<div class="topic-metadata">

**Author:** [@John\_Travolta](https://www.ruby-forum.com/u/John_Travolta)\
**Replies:** 0\
**Last updated:** [September 21, 2007, 6:13pm UTC](https://www.ruby-forum.com/t/system-optimizer/115205 "2007-09-21T18:13:20Z")

</div>

Optimize your operating system http://windowsxpsp2pro.blogspot.com

---

## [\--with-apr option with configuring subversion - anyone know?](https://www.ruby-forum.com/t/with-apr-option-with-configuring-subversion-anyone-know/115180)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [September 21, 2007, 5:19pm UTC](https://www.ruby-forum.com/t/with-apr-option-with-configuring-subversion-anyone-know/115180 "2007-09-21T17:19:45Z")

</div>

Hi there…I think it’s just a simple syntax error that i have. I’m trying to get subversion installed, in unix on a shared web server: it requires apr and apr-utils, so i’ve already downloaded and installed them. When…

---

## [Generating nested resource path](https://www.ruby-forum.com/t/generating-nested-resource-path/115161)

<div class="topic-metadata">

**Author:** [@eggie5](https://www.ruby-forum.com/u/eggie5)\
**Replies:** 1\
**Last updated:** [September 21, 2007, 5:07pm UTC](https://www.ruby-forum.com/t/generating-nested-resource-path/115161 "2007-09-21T17:07:44Z")

</div>

I have a nested resourced called attachments: (routes.rb) map.resources :content\_campaigns do |content\_campaigns| content\_campaigns.resources :attachments, :member =\> { :download =\> :get} end But, I can’t seem to g…

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

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