# Rails

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

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

---

## [Nice urls?](https://www.ruby-forum.com/t/nice-urls/139655)

<div class="topic-metadata">

**Author:** [@amanda](https://www.ruby-forum.com/u/amanda)\
**Replies:** 7\
**Last updated:** [June 6, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/nice-urls/139655 "2008-06-06T13:09:04Z")

</div>

Can anyone please explain to me how to get ugly urls like : hostname.com/browse/day?cal\_name=name&day=9&month=6&year=2008 to be something nice like: hostname.com/browse/name/day/month/year or something like that? I’…

---

## [Select records from different model](https://www.ruby-forum.com/t/select-records-from-different-model/139634)

<div class="topic-metadata">

**Author:** [@psyche](https://www.ruby-forum.com/u/psyche)\
**Replies:** 7\
**Last updated:** [June 6, 2008, 10:45am UTC](https://www.ruby-forum.com/t/select-records-from-different-model/139634 "2008-06-06T10:45:55Z")

</div>

Hi! I’m new to the ruby on rails and have a question about find\_by\_sql method. I have two model A and B and I want to select all records from B with the A model. The following code: A.find\_by\_sql(“select \* from B”) r…

---

## [Property Files](https://www.ruby-forum.com/t/property-files/139712)

<div class="topic-metadata">

**Author:** [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 9:16am UTC](https://www.ruby-forum.com/t/property-files/139712 "2008-06-06T09:16:47Z")

</div>

HI, I have to write property file in ROR. Is it possible to write a property file in Rails framework? If yes then where I will store that file and how to use that file in my application? Is there a reflection concep…

---

## [Strange diff in 2.1 boot.rb -- exist? vs exists?](https://www.ruby-forum.com/t/strange-diff-in-2-1-boot-rb-exist-vs-exists/139702)

<div class="topic-metadata">

**Author:** [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 8:51am UTC](https://www.ruby-forum.com/t/strange-diff-in-2-1-boot-rb-exist-vs-exists/139702 "2008-06-06T08:51:55Z")

</div>

I have a project that built in 2.0.2. I want to update to 2.1 so I built a 2.1 empty project and ran meld against the two files to diff and merge them. (by the way, I just fell in love with meld, finally a merge tool …

---

## [Load\_missing\_constant': uninitialized constant ExceptionNoti](https://www.ruby-forum.com/t/load-missing-constant-uninitialized-constant-exceptionnoti/139710)

<div class="topic-metadata">

**Author:** [@lostwarrior](https://www.ruby-forum.com/u/lostwarrior)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 8:49am UTC](https://www.ruby-forum.com/t/load-missing-constant-uninitialized-constant-exceptionnoti/139710 "2008-06-06T08:49:26Z")

</div>

I have installed exception notifier plugin in my application & i am getting the error like this load\_missing\_constant’: uninitialized constant ExceptionNotifier (NameError) Please solve it

---

## [Routing strategy question](https://www.ruby-forum.com/t/routing-strategy-question/139681)

<div class="topic-metadata">

**Author:** [@suer\_rick](https://www.ruby-forum.com/u/suer_rick)\
**Replies:** 3\
**Last updated:** [June 6, 2008, 8:39am UTC](https://www.ruby-forum.com/t/routing-strategy-question/139681 "2008-06-06T08:39:58Z")

</div>

If I have a site with pages “/home”, “/news”, “/links”, etc. I’m trying to decide the best routing strategy. This is different than the resource mapping used by the scaffold. For example, you would never want to ad…

---

## [A facebook-like platform in Rails](https://www.ruby-forum.com/t/a-facebook-like-platform-in-rails/139705)

<div class="topic-metadata">

**Author:** [@Love\_AJAX](https://www.ruby-forum.com/u/Love_AJAX)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 6:40am UTC](https://www.ruby-forum.com/t/a-facebook-like-platform-in-rails/139705 "2008-06-06T06:40:12Z")

</div>

Hi, I have been thinking about creating a Rails application as a platform that should let other applications run on my base application. Something similar to Facebook. What are my best approaches? Thanks much. -subb…

---

## [Rails 2.1RC1 has been tagged!](https://www.ruby-forum.com/t/rails-2-1rc1-has-been-tagged/137330)

<div class="topic-metadata">

**Author:** [@Jean-FranSSSSois\_Tr](https://www.ruby-forum.com/u/Jean-FranSSSSois_Tr)\
**Replies:** 8\
**Last updated:** [June 6, 2008, 6:30am UTC](https://www.ruby-forum.com/t/rails-2-1rc1-has-been-tagged/137330 "2008-06-06T06:30:15Z")

</div>

Hey folks, Rails 2.1RC1 was tagged by DHH : It’s available as Rails 2.0.991 on http://gems.rubyonrails.org – Jean-François.

---

## [Whats wrong here? I get the same result of each item](https://www.ruby-forum.com/t/whats-wrong-here-i-get-the-same-result-of-each-item/139584)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 6\
**Last updated:** [June 6, 2008, 6:20am UTC](https://www.ruby-forum.com/t/whats-wrong-here-i-get-the-same-result-of-each-item/139584 "2008-06-06T06:20:53Z")

</div>

I get the same result off.png for each amigo.jid that I sent to isonline. were it should be on.png or off.png this is in the view… \<% @amigos.in\_groups\_of(2, false) do |grupo| %\> \<tr class="\<%= cycle('odd', 'even'…

---

## [STI vs Polymorphism](https://www.ruby-forum.com/t/sti-vs-polymorphism/139700)

<div class="topic-metadata">

**Author:** [@thejackal](https://www.ruby-forum.com/u/thejackal)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 5:53am UTC](https://www.ruby-forum.com/t/sti-vs-polymorphism/139700 "2008-06-06T05:53:22Z")

</div>

Hello everyone, I am racking my brain with a modelling question and can’t wrap my around the benefits of STI or Polymorphisms. I am trying to model Questions and Answer behavior but I think I am not using rails full …

---

## [Access library from model](https://www.ruby-forum.com/t/access-library-from-model/139690)

<div class="topic-metadata">

**Author:** [@ADADAD](https://www.ruby-forum.com/u/ADADAD)\
**Replies:** 2\
**Last updated:** [June 6, 2008, 5:44am UTC](https://www.ruby-forum.com/t/access-library-from-model/139690 "2008-06-06T05:44:35Z")

</div>

Hello, I have a custom library in lib that handles remote authentication to our external auth system via soap. All works well from the controller. However, I feel all this logic should be moved to the model but I d…

---

## [StandardError for ibm\_dbadapter](https://www.ruby-forum.com/t/standarderror-for-ibm-dbadapter/139697)

<div class="topic-metadata">

**Author:** [@stone](https://www.ruby-forum.com/u/stone)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 5:31am UTC](https://www.ruby-forum.com/t/standarderror-for-ibm-dbadapter/139697 "2008-06-06T05:31:43Z")

</div>

I need help here , recently i want to recreate my project , database shift to db2 9.1 I update my rails to 2.1.0 , ruby 1.8.6 , rake 0.8.1 , ibm\_db 0.9.4,successfully connected , but have this error: undefined method…

---

## [Tinymce and Rails 2.0](https://www.ruby-forum.com/t/tinymce-and-rails-2-0/139692)

<div class="topic-metadata">

**Author:** [@polomasta](https://www.ruby-forum.com/u/polomasta)\
**Replies:** 1\
**Last updated:** [June 6, 2008, 5:09am UTC](https://www.ruby-forum.com/t/tinymce-and-rails-2-0/139692 "2008-06-06T05:09:18Z")

</div>

is there some trick to installing tinymce w/ rails 2.xx ?? None of the old intructions I’ve found seem to be working.

---

## [How to specify controller '/admin/foo'](https://www.ruby-forum.com/t/how-to-specify-controller-admin-foo/139678)

<div class="topic-metadata">

**Author:** [@chovy](https://www.ruby-forum.com/u/chovy)\
**Replies:** 3\
**Last updated:** [June 6, 2008, 5:07am UTC](https://www.ruby-forum.com/t/how-to-specify-controller-admin-foo/139678 "2008-06-06T05:07:08Z")

</div>

WeBrick handles the link correctly on development, but apache in production does not: \<%= link\_to “Orders”, :controller =\> ‘/admin/orders’, :action =\> ‘index’ %\> The controller lives in ./app/controllers/admin/orders…

---

## [Recommended Permissions for Releases Directory?](https://www.ruby-forum.com/t/recommended-permissions-for-releases-directory/139688)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [June 6, 2008, 2:34am UTC](https://www.ruby-forum.com/t/recommended-permissions-for-releases-directory/139688 "2008-06-06T02:34:56Z")

</div>

I’ve got a bit of an obvious question here, but not having grown up on Ubuntu, I’d like to hear opinions from some people who have been around the block a bit more than I… What is a good permission set for the /shared…

---

## [In\_place\_editor and validations](https://www.ruby-forum.com/t/in-place-editor-and-validations/139669)

<div class="topic-metadata">

**Author:** [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Replies:** 3\
**Last updated:** [June 5, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/in-place-editor-and-validations/139669 "2008-06-05T23:43:18Z")

</div>

I have a user model with “validate\_uniquness\_of :username”. How to use build-in validations and in\_place\_editor? I run Rails 2.1. – Jochen

---

## [Datetime select](https://www.ruby-forum.com/t/datetime-select/139676)

<div class="topic-metadata">

**Author:** [@KTKTKT](https://www.ruby-forum.com/u/KTKTKT)\
**Replies:** 1\
**Last updated:** [June 5, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/datetime-select/139676 "2008-06-05T23:07:50Z")

</div>

Is there an easy way to limit the time portion on a datetime\_select to only every 15 minutes? ie, restrict minute selection on the form to only: :00, :15, :30, :45 - Also, can I set it as a 12-hour clock instead of …

---

## [Can we post banners/ads here?](https://www.ruby-forum.com/t/can-we-post-banners-ads-here/139621)

<div class="topic-metadata">

**Author:** [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Replies:** 3\
**Last updated:** [June 5, 2008, 10:59pm UTC](https://www.ruby-forum.com/t/can-we-post-banners-ads-here/139621 "2008-06-05T22:59:52Z")

</div>

Hi, we are ROR software product development company. Can we post our banners/ads here?

---

## [ActionView::TemplateError (stack level too deep)](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/139668)

<div class="topic-metadata">

**Author:** [@Nik\_B](https://www.ruby-forum.com/u/Nik_B)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/actionview-templateerror-stack-level-too-deep/139668 "2008-06-05T22:34:33Z")

</div>

ActionView::TemplateError (stack level too deep) on line #1 of storefront/\_producer\_summary.html.erb: 1: Producer: \<%= link\_to “tee and cakes”, store\_url(store) %\> I can’t seem to figure out what might be causing thi…

---

## [Reading content/type of file](https://www.ruby-forum.com/t/reading-content-type-of-file/139667)

<div class="topic-metadata">

**Author:** [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 10:15pm UTC](https://www.ruby-forum.com/t/reading-content-type-of-file/139667 "2008-06-05T22:15:52Z")

</div>

Hello, In order to mail how do i find out the content/type of the file attached… Thank you.

---

## [A just a note for newbies](https://www.ruby-forum.com/t/a-just-a-note-for-newbies/139664)

<div class="topic-metadata">

**Author:** [@Carl\_Wright](https://www.ruby-forum.com/u/Carl_Wright)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/a-just-a-note-for-newbies/139664 "2008-06-05T22:10:18Z")

</div>

When your partial template just won’t display, you might have done what I did! If the development.log shows it is rendered, but you see absolutely nothing in the page source or on the borwser, you proably did what I …

---

## [Top-down page design](https://www.ruby-forum.com/t/top-down-page-design/139663)

<div class="topic-metadata">

**Author:** [@churp](https://www.ruby-forum.com/u/churp)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/top-down-page-design/139663 "2008-06-05T21:56:03Z")

</div>

Hello All, I am trying to shake my cob-webbed memory for a link. The document/whitepaper (possibly by 37-signals or friends?) was about designing a page/module by going “top down” from the napkin-drawing down into th…

---

## [Has\_many :through with :dependent = :destroy\_all](https://www.ruby-forum.com/t/has-many-through-with-dependent-destroy-all/139626)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [June 5, 2008, 9:42pm UTC](https://www.ruby-forum.com/t/has-many-through-with-dependent-destroy-all/139626 "2008-06-05T21:42:58Z")

</div>

Hi, I have a member class that has many application\_partials through subdivisions. My models look like the following: class Member \< Company … has\_many :subdivisions, :dependent =\> :destroy has\_many :application\_pa…

---

## [Validating associated model for has\_many](https://www.ruby-forum.com/t/validating-associated-model-for-has-many/139652)

<div class="topic-metadata">

**Author:** [@sw0rdfish](https://www.ruby-forum.com/u/sw0rdfish)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 8:26pm UTC](https://www.ruby-forum.com/t/validating-associated-model-for-has-many/139652 "2008-06-05T20:26:04Z")

</div>

Hi guys n’ gals. Quick Q on this… it should be easy, but it’s not… I’ve got users and members… and a Member has\_many Users. I want to have validation that ensures that the member has at least one user. validates\_pre…

---

## [Rails tool, let me know your thoughts](https://www.ruby-forum.com/t/rails-tool-let-me-know-your-thoughts/139649)

<div class="topic-metadata">

**Author:** [@Elizabeth\_B](https://www.ruby-forum.com/u/Elizabeth_B)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/rails-tool-let-me-know-your-thoughts/139649 "2008-06-05T19:32:32Z")

</div>

Hi Everyone, I hope you find this useful…please make suggestions on how to make this more valuable to people who want to learn RoR/ how to get this into the hands of more developers… http://www.yoyobrain.com/cardboxe…

---

## [Accessing form elements](https://www.ruby-forum.com/t/accessing-form-elements/139447)

<div class="topic-metadata">

**Author:** [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Replies:** 12\
**Last updated:** [June 5, 2008, 7:22pm UTC](https://www.ruby-forum.com/t/accessing-form-elements/139447 "2008-06-05T19:22:00Z")

</div>

I posted a question earlier but it didn’t come out that clear and I have spent the whole day looking this up. Any help would be much appreciated. Here goes round 2: I have several textareas on the screen (anywhere f…

---

## [Where can I find RoRed?](https://www.ruby-forum.com/t/where-can-i-find-rored/139642)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [June 5, 2008, 6:45pm UTC](https://www.ruby-forum.com/t/where-can-i-find-rored/139642 "2008-06-05T18:45:14Z")

</div>

I am trying to find a web to download RoRed, but I can’t find one link that works. Can someone help?

---

## [Render :update vs. render :partial -\> need :update help](https://www.ruby-forum.com/t/render-update-vs-render-partial-need-update-help/139641)

<div class="topic-metadata">

**Author:** [@djconcepcion](https://www.ruby-forum.com/u/djconcepcion)\
**Replies:** 2\
**Last updated:** [June 5, 2008, 6:40pm UTC](https://www.ruby-forum.com/t/render-update-vs-render-partial-need-update-help/139641 "2008-06-05T18:40:55Z")

</div>

I am trying to make a render :update work, and couldn’t find anything on the forums or in books on what I am doing wrong: def index render :update do |page| page.replace\_html ‘asection’, :text =\> ‘99’ (or :partial =\> …

---

## [Newbie: Why doe New work but edit/update not?](https://www.ruby-forum.com/t/newbie-why-doe-new-work-but-edit-update-not/139493)

<div class="topic-metadata">

**Author:** [@oshuma](https://www.ruby-forum.com/u/oshuma)\
**Replies:** 26\
**Last updated:** [June 5, 2008, 6:29pm UTC](https://www.ruby-forum.com/t/newbie-why-doe-new-work-but-edit-update-not/139493 "2008-06-05T18:29:26Z")

</div>

It seems rather odd but my application will happily allow me to add new records via my form, but using the same form partial the edit action seems to work fine (It throws no errors) but completely fails to change the …

---

## [Word replacement from the file](https://www.ruby-forum.com/t/word-replacement-from-the-file/139627)

<div class="topic-metadata">

**Author:** [@zeeshanbth](https://www.ruby-forum.com/u/zeeshanbth)\
**Replies:** 1\
**Last updated:** [June 5, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/word-replacement-from-the-file/139627 "2008-06-05T18:21:10Z")

</div>

hello, I need little help from you that i want to replace word/s from a .rb and .txt file. I am using the ‘gsub’ function for replacing the word from the string but i am not able to replace word/s from a file (.rb and …

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

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