# Rails

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

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

---

## [Can I turn this into a text\_field\_tag?](https://www.ruby-forum.com/t/can-i-turn-this-into-a-text-field-tag/106353)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 10:05pm UTC](https://www.ruby-forum.com/t/can-i-turn-this-into-a-text-field-tag/106353 "2007-06-08T22:05:46Z")

</div>

into \<%= text\_field\_tag ‘login’,"", :size=\> ‘16’ %\>

---

## [Validation inside controller](https://www.ruby-forum.com/t/validation-inside-controller/106305)

<div class="topic-metadata">

**Author:** [@migrate](https://www.ruby-forum.com/u/migrate)\
**Replies:** 3\
**Last updated:** [June 8, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/validation-inside-controller/106305 "2007-06-08T21:11:08Z")

</div>

Hello all, I’m trying to directy call validation methods in the controller (for instance account.validates\_format\_of ‘e-mail’, :with =\> ‘/^(\[^@\\s\]+)@((?:\[-a-z0-9\]+.)+\[a-z\]{2,})$/i’, :within =\> 5…199) but it does not …

---

## [Getting the absolute path of the controller](https://www.ruby-forum.com/t/getting-the-absolute-path-of-the-controller/106345)

<div class="topic-metadata">

**Author:** [@hhop](https://www.ruby-forum.com/u/hhop)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/getting-the-absolute-path-of-the-controller/106345 "2007-06-08T21:06:05Z")

</div>

Does anyone know how I can determine the absolute path of a controller? I’m using the controller’s absolute path as a key for my site’s security, but I’m coming across an issue where the form\_remote\_tag method is put…

---

## [Rails Testing : Not Just For The Paranoid article](https://www.ruby-forum.com/t/rails-testing-not-just-for-the-paranoid-article/106268)

<div class="topic-metadata">

**Author:** [@naething](https://www.ruby-forum.com/u/naething)\
**Replies:** 6\
**Last updated:** [June 8, 2007, 8:56pm UTC](https://www.ruby-forum.com/t/rails-testing-not-just-for-the-paranoid-article/106268 "2007-06-08T20:56:04Z")

</div>

Though I’m primarily working on plain old Ruby with a handful of Camping here and there, I’ve been writing a couple articles about Rails that might be interesting to the novice-to-intermediate crowd. My article “Rails…

---

## [SimplaTable with error: singleton can't be dumped](https://www.ruby-forum.com/t/simplatable-with-error-singleton-cant-be-dumped/106348)

<div class="topic-metadata">

**Author:** [@helderam](https://www.ruby-forum.com/u/helderam)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/simplatable-with-error-singleton-cant-be-dumped/106348 "2007-06-08T20:50:16Z")

</div>

Hello, My first PDF report from rails. When i try to render “tab.render\_on(pdf)”, I get that error message. Thanks any help, Helder ================================================================= TypeError in Con…

---

## [How to setup URL to rails application](https://www.ruby-forum.com/t/how-to-setup-url-to-rails-application/106342)

<div class="topic-metadata">

**Author:** [@voipfc](https://www.ruby-forum.com/u/voipfc)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 7:58pm UTC](https://www.ruby-forum.com/t/how-to-setup-url-to-rails-application/106342 "2007-06-08T19:58:55Z")

</div>

I just installed a rails app - RadiantCMS at a shared host and realized that the rails app assumes that it operates of out the base URL, www.domain.com, rather than the symlinked path, www.domain.com/symlink. Is ther…

---

## [Save of complex ActiveRecord does not update everything](https://www.ruby-forum.com/t/save-of-complex-activerecord-does-not-update-everything/106341)

<div class="topic-metadata">

**Author:** [@pedz](https://www.ruby-forum.com/u/pedz)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 7:46pm UTC](https://www.ruby-forum.com/t/save-of-complex-activerecord-does-not-update-everything/106341 "2007-06-08T19:46:22Z")

</div>

In my application, a PMR has a list of signatures. A signature has a list of text lines. I have the appropriate has\_many and belongs\_to lines in my model. I create the whole entity and then do save and the whole ent…

---

## [Object in a session](https://www.ruby-forum.com/t/object-in-a-session/106339)

<div class="topic-metadata">

**Author:** [@pablo](https://www.ruby-forum.com/u/pablo)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 7:03pm UTC](https://www.ruby-forum.com/t/object-in-a-session/106339 "2007-06-08T19:03:28Z")

</div>

Hello I am working on a e-store. I have a page where user puts his address and info, and also chooses form of shipment. When he/she submits i want to display the data he/she just entered + add the costs of shippment.…

---

## [How to detect translated fields?](https://www.ruby-forum.com/t/how-to-detect-translated-fields/106337)

<div class="topic-metadata">

**Author:** [@patcito](https://www.ruby-forum.com/u/patcito)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 6:48pm UTC](https://www.ruby-forum.com/t/how-to-detect-translated-fields/106337 "2007-06-08T18:48:50Z")

</div>

Hey all, I use globalize intern translation like this: class Media \< ActiveRecord::Base self.keep\_translations\_in\_model = true translates :name, :base\_as\_default =\> true end and I use it for several models. Is ther…

---

## [Connecting to other databases not development, production, t](https://www.ruby-forum.com/t/connecting-to-other-databases-not-development-production-t/106328)

<div class="topic-metadata">

**Author:** [@psimoes](https://www.ruby-forum.com/u/psimoes)\
**Replies:** 2\
**Last updated:** [June 8, 2007, 6:29pm UTC](https://www.ruby-forum.com/t/connecting-to-other-databases-not-development-production-t/106328 "2007-06-08T18:29:49Z")

</div>

Hello, I’ve set my database.yml like this: development: adapter: mysql database: teste\_development username: root password: socket: /var/run/mysqld/mysqld.sock test: adapter: mysql database: teste\_test usernam…

---

## [Knowledge management in OSS communities](https://www.ruby-forum.com/t/knowledge-management-in-oss-communities/106334)

<div class="topic-metadata">

**Author:** [@zilia](https://www.ruby-forum.com/u/zilia)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 5:29pm UTC](https://www.ruby-forum.com/t/knowledge-management-in-oss-communities/106334 "2007-06-08T17:29:42Z")

</div>

Dear All, I am a PhD student in e-Business in Durham University (UK). My research topic is “Knowledge management and innovation in virtual organisations”. The aim of my thesis is to assess how and to what extent know…

---

## [Nested Object Support for forms](https://www.ruby-forum.com/t/nested-object-support-for-forms/106331)

<div class="topic-metadata">

**Author:** [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/nested-object-support-for-forms/106331 "2007-06-08T16:49:39Z")

</div>

Hello, I wish to do something very like whats described here: http://dev.rubyonrails.org/ticket/3880 In essence, I want to be able to construct a form for an arbitrarily complex object graph and easily construct the e…

---

## [Rake Migrate failing - but can't find syntax errors](https://www.ruby-forum.com/t/rake-migrate-failing-but-cant-find-syntax-errors/106252)

<div class="topic-metadata">

**Author:** [@patwa](https://www.ruby-forum.com/u/patwa)\
**Replies:** 5\
**Last updated:** [June 8, 2007, 4:34pm UTC](https://www.ruby-forum.com/t/rake-migrate-failing-but-cant-find-syntax-errors/106252 "2007-06-08T16:34:39Z")

</div>

Hello, I’m following a guide on creating a migration, but the migrate is failing due to the following errors: Line 7: Unexpected ‘\\n’ expecting tCOLON2 or ‘{’ or ‘.’ Line 14: $END expecting KEND But I can’t find any…

---

## [Passing :id param in link\_to etc](https://www.ruby-forum.com/t/passing-id-param-in-link-to-etc/106326)

<div class="topic-metadata">

**Author:** [@jeannibee](https://www.ruby-forum.com/u/jeannibee)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/passing-id-param-in-link-to-etc/106326 "2007-06-08T16:25:36Z")

</div>

Just need some more inside information… Sample Code from the AWDWR book. \<%= link\_to ( image\_tag( product.image\_url ), { :action =\> :add\_to\_cart, :id =\> product }, :method =\> :post, :confirm =\> “Are you sure?” ) %\> …

---

## [Connection: close HTTP 1.1](https://www.ruby-forum.com/t/connection-close-http-1-1/106325)

<div class="topic-metadata">

**Author:** [@bob](https://www.ruby-forum.com/u/bob)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 4:13pm UTC](https://www.ruby-forum.com/t/connection-close-http-1-1/106325 "2007-06-08T16:13:40Z")

</div>

I am making a request to my mongrel server and I always receive: Connection: close in the http response, but I want a persistent connection, any ideas why it is always closing? My request header follows: GET/users/i…

---

## [SVK and plugins](https://www.ruby-forum.com/t/svk-and-plugins/106324)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 0\
**Last updated:** [June 8, 2007, 3:48pm UTC](https://www.ruby-forum.com/t/svk-and-plugins/106324 "2007-06-08T15:48:32Z")

</div>

For a long time I was a subversion user, I always used Piston to manage my plugins. After doing more research on version control systems I have decided to start using SVK (mentioned by the Piston author). I am curio…

---

## [Loadind a swf flash animation placed in the public directory](https://www.ruby-forum.com/t/loadind-a-swf-flash-animation-placed-in-the-public-directory/106307)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 2:33pm UTC](https://www.ruby-forum.com/t/loadind-a-swf-flash-animation-placed-in-the-public-directory/106307 "2007-06-08T14:33:22Z")

</div>

Hello everyone, I am trying to include a swf flash animation in a view with this code in the rhtml file : ------------- … where ‘flash/entrance\_hall.swf’ is placed in the public directory. It seems…

---

## [Singular resource controller naming convention changed?](https://www.ruby-forum.com/t/singular-resource-controller-naming-convention-changed/106232)

<div class="topic-metadata">

**Author:** [@ingoweiss](https://www.ruby-forum.com/u/ingoweiss)\
**Replies:** 2\
**Last updated:** [June 8, 2007, 2:22pm UTC](https://www.ruby-forum.com/t/singular-resource-controller-naming-convention-changed/106232 "2007-06-08T14:22:04Z")

</div>

Hi, singular resources used to assume singular controller naming, as in: map.resources :session GET /session/ {:action=\>“show”, :controller=\>“session”} did this change in edge? My routes broke after updating, and …

---

## [Java Like public constant?](https://www.ruby-forum.com/t/java-like-public-constant/106309)

<div class="topic-metadata">

**Author:** [@Kevin\_Yang](https://www.ruby-forum.com/u/Kevin_Yang)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/java-like-public-constant/106309 "2007-06-08T14:05:39Z")

</div>

Hi , Some times there is a need to to store some constant variables in a Ruby Class. we can do that in Java like : Public Static Class A{ public static int LUCKY\_NUMBER=100; } then we can use it everywhere A.LUCKY…

---

## [Do I need to restart Mongrel every time I make a change?](https://www.ruby-forum.com/t/do-i-need-to-restart-mongrel-every-time-i-make-a-change/106259)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [June 8, 2007, 1:51pm UTC](https://www.ruby-forum.com/t/do-i-need-to-restart-mongrel-every-time-i-make-a-change/106259 "2007-06-08T13:51:14Z")

</div>

When we make changes to our apps, do we need to restart mongrel\_cluster? For instance, text changes maybe not so, but if change some logic of sorts, does that require a restart? My concern is, what happens to current…

---

## [Distribute server load among 2-3 servers](https://www.ruby-forum.com/t/distribute-server-load-among-2-3-servers/106180)

<div class="topic-metadata">

**Author:** [@jakedgr8](https://www.ruby-forum.com/u/jakedgr8)\
**Replies:** 3\
**Last updated:** [June 8, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/distribute-server-load-among-2-3-servers/106180 "2007-06-08T13:41:13Z")

</div>

Fellow Ruby’ers, So I have created a site running of ruby and (of course) it became an instant success. So here is the problem. I have 3 servers and the site currently has one server to itself. The other 2 servers hav…

---

## [In\_place\_editor for time](https://www.ruby-forum.com/t/in-place-editor-for-time/106203)

<div class="topic-metadata">

**Author:** [@Zach\_ISSS\_LT3media](https://www.ruby-forum.com/u/Zach_ISSS_LT3media)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/in-place-editor-for-time/106203 "2007-06-08T13:25:11Z")

</div>

I hate AJAX (well, all Javascript) with a passion so heavily rely on the Rails helpers. I was wondering if anyone knew of a soloution for this: When static: 25th August 2007 =\> When clicked \[25\] \[August\] \[2007\] w…

---

## [Newbie - Params passed to new](https://www.ruby-forum.com/t/newbie-params-passed-to-new/106265)

<div class="topic-metadata">

**Author:** [@Mojave](https://www.ruby-forum.com/u/Mojave)\
**Replies:** 7\
**Last updated:** [June 8, 2007, 1:14pm UTC](https://www.ruby-forum.com/t/newbie-params-passed-to-new/106265 "2007-06-08T13:14:11Z")

</div>

My understanding is that “params” is a hash containing the parameters passed to a controller. So within a method, I should be able to do: contact = Contact.new( params ) but I get the error “undefined method \`action=’…

---

## [Save Cascades Broken?](https://www.ruby-forum.com/t/save-cascades-broken/106263)

<div class="topic-metadata">

**Author:** [@matt](https://www.ruby-forum.com/u/matt)\
**Replies:** 4\
**Last updated:** [June 8, 2007, 12:18pm UTC](https://www.ruby-forum.com/t/save-cascades-broken/106263 "2007-06-08T12:18:55Z")

</div>

In a has\_many and belongs\_to association between 2 tables (Album and AlbumTracks for argyments sake) I create a new AlbumTrack Object, and append it to the Album.album\_tracks array like so: album.album\_tracks \<\< Album…

---

## [Can't do cap setup](https://www.ruby-forum.com/t/cant-do-cap-setup/106141)

<div class="topic-metadata">

**Author:** [@ivanstorck](https://www.ruby-forum.com/u/ivanstorck)\
**Replies:** 3\
**Last updated:** [June 8, 2007, 11:45am UTC](https://www.ruby-forum.com/t/cant-do-cap-setup/106141 "2007-06-08T11:45:51Z")

</div>

This is the first time I’m trying out capistrano, so I’m sure there’s something I simple I’m missng. I can ssh to the server using a public rsa key just fine. The username is the same on my laptop as on the server. i…

---

## [Beginner question...really](https://www.ruby-forum.com/t/beginner-question-really/106267)

<div class="topic-metadata">

**Author:** [@anitawa](https://www.ruby-forum.com/u/anitawa)\
**Replies:** 6\
**Last updated:** [June 8, 2007, 10:44am UTC](https://www.ruby-forum.com/t/beginner-question-really/106267 "2007-06-08T10:44:46Z")

</div>

Hi, I want to create a select form and based on what the user chooses on the select form, I want to connect to different tables and display the content. I’m clueless on how to go about it. Any pointers would be appr…

---

## [Cancel Render after Ajax Response](https://www.ruby-forum.com/t/cancel-render-after-ajax-response/106288)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 5\
**Last updated:** [June 8, 2007, 9:49am UTC](https://www.ruby-forum.com/t/cancel-render-after-ajax-response/106288 "2007-06-08T09:49:38Z")

</div>

Hello, I have one problem related to Ajax and render :partial. I develop a small search application. When there are the results that match to the user’s search, it will render the partial views of the result search t…

---

## [Updating a row in the database](https://www.ruby-forum.com/t/updating-a-row-in-the-database/106274)

<div class="topic-metadata">

**Author:** [@thomazleite](https://www.ruby-forum.com/u/thomazleite)\
**Replies:** 3\
**Last updated:** [June 8, 2007, 9:40am UTC](https://www.ruby-forum.com/t/updating-a-row-in-the-database/106274 "2007-06-08T09:40:37Z")

</div>

What’s the difference between updating an entry in the database using the #save method and the #update method? Thanks, Thomaz

---

## [Fcgid and webrick](https://www.ruby-forum.com/t/fcgid-and-webrick/106197)

<div class="topic-metadata">

**Author:** [@revolution](https://www.ruby-forum.com/u/revolution)\
**Replies:** 1\
**Last updated:** [June 8, 2007, 7:22am UTC](https://www.ruby-forum.com/t/fcgid-and-webrick/106197 "2007-06-08T07:22:24Z")

</div>

I try to run my app with rails 1.2.3 by mod\_fcgid with apache2.2 and ruby1.8.5. The result from production.log is error: /vendor/rails/actionpack/lib/action\_controller/routing.rb:1292:in recognize\_path' /vendor/rails/…

---

## [Searching multiple fields with conditions](https://www.ruby-forum.com/t/searching-multiple-fields-with-conditions/104914)

<div class="topic-metadata">

**Author:** [@hwhite](https://www.ruby-forum.com/u/hwhite)\
**Replies:** 5\
**Last updated:** [June 8, 2007, 5:51am UTC](https://www.ruby-forum.com/t/searching-multiple-fields-with-conditions/104914 "2007-06-08T05:51:19Z")

</div>

I am very new at RoR but am trying to tweak the code for the AJAX table from How to paginate, sort and search a table with Ajax and Rails · dev.nozav.org. I have it all working the way I want except for one line of cod…

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

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