# Rails

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

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

---

## [Using act\_as\_authenticated where two models require differen](https://www.ruby-forum.com/t/using-act-as-authenticated-where-two-models-require-differen/92707)

<div class="topic-metadata">

**Author:** [@chris\_johnson](https://www.ruby-forum.com/u/chris_johnson)\
**Replies:** 3\
**Last updated:** [June 13, 2007, 5:49pm UTC](https://www.ruby-forum.com/t/using-act-as-authenticated-where-two-models-require-differen/92707 "2007-06-13T17:49:19Z")

</div>

Hi there. I am playing around with acts\_as\_authenticated as many recommend it for authentication. I have two relevant model: Worker and Company. Registration for both Workers and Companies should be pretty similar: …

---

## [\[Ann\] MOle plugin updated V 0.003](https://www.ruby-forum.com/t/ann-mole-plugin-updated-v-0-003/106730)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 13, 2007, 5:33pm UTC](https://www.ruby-forum.com/t/ann-mole-plugin-updated-v-0-003/106730 "2007-06-13T17:33:34Z")

</div>

We have just released a new instance of the MOle. The MOle is a rails plugin that allows you to track and record user interactions with your rails app, so that you can better assess your plans for your next iterations…

---

## [Simple Rails ActiveModel Question](https://www.ruby-forum.com/t/simple-rails-activemodel-question/106715)

<div class="topic-metadata">

**Author:** [@mjacobs](https://www.ruby-forum.com/u/mjacobs)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 5:28pm UTC](https://www.ruby-forum.com/t/simple-rails-activemodel-question/106715 "2007-06-13T17:28:33Z")

</div>

Hi everyone, I’ll start off with the question and then give the backgroud: When setting up my model, do I want to do all of my generate models at the beginning and then fill in the migrations/model scripts all refere…

---

## [Routing Error (was: Re: \[Rails\] Action Controller: Exception](https://www.ruby-forum.com/t/routing-error-was-re-rails-action-controller-exception/106723)

<div class="topic-metadata">

**Author:** [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Replies:** 0\
**Last updated:** [June 13, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/routing-error-was-re-rails-action-controller-exception/106723 "2007-06-13T16:49:26Z")

</div>

On 6/12/07, Thufir removed\_email\_address@domain.invalid wrote: "Routing Error no route found to match “/legacies/list” with {:method=\>:get}" http://localhost:3000/legacies/list Have you created a controller? W…

---

## [Simple ActiveRecord not saving](https://www.ruby-forum.com/t/simple-activerecord-not-saving/106720)

<div class="topic-metadata">

**Author:** [@bowenmark](https://www.ruby-forum.com/u/bowenmark)\
**Replies:** 5\
**Last updated:** [June 13, 2007, 4:44pm UTC](https://www.ruby-forum.com/t/simple-activerecord-not-saving/106720 "2007-06-13T16:44:33Z")

</div>

Hey folks, I've a very simple ruby file as described as provided below. When I run the file the indication I get back from the .save method is that the notified attribute change has been saved and yet when I ret…

---

## [Route Regex Requirement not working properly](https://www.ruby-forum.com/t/route-regex-requirement-not-working-properly/106600)

<div class="topic-metadata">

**Author:** [@myron](https://www.ruby-forum.com/u/myron)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 4:36pm UTC](https://www.ruby-forum.com/t/route-regex-requirement-not-working-properly/106600 "2007-06-13T16:36:23Z")

</div>

I’m trying to get my routes to work properly. Here’s how I’m defining one of my routes: map.downloads ‘:category/downloads’, :controller =\> ‘downloads’, :action =\> ‘list\_downloads\_for\_category’, :requirements =\> {:ca…

---

## [Can you increment a view count on a cached file?](https://www.ruby-forum.com/t/can-you-increment-a-view-count-on-a-cached-file/106710)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 0\
**Last updated:** [June 13, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/can-you-increment-a-view-count-on-a-cached-file/106710 "2007-06-13T15:17:27Z")

</div>

since a cached file doesnt hit the rails app? i have a cached page but would like to know how many times this page has been viewed, is this possible?

---

## [SSL encrypted server-to-server connection?](https://www.ruby-forum.com/t/ssl-encrypted-server-to-server-connection/106699)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 3:01pm UTC](https://www.ruby-forum.com/t/ssl-encrypted-server-to-server-connection/106699 "2007-06-13T15:01:05Z")

</div>

Hey there :slight\_smile: I’m about to integrate this Danish payment provider, DIBS, module into a website. To do so, I need to contact their server from our server, using our registered SSL certificate to encrypt the…

---

## [Optimization](https://www.ruby-forum.com/t/optimization/106692)

<div class="topic-metadata">

**Author:** [@mark](https://www.ruby-forum.com/u/mark)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 2:39pm UTC](https://www.ruby-forum.com/t/optimization/106692 "2007-06-13T14:39:01Z")

</div>

Just attempting to do some optimization of my code. Does anyone know any code coverage tools that will identify any code / methods that are not used by my app? Cheers Mark

---

## [\[ANN/ADV\] "Rails Routing" from Addison-Wesley](https://www.ruby-forum.com/t/ann-adv-rails-routing-from-addison-wesley/106364)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 6\
**Last updated:** [June 13, 2007, 2:05pm UTC](https://www.ruby-forum.com/t/ann-adv-rails-routing-from-addison-wesley/106364 "2007-06-13T14:05:12Z")

</div>

Hi – I’m very pleased to announce the appearance of the Addison-Wesley “short cut” (PDF/electronic book), “Rails Routing”, written by me. You can get more information and order “Rails Routing” at: http://safari.awpro…

---

## [Ajax for making one form element dependent on another](https://www.ruby-forum.com/t/ajax-for-making-one-form-element-dependent-on-another/106703)

<div class="topic-metadata">

**Author:** [@rpm13](https://www.ruby-forum.com/u/rpm13)\
**Replies:** 0\
**Last updated:** [June 13, 2007, 1:54pm UTC](https://www.ruby-forum.com/t/ajax-for-making-one-form-element-dependent-on-another/106703 "2007-06-13T13:54:07Z")

</div>

I have a list of pairs say \[\[1, ‘a’\], \[2, ‘b’\],… I need to make a form in which the numbers 1,2 etc would be a selection list in one field and the \[a,b…\] would be autofilled in ajax mode. Is this easy/possible?

---

## [Text Editor for Rails](https://www.ruby-forum.com/t/text-editor-for-rails/106687)

<div class="topic-metadata">

**Author:** [@driverails](https://www.ruby-forum.com/u/driverails)\
**Replies:** 9\
**Last updated:** [June 13, 2007, 1:53pm UTC](https://www.ruby-forum.com/t/text-editor-for-rails/106687 "2007-06-13T13:53:53Z")

</div>

Which editor do you work on in Windows? Is ConText good? http://www.context.cx

---

## [REST routing issue](https://www.ruby-forum.com/t/rest-routing-issue/106683)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 11:09am UTC](https://www.ruby-forum.com/t/rest-routing-issue/106683 "2007-06-13T11:09:26Z")

</div>

I have this standard url path :url =\> {:action =\> ‘list’, :params =\> params.merge({:page =\> n})}, how can I change it to a REST path, I mean how can I merge the params ??? :url =\> projects\_url ??? thanks for your h…

---

## [How to handle all errors programmatically on saving, updatin](https://www.ruby-forum.com/t/how-to-handle-all-errors-programmatically-on-saving-updatin/106595)

<div class="topic-metadata">

**Author:** [@chamnap](https://www.ruby-forum.com/u/chamnap)\
**Replies:** 5\
**Last updated:** [June 13, 2007, 10:38am UTC](https://www.ruby-forum.com/t/how-to-handle-all-errors-programmatically-on-saving-updatin/106595 "2007-06-13T10:38:24Z")

</div>

Hello guys, I want to know how to handle all errors programmatically when I save, update, and delete on record. For the save method, it will return true or false, but for update method and destroy/delete method they s…

---

## [Critique my ruby tutorial](https://www.ruby-forum.com/t/critique-my-ruby-tutorial/106673)

<div class="topic-metadata">

**Author:** [@lukejea](https://www.ruby-forum.com/u/lukejea)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 10:07am UTC](https://www.ruby-forum.com/t/critique-my-ruby-tutorial/106673 "2007-06-13T10:07:20Z")

</div>

Hello, I having a ruby online tutorial created. I need your opinions to how it is coming along. Please let me know anything that should be improved on. Please be honest. Thanks http://www.meshplex.org/wiki/Ruby/Ruby\_o…

---

## [Button\_to execute javascript function](https://www.ruby-forum.com/t/button-to-execute-javascript-function/48621)

<div class="topic-metadata">

**Author:** [@mdamonhill](https://www.ruby-forum.com/u/mdamonhill)\
**Replies:** 12\
**Last updated:** [June 13, 2007, 9:07am UTC](https://www.ruby-forum.com/t/button-to-execute-javascript-function/48621 "2007-06-13T09:07:16Z")

</div>

Ok, I know this has to be EXTREMELY simple, so please excuse the ignorance. However, I want the button\_to method to execute some external javascript function I have predefined called “addRow()” when the user clicks th…

---

## [Ruby/Rails - RMagick, Upload and Resize without a model](https://www.ruby-forum.com/t/ruby-rails-rmagick-upload-and-resize-without-a-model/106473)

<div class="topic-metadata">

**Author:** [@yavori](https://www.ruby-forum.com/u/yavori)\
**Replies:** 7\
**Last updated:** [June 13, 2007, 7:42am UTC](https://www.ruby-forum.com/t/ruby-rails-rmagick-upload-and-resize-without-a-model/106473 "2007-06-13T07:42:21Z")

</div>

Hi everyone! I have a difficult time with Ruby/Rails and RMagick upload and resizing. In user\_controller of my Rails application I have the following code: def save\_picture user = User.find(session\[:user\_id\]) folder…

---

## [Is Rails right for this project?](https://www.ruby-forum.com/t/is-rails-right-for-this-project/106672)

<div class="topic-metadata">

**Author:** [@kuzb](https://www.ruby-forum.com/u/kuzb)\
**Replies:** 2\
**Last updated:** [June 13, 2007, 7:30am UTC](https://www.ruby-forum.com/t/is-rails-right-for-this-project/106672 "2007-06-13T07:30:20Z")

</div>

Hi, I’m a bit new to Rails (although, not as new to Ruby), and I’m pretty excited about it. Slightly before this, however, I thought I’d implement an internal app that we could use at my company. I’m sending this …

---

## [Delete the fixtures on a functionnal test](https://www.ruby-forum.com/t/delete-the-fixtures-on-a-functionnal-test/156000)

<div class="topic-metadata">

**Author:** [@cyril\_mougel](https://www.ruby-forum.com/u/cyril_mougel)\
**Replies:** 0\
**Last updated:** [June 13, 2007, 7:30am UTC](https://www.ruby-forum.com/t/delete-the-fixtures-on-a-functionnal-test/156000 "2007-06-13T07:30:20Z")

</div>

Hi, Since couple a day, I block with the delete of my fixtures in my functionnals test. In my controller, I need test a redirect if there are no value. But i load my fixtures in start of my test and in a specific tes…

---

## [Help With Loop please](https://www.ruby-forum.com/t/help-with-loop-please/106669)

<div class="topic-metadata">

**Author:** [@bxsitecover](https://www.ruby-forum.com/u/bxsitecover)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 5:31am UTC](https://www.ruby-forum.com/t/help-with-loop-please/106669 "2007-06-13T05:31:10Z")

</div>

New to rails! Thanks for reading I have a database that stores link URL’s and their names in one table. DB Table is named: links Model name : Link Controller: admin Links are stored in the “link\_url” column Their…

---

## [Scaffold\_resource question](https://www.ruby-forum.com/t/scaffold-resource-question/106676)

<div class="topic-metadata">

**Author:** [@eugenia](https://www.ruby-forum.com/u/eugenia)\
**Replies:** 0\
**Last updated:** [June 13, 2007, 4:41am UTC](https://www.ruby-forum.com/t/scaffold-resource-question/106676 "2007-06-13T04:41:07Z")

</div>

Could anyone enlighten me on using scaffold\_resource with a path component (for lack of a better term). I tried this: ruby script/generate scaffold\_resource admin/user email:string which sort of worked, except that t…

---

## [God's Simple Plan of Salvation](https://www.ruby-forum.com/t/gods-simple-plan-of-salvation/106670)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 13, 2007, 2:37am UTC](https://www.ruby-forum.com/t/gods-simple-plan-of-salvation/106670 "2007-06-13T02:37:57Z")

</div>

God’s Simple Plan of SalvationMy Friend: I am asking you the most important question of life. Your joy or your sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of …

---

## [In Defense of Dynamic Scaffolding ("scaffold :model")](https://www.ruby-forum.com/t/in-defense-of-dynamic-scaffolding-scaffold-model/106665)

<div class="topic-metadata">

**Author:** [@nerdmaster](https://www.ruby-forum.com/u/nerdmaster)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 2:21am UTC](https://www.ruby-forum.com/t/in-defense-of-dynamic-scaffolding-scaffold-model/106665 "2007-06-13T02:21:56Z")

</div>

Dynamic scaffolding as a concept was popularized by Rails, but hasn’t been recommended since shortly after it was included with Rails. On the surface, dynamic scaffolding seems like a good fit with Rails philosophy. …

---

## [Action Controller: Exception caught](https://www.ruby-forum.com/t/action-controller-exception-caught/106666)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 0\
**Last updated:** [June 13, 2007, 2:00am UTC](https://www.ruby-forum.com/t/action-controller-exception-caught/106666 "2007-06-13T02:00:55Z")

</div>

I just want to get a listing of my database, as I’ve done with a dummy example. Right now I’m getting: "Routing Error no route found to match “/legacy/list” with {:method=\>:get}" http://localhost:3000/legacy/list a…

---

## [User defined types and validating them](https://www.ruby-forum.com/t/user-defined-types-and-validating-them/106664)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [June 13, 2007, 1:49am UTC](https://www.ruby-forum.com/t/user-defined-types-and-validating-them/106664 "2007-06-13T01:49:54Z")

</div>

so i have a multi-part problem that im not quite good enough to wrap my hands around yet. maybe someone can offer me some help. i have a rails app that among other things, tracks orders and reviews. now i’m trying to …

---

## [Rails Continuous Deployment](https://www.ruby-forum.com/t/rails-continuous-deployment/106443)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [June 13, 2007, 1:05am UTC](https://www.ruby-forum.com/t/rails-continuous-deployment/106443 "2007-06-13T01:05:50Z")

</div>

Hi all, I’ve successfully built a personal project using Rails (I come from the .NET world), and I’m now looking into deployment. Here’s what I want to do: Store my application in source control (Subversion) Wheneve…

---

## [Help needed on update\_attributes](https://www.ruby-forum.com/t/help-needed-on-update-attributes/106656)

<div class="topic-metadata">

**Author:** [@Wiwi](https://www.ruby-forum.com/u/Wiwi)\
**Replies:** 2\
**Last updated:** [June 13, 2007, 12:12am UTC](https://www.ruby-forum.com/t/help-needed-on-update-attributes/106656 "2007-06-13T00:12:43Z")

</div>

Hi, Here is my code to update an attribute of one record: @person = Person.find($person\_id) @person.update\_attribute(:FIRST\_NAME , “ANDY”) It did not update the FRIST\_NAME Bryan to ANDY in the database table, but it…

---

## [How to display static html content using layouts in rails](https://www.ruby-forum.com/t/how-to-display-static-html-content-using-layouts-in-rails/106660)

<div class="topic-metadata">

**Author:** [@Scott\_Sehlhorst](https://www.ruby-forum.com/u/Scott_Sehlhorst)\
**Replies:** 0\
**Last updated:** [June 12, 2007, 11:43pm UTC](https://www.ruby-forum.com/t/how-to-display-static-html-content-using-layouts-in-rails/106660 "2007-06-12T23:43:40Z")

</div>

Need: Include an “about page” in a ruby on rails site. Goal: Minimize hassle, maximize DRY (e.g. nav menus, sidebars, etc) Approach: Create a trivial controller, designed solely to present static (or dynamic) content. …

---

## [Discussion on Frequently Asked Questions](https://www.ruby-forum.com/t/discussion-on-frequently-asked-questions/106659)

<div class="topic-metadata">

**Author:** [@Scott\_Sehlhorst](https://www.ruby-forum.com/u/Scott_Sehlhorst)\
**Replies:** 0\
**Last updated:** [June 12, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/discussion-on-frequently-asked-questions/106659 "2007-06-12T23:26:37Z")

</div>

I’ve been happy with radrails (recently merged into aptana) as my windows RoR dev tool.

---

## [Optimistic Locking in Controllers: Best practice?](https://www.ruby-forum.com/t/optimistic-locking-in-controllers-best-practice/106614)

<div class="topic-metadata">

**Author:** [@Christoph\_O](https://www.ruby-forum.com/u/Christoph_O)\
**Replies:** 4\
**Last updated:** [June 12, 2007, 11:12pm UTC](https://www.ruby-forum.com/t/optimistic-locking-in-controllers-best-practice/106614 "2007-06-12T23:12:36Z")

</div>

Hi, I’ve searched the group archives on this, but could not find anything except an unanswered question that results from the same problem I encountered, or at least that’s what I guess (http://groups.google.com/ gro…

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

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