# Rails

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

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

---

## [Getting svn version info from inside rails application](https://www.ruby-forum.com/t/getting-svn-version-info-from-inside-rails-application/92708)

<div class="topic-metadata">

**Author:** [@siegi](https://www.ruby-forum.com/u/siegi)\
**Replies:** 6\
**Last updated:** [April 27, 2007, 11:52pm UTC](https://www.ruby-forum.com/t/getting-svn-version-info-from-inside-rails-application/92708 "2007-04-27T23:52:27Z")

</div>

hi, who has an example of how to retrieve svn-version information from inside a rails application. i’d like to display this information to the user, so that he can report a bug relating to the version number. retrie…

---

## [Polymorphic destroy of resource](https://www.ruby-forum.com/t/polymorphic-destroy-of-resource/92856)

<div class="topic-metadata">

**Author:** [@yottameter](https://www.ruby-forum.com/u/yottameter)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 10:26pm UTC](https://www.ruby-forum.com/t/polymorphic-destroy-of-resource/92856 "2007-04-27T22:26:19Z")

</div>

Does dependent destroy work with polymorphic=\>true? Otherwise, should I overload destroy, destroying the item, and then deleting the item via the class delete to avoid the recursive destroy? This doesn’t work: class…

---

## [Arg! Fedora, Plesk, Rails?](https://www.ruby-forum.com/t/arg-fedora-plesk-rails/92967)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 7\
**Last updated:** [April 27, 2007, 10:20pm UTC](https://www.ruby-forum.com/t/arg-fedora-plesk-rails/92967 "2007-04-27T22:20:19Z")

</div>

I am having the hardest time in the world trying to get a clients production server to run Rails. Not only does he want this one application to run though, he wants any client of his to be able to run a rails app. I’m…

---

## [Why isn't there any RDoc on ActionController::TestResponse?](https://www.ruby-forum.com/t/why-isnt-there-any-rdoc-on-actioncontroller-testresponse/93126)

<div class="topic-metadata">

**Author:** [@scott](https://www.ruby-forum.com/u/scott)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 10:17pm UTC](https://www.ruby-forum.com/t/why-isnt-there-any-rdoc-on-actioncontroller-testresponse/93126 "2007-04-27T22:17:19Z")

</div>

Just curious as to why there isn’t any documentation in the RDoc on TestRequest and TestResponse. Cheers, Scott

---

## [Is highrisehq.com 2 separate rails app?](https://www.ruby-forum.com/t/is-highrisehq-com-2-separate-rails-app/93076)

<div class="topic-metadata">

**Author:** [@Dorren](https://www.ruby-forum.com/u/Dorren)\
**Replies:** 4\
**Last updated:** [April 27, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/is-highrisehq-com-2-separate-rails-app/93076 "2007-04-27T21:03:50Z")

</div>

is highrisehq.com 2 separate rails apps or just one? From poking around, it seems like the main signup site is separate from client site, like xyz.highrisehq.com. If so, what’s the reason for 2 separate apps?

---

## [Is Javascript/Flash always available? RJS/ajax views](https://www.ruby-forum.com/t/is-javascript-flash-always-available-rjs-ajax-views/93117)

<div class="topic-metadata">

**Author:** [@jruyle](https://www.ruby-forum.com/u/jruyle)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 8:52pm UTC](https://www.ruby-forum.com/t/is-javascript-flash-always-available-rjs-ajax-views/93117 "2007-04-27T20:52:34Z")

</div>

We are setting off on a development milestone for a rails app. Our preference is to provide a RJS(Ajax) based intuitive interface. We would rather avoid the degrade option when JS is turned off in the browser. Our est…

---

## [Finding out the port](https://www.ruby-forum.com/t/finding-out-the-port/93115)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 8:02pm UTC](https://www.ruby-forum.com/t/finding-out-the-port/93115 "2007-04-27T20:02:45Z")

</div>

How can a running Rails application tell what port it’s listening on? Say I start the app with ‘mongrel\_rails -p 3002’ and want a page to say “I’m listening on 3002”, how would I do that? Nick

---

## [Map.resources, restricting to only /index and /show](https://www.ruby-forum.com/t/map-resources-restricting-to-only-index-and-show/93113)

<div class="topic-metadata">

**Author:** [@blinking\_bear](https://www.ruby-forum.com/u/blinking_bear)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 7:42pm UTC](https://www.ruby-forum.com/t/map-resources-restricting-to-only-index-and-show/93113 "2007-04-27T19:42:44Z")

</div>

Is there a way to restrict the routes that get generated by map.resources to only /index and /show? On the frontend have no need for edit and delete.

---

## [RESTful question](https://www.ruby-forum.com/t/restful-question/93111)

<div class="topic-metadata">

**Author:** [@joshuajnoble](https://www.ruby-forum.com/u/joshuajnoble)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 7:35pm UTC](https://www.ruby-forum.com/t/restful-question/93111 "2007-04-27T19:35:43Z")

</div>

I have a question about a RESTful basic that I’m a little confused about. I have a login method that I want to call for anyone trying to use any admin methods. So my admin\_controller has a filter like so: before\_filt…

---

## [JOIN Query](https://www.ruby-forum.com/t/join-query/93077)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 7:01pm UTC](https://www.ruby-forum.com/t/join-query/93077 "2007-04-27T19:01:40Z")

</div>

Hai I have one doubt that is I want to execute join query in my Rails action but i got error in rails pagination how can i execute the join query or syb query in rails action can any body tell me ? ok Bye By P.S…

---

## [Youtube killer written in Ruby on rails](https://www.ruby-forum.com/t/youtube-killer-written-in-ruby-on-rails/93056)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 11\
**Last updated:** [April 27, 2007, 6:57pm UTC](https://www.ruby-forum.com/t/youtube-killer-written-in-ruby-on-rails/93056 "2007-04-27T18:57:40Z")

</div>

http://teenwag.com/playvideo/4841

---

## [Development environment](https://www.ruby-forum.com/t/development-environment/93114)

<div class="topic-metadata">

**Author:** [@russiangeek](https://www.ruby-forum.com/u/russiangeek)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 6:42pm UTC](https://www.ruby-forum.com/t/development-environment/93114 "2007-04-27T18:42:39Z")

</div>

I’d wonder which development environment do you use (or can recommend) for RoR. I use “Ruby in Steel” today but it doesn’t have some important (for me) features.

---

## [Restrict access by IP address](https://www.ruby-forum.com/t/restrict-access-by-ip-address/93108)

<div class="topic-metadata">

**Author:** [@milo](https://www.ruby-forum.com/u/milo)\
**Replies:** 3\
**Last updated:** [April 27, 2007, 6:26pm UTC](https://www.ruby-forum.com/t/restrict-access-by-ip-address/93108 "2007-04-27T18:26:37Z")

</div>

I’d like to restrict access to some controllers of my app to certain IP addresses only, but can’t find any information on this. Can anyone suggest a good way to go about this? All I could think of was adding a entry …

---

## [More Back Button Madness](https://www.ruby-forum.com/t/more-back-button-madness/93107)

<div class="topic-metadata">

**Author:** [@desertpenguin](https://www.ruby-forum.com/u/desertpenguin)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 5:53pm UTC](https://www.ruby-forum.com/t/more-back-button-madness/93107 "2007-04-27T17:53:40Z")

</div>

I am having problems with form fields retaining values when the user hits the back button. This occurs with standard pure html forms, like: Title: If the user fills in the text fiel…

---

## [Where to save a module?](https://www.ruby-forum.com/t/where-to-save-a-module/93094)

<div class="topic-metadata">

**Author:** [@chris\_finch](https://www.ruby-forum.com/u/chris_finch)\
**Replies:** 3\
**Last updated:** [April 27, 2007, 5:41pm UTC](https://www.ruby-forum.com/t/where-to-save-a-module/93094 "2007-04-27T17:41:33Z")

</div>

Hi all, I wrote a module which contains some methods for doing math functions. I want the module to be included in one of my rails models. Where is the best place to put it? Should I make it into a gem and do a gem i…

---

## [A bug with script/generate plugin\_migrations?](https://www.ruby-forum.com/t/a-bug-with-script-generate-plugin-migrations/93031)

<div class="topic-metadata">

**Author:** [@Trevor\_Rowe](https://www.ruby-forum.com/u/Trevor_Rowe)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 5:36pm UTC](https://www.ruby-forum.com/t/a-bug-with-script-generate-plugin-migrations/93031 "2007-04-27T17:36:32Z")

</div>

I tried searching the mailing list for an answer with no luck. I’m hoping this is just user error: I recently upgraded my rails app to Rails 1.2.3 (from Rails 1.1.6) and upgraded to engines 1.2 at the same time. I r…

---

## [IM Integration](https://www.ruby-forum.com/t/im-integration/93109)

<div class="topic-metadata">

**Author:** [@danny](https://www.ruby-forum.com/u/danny)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 5:22pm UTC](https://www.ruby-forum.com/t/im-integration/93109 "2007-04-27T17:22:00Z")

</div>

Hey people, I was wondering if there is some good info about sending messages to different IM clients from your Ruby/Rails code. I have found some information about Jabber integration, but if anyone knows more about …

---

## [Is there something I am missing?](https://www.ruby-forum.com/t/is-there-something-i-am-missing/93008)

<div class="topic-metadata">

**Author:** [@darushin](https://www.ruby-forum.com/u/darushin)\
**Replies:** 4\
**Last updated:** [April 27, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/is-there-something-i-am-missing/93008 "2007-04-27T17:16:31Z")

</div>

this s more of a syntax question then a problem persay. I was optimizing some older code on one of my projects when I hit and interesting problem. First the Working Code: placeholder = 0 while(@record\_album\[placehold…

---

## [Adding any number of email addresses by using 'add another e](https://www.ruby-forum.com/t/adding-any-number-of-email-addresses-by-using-add-another-e/92958)

<div class="topic-metadata">

**Author:** [@dorelal](https://www.ruby-forum.com/u/dorelal)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 4:32pm UTC](https://www.ruby-forum.com/t/adding-any-number-of-email-addresses-by-using-add-another-e/92958 "2007-04-27T16:32:26Z")

</div>

In highrisehq.com by 37signls.com I see that you can add any number of email address by using ‘Add another’ link. This is really nice feature. I am running into so many issues while implementing something similar. Is …

---

## [Components going out of style?](https://www.ruby-forum.com/t/components-going-out-of-style/61506)

<div class="topic-metadata">

**Author:** [@nola](https://www.ruby-forum.com/u/nola)\
**Replies:** 22\
**Last updated:** [April 27, 2007, 3:58pm UTC](https://www.ruby-forum.com/t/components-going-out-of-style/61506 "2007-04-27T15:58:31Z")

</div>

I see in the new Agile Rails 2nd edition that components are going out of style? Is this so? has anybody abandoned the idea of components for helpers? Specifically I’m considering a menu sytem for a website that depen…

---

## [Require\_gem is obsolete. Use gem instead](https://www.ruby-forum.com/t/require-gem-is-obsolete-use-gem-instead/92244)

<div class="topic-metadata">

**Author:** [@spongebob](https://www.ruby-forum.com/u/spongebob)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/require-gem-is-obsolete-use-gem-instead/92244 "2007-04-27T15:33:18Z")

</div>

Good Day! I am using Rails version 1.2.3 and gem version 0.9.2 and I keep getting this error: boot.rb:29:Warning: require\_gem is obsolete. Use gem instead. Then what I did is I changed “require\_gem” to “gem” coz tha…

---

## [Anyone using rails1.2.3 with Lightty?](https://www.ruby-forum.com/t/anyone-using-rails1-2-3-with-lightty/93095)

<div class="topic-metadata">

**Author:** [@ldk2005](https://www.ruby-forum.com/u/ldk2005)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 2:01pm UTC](https://www.ruby-forum.com/t/anyone-using-rails1-2-3-with-lightty/93095 "2007-04-27T14:01:31Z")

</div>

I was thinking about putting lighttpd on a server for my rails apps. Has anyone else done this? What are the pros, and cons? Does this setup work well with Rails 1.2.3? Is it faster than Apache? Any comments along …

---

## [RJS not updating styles](https://www.ruby-forum.com/t/rjs-not-updating-styles/93093)

<div class="topic-metadata">

**Author:** [@miked](https://www.ruby-forum.com/u/miked)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 1:33pm UTC](https://www.ruby-forum.com/t/rjs-not-updating-styles/93093 "2007-04-27T13:33:28Z")

</div>

Hello: I have an RJS tied to periodic update in one of my controllers. I want the output text to be stylized, so I have the code in the RJS wrapped in custom style tags: “\<%=h q.text %\>” by \<%=h q.author %\>, \<%=h q.…

---

## [Error on "cap setup"](https://www.ruby-forum.com/t/error-on-cap-setup/92200)

<div class="topic-metadata">

**Author:** [@preston](https://www.ruby-forum.com/u/preston)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/error-on-cap-setup/92200 "2007-04-27T13:08:24Z")

</div>

Capistrano is throwing an ugly error after SSH authentication with my application server on both ‘cap setup’ and ‘cap deploy’. It’s particularly strange because I haven’t encountered this on any other projects, and am…

---

## [Date.new exception in controller](https://www.ruby-forum.com/t/date-new-exception-in-controller/93085)

<div class="topic-metadata">

**Author:** [@Sven\_ASSchmidt](https://www.ruby-forum.com/u/Sven_ASSchmidt)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 10:18am UTC](https://www.ruby-forum.com/t/date-new-exception-in-controller/93085 "2007-04-27T10:18:27Z")

</div>

Hi all, I’m fairly new to rails and probably doing something stupid here. Unfortunately, I can’t come up with a good search term to help solve the problem – I hope someone here can help :slight\_smile: I’m getting an …

---

## [New plugin - please review and add suggestions](https://www.ruby-forum.com/t/new-plugin-please-review-and-add-suggestions/93084)

<div class="topic-metadata">

**Author:** [@asherwood](https://www.ruby-forum.com/u/asherwood)\
**Replies:** 0\
**Last updated:** [April 27, 2007, 10:16am UTC](https://www.ruby-forum.com/t/new-plugin-please-review-and-add-suggestions/93084 "2007-04-27T10:16:17Z")

</div>

Hi, I have just put together a new plugin and would like to get your opinions. It provides a set of methods that allow you to filter text as required before\_save taht I will be using for a simple blog. This is the fi…

---

## [Stop browser caching content](https://www.ruby-forum.com/t/stop-browser-caching-content/92990)

<div class="topic-metadata">

**Author:** [@reggieb](https://www.ruby-forum.com/u/reggieb)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 10:11am UTC](https://www.ruby-forum.com/t/stop-browser-caching-content/92990 "2007-04-27T10:11:56Z")

</div>

I have a small application that serves documents (typically PDF and word). I’m using the file\_column plug-in to update and manage the documents. I’m serving the documents via Mongrel (this is a small intranet applicat…

---

## [Regarding Database convention](https://www.ruby-forum.com/t/regarding-database-convention/93080)

<div class="topic-metadata">

**Author:** [@santoshat20007](https://www.ruby-forum.com/u/santoshat20007)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 9:33am UTC](https://www.ruby-forum.com/t/regarding-database-convention/93080 "2007-04-27T09:33:13Z")

</div>

Hi, I have a database which have table named with different convention, It is not following rubyonrails convention that table name must be pural. How to create model for these table which will not follow convention. p…

---

## [Rails adding extra code?](https://www.ruby-forum.com/t/rails-adding-extra-code/93059)

<div class="topic-metadata">

**Author:** [@azazel](https://www.ruby-forum.com/u/azazel)\
**Replies:** 1\
**Last updated:** [April 27, 2007, 9:13am UTC](https://www.ruby-forum.com/t/rails-adding-extra-code/93059 "2007-04-27T09:13:17Z")

</div>

My friend and I are working on a small app. Today he sent me some code. I plugged it into my setup but when I tried to retrieve it, I noticed CSS wasn’t working properly. Upon inspecting the code I noticed Rails had a…

---

## [Help with simple\_format and line breaks](https://www.ruby-forum.com/t/help-with-simple-format-and-line-breaks/92876)

<div class="topic-metadata">

**Author:** [@onemind](https://www.ruby-forum.com/u/onemind)\
**Replies:** 2\
**Last updated:** [April 27, 2007, 8:54am UTC](https://www.ruby-forum.com/t/help-with-simple-format-and-line-breaks/92876 "2007-04-27T08:54:35Z")

</div>

Hello Ruby forum, I’ve been looking at the other threads before posting this, but I can’t find a good solution to the problem I’m having. The problem: in one of my views, I have the following code: \<% for column in B…

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

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