# Rails

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

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

---

## [Better nested set and :through](https://www.ruby-forum.com/t/better-nested-set-and-through/93220)

<div class="topic-metadata">

**Author:** [@Vincent\_AE\_Scott](https://www.ruby-forum.com/u/Vincent_AE_Scott)\
**Replies:** 1\
**Last updated:** [April 29, 2007, 11:55pm UTC](https://www.ruby-forum.com/t/better-nested-set-and-through/93220 "2007-04-29T23:55:43Z")

</div>

Hello all, It’s been a while since i’ve been doing any rails development, so i’m a bit rusty. Having found this: http://opensource.symetrie.com/api/better\_nested\_set/ it looks really interesting and useful for solvi…

---

## [Connecting Rails with MSSQL](https://www.ruby-forum.com/t/connecting-rails-with-mssql/93244)

<div class="topic-metadata">

**Author:** [@arturaz](https://www.ruby-forum.com/u/arturaz)\
**Replies:** 0\
**Last updated:** [April 29, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/connecting-rails-with-mssql/93244 "2007-04-29T23:05:45Z")

</div>

Hello, I have MSSQL 8 (2000) database which I have to connect to. I’m on debian. Anyone knows any nice links explaining this stuff, because all the info i’ve found on google was scattered and hard to understand. me w…

---

## [SQLRelay adapter for Rails?](https://www.ruby-forum.com/t/sqlrelay-adapter-for-rails/93179)

<div class="topic-metadata">

**Author:** [@jacqui](https://www.ruby-forum.com/u/jacqui)\
**Replies:** 2\
**Last updated:** [April 29, 2007, 9:11pm UTC](https://www.ruby-forum.com/t/sqlrelay-adapter-for-rails/93179 "2007-04-29T21:11:29Z")

</div>

I would like to use SQLRelay for database connection pooling and query- based routing with a Rails application that I am just about done with. It is my first Rails project, and I thought it might be wise to get some f…

---

## [Integration test redirects to external URLs](https://www.ruby-forum.com/t/integration-test-redirects-to-external-urls/93238)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 0\
**Last updated:** [April 29, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/integration-test-redirects-to-external-urls/93238 "2007-04-29T20:24:24Z")

</div>

In an integration test that I am writing I want to do something like def test\_my\_page get “/rails/someaction” assert\_response :redirect follow\_redirect! assert\_url =\> ‘http://www.somepageoutsidemyrailsapp’ end Is …

---

## [Full plugin test environment (long)](https://www.ruby-forum.com/t/full-plugin-test-environment-long/93218)

<div class="topic-metadata">

**Author:** [@cinek](https://www.ruby-forum.com/u/cinek)\
**Replies:** 2\
**Last updated:** [April 29, 2007, 8:22pm UTC](https://www.ruby-forum.com/t/full-plugin-test-environment-long/93218 "2007-04-29T20:22:18Z")

</div>

Testing part of rails framework works very nice. Unfortunately testing plugins seems to be a pain (at least for me). I’m writing a simple plugin that adds a model and a controller mixin (it seems to work fine in my ap…

---

## [Textile - how to onl allow certain tags?](https://www.ruby-forum.com/t/textile-how-to-onl-allow-certain-tags/93227)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 1\
**Last updated:** [April 29, 2007, 7:45pm UTC](https://www.ruby-forum.com/t/textile-how-to-onl-allow-certain-tags/93227 "2007-04-29T19:45:20Z")

</div>

Hi, I would like to use textile in my application, but would only like to allow certain tags, anyone aware of a way of doing this? Thanks, Josh

---

## [Attr\_accessible vs. attr\_reader](https://www.ruby-forum.com/t/attr-accessible-vs-attr-reader/93226)

<div class="topic-metadata">

**Author:** [@running\_idiot](https://www.ruby-forum.com/u/running_idiot)\
**Replies:** 2\
**Last updated:** [April 29, 2007, 7:34pm UTC](https://www.ruby-forum.com/t/attr-accessible-vs-attr-reader/93226 "2007-04-29T19:34:19Z")

</div>

I got another question - what is difference between attr\_accessible and attr\_reader? I am not too smart from google’s results ( http://www.google.com/search?q=“attr\_accessible”+“attr\_reader” ), so I ask here. When s…

---

## [Progress bar ideas (not file upload)](https://www.ruby-forum.com/t/progress-bar-ideas-not-file-upload/93229)

<div class="topic-metadata">

**Author:** [@kturner](https://www.ruby-forum.com/u/kturner)\
**Replies:** 0\
**Last updated:** [April 29, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/progress-bar-ideas-not-file-upload/93229 "2007-04-29T18:06:25Z")

</div>

I am working on an import operation that takes 30-60 seconds. It includes parsing XML, committing objects to database tables, etc. There’s a lot of data in each XML file, which accounts for the time. I’d like to disp…

---

## [Problem with error\_messages](https://www.ruby-forum.com/t/problem-with-error-messages/93231)

<div class="topic-metadata">

**Author:** [@zavulon](https://www.ruby-forum.com/u/zavulon)\
**Replies:** 0\
**Last updated:** [April 29, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/problem-with-error-messages/93231 "2007-04-29T18:02:47Z")

</div>

Hi all, I have a problem with error\_messages displaying correctly. I have a page to show an item. That page has a comment form (which calls to the controller ‘comment’ with action ‘create’) and below a list of comment…

---

## [Uploading ROR application](https://www.ruby-forum.com/t/uploading-ror-application/93174)

<div class="topic-metadata">

**Author:** [@chandoo](https://www.ruby-forum.com/u/chandoo)\
**Replies:** 1\
**Last updated:** [April 29, 2007, 4:14pm UTC](https://www.ruby-forum.com/t/uploading-ror-application/93174 "2007-04-29T16:14:04Z")

</div>

Hi I am new to ruby rails and i have created an application. Now all i need to do is i want to upload that in to my server. Can any one please help me out with some step by step process about how to upload the applic…

---

## [Include image in rss feeds?](https://www.ruby-forum.com/t/include-image-in-rss-feeds/93210)

<div class="topic-metadata">

**Author:** [@abon](https://www.ruby-forum.com/u/abon)\
**Replies:** 1\
**Last updated:** [April 29, 2007, 3:33pm UTC](https://www.ruby-forum.com/t/include-image-in-rss-feeds/93210 "2007-04-29T15:33:59Z")

</div>

Sorry that I’m not very familiar with rss standards. I read rails recipe and implemented the rss example. But now I would like to insert images in a feed. How could this be done? From some of feeds with images , I fo…

---

## [Need help for dynamic menus](https://www.ruby-forum.com/t/need-help-for-dynamic-menus/93198)

<div class="topic-metadata">

**Author:** [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Replies:** 1\
**Last updated:** [April 29, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/need-help-for-dynamic-menus/93198 "2007-04-29T15:16:57Z")

</div>

Hi, I need to generate dynamic menus and those menus items need to be picked from the database based on the role of the person logged in. Has anybody done anything similar to it? Any help and guidance is greatly app…

---

## [How to see who is online?](https://www.ruby-forum.com/t/how-to-see-who-is-online/93206)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [April 29, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/how-to-see-who-is-online/93206 "2007-04-29T15:11:56Z")

</div>

dear all, how can i see who is “online”, and show the total number of people on my web ? thanks -feng

---

## [Edit content of html tags](https://www.ruby-forum.com/t/edit-content-of-html-tags/93189)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 2\
**Last updated:** [April 29, 2007, 2:56pm UTC](https://www.ruby-forum.com/t/edit-content-of-html-tags/93189 "2007-04-29T14:56:49Z")

</div>

Hi, Is anyone aware of a nice gem or way that will allow me to edit the content of all html tags except tags? Cheers, josh

---

## [Cannot install plugins](https://www.ruby-forum.com/t/cannot-install-plugins/93216)

<div class="topic-metadata">

**Author:** [@Will\_Merrell](https://www.ruby-forum.com/u/Will_Merrell)\
**Replies:** 0\
**Last updated:** [April 29, 2007, 2:33pm UTC](https://www.ruby-forum.com/t/cannot-install-plugins/93216 "2007-04-29T14:33:54Z")

</div>

I used to be able to install plugins, but for some reason the plugins system has stopped working for me. If I try to install something like comatose, I get the following: C:\\rails\\BAct\>ruby script/plugin source http:…

---

## [In\_place\_edit ends up with try catch block as content?](https://www.ruby-forum.com/t/in-place-edit-ends-up-with-try-catch-block-as-content/93192)

<div class="topic-metadata">

**Author:** [@adam](https://www.ruby-forum.com/u/adam)\
**Replies:** 2\
**Last updated:** [April 29, 2007, 11:44am UTC](https://www.ruby-forum.com/t/in-place-edit-ends-up-with-try-catch-block-as-content/93192 "2007-04-29T11:44:57Z")

</div>

I have a few in place edit fields in a table. but when i enter a null value it now, promts me with the alert. ~BUT then enters the returned rjs into the editable field: ~?? try {ry { alert(“not working”); } catch (e) …

---

## [Link\_to](https://www.ruby-forum.com/t/link-to/93207)

<div class="topic-metadata">

**Author:** [@raj](https://www.ruby-forum.com/u/raj)\
**Replies:** 5\
**Last updated:** [April 29, 2007, 11:19am UTC](https://www.ruby-forum.com/t/link-to/93207 "2007-04-29T11:19:57Z")

</div>

\<%= link\_to “Home”, :controller =\> ‘home’, :action =\> ‘index’ %\> I need to format “Home” like make it bold, chage it color, put it in div element…i tried putting that line in div tag but its not working… How do I do t…

---

## [The link\_to url problem](https://www.ruby-forum.com/t/the-link-to-url-problem/93199)

<div class="topic-metadata">

**Author:** [@Vincent.Z](https://www.ruby-forum.com/u/Vincent.Z)\
**Replies:** 2\
**Last updated:** [April 29, 2007, 11:01am UTC](https://www.ruby-forum.com/t/the-link-to-url-problem/93199 "2007-04-29T11:01:33Z")

</div>

hi,all im making one tag,such as : \<%=link\_to “test”, {:host=\>“www.itsdargens.com”,:controller=\>“vivid”}%\> but,the “:host” tag didnt work properly.it always render the “http:// 127.0.0.1:3000/vivid” that is my localh…

---

## [Ruby select helpers](https://www.ruby-forum.com/t/ruby-select-helpers/93209)

<div class="topic-metadata">

**Author:** [@pingu](https://www.ruby-forum.com/u/pingu)\
**Replies:** 1\
**Last updated:** [April 29, 2007, 10:56am UTC](https://www.ruby-forum.com/t/ruby-select-helpers/93209 "2007-04-29T10:56:32Z")

</div>

Hi Can anyone tell me when i should be using the different select helpers select(object, method, collection, options = {}, html\_options = {}) select\_tag(name, option\_tags = nil, options = {}) collection\_select(object…

---

## [Controller instance variables not visible in helper method c](https://www.ruby-forum.com/t/controller-instance-variables-not-visible-in-helper-method-c/93201)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [April 29, 2007, 10:55am UTC](https://www.ruby-forum.com/t/controller-instance-variables-not-visible-in-helper-method-c/93201 "2007-04-29T10:55:32Z")

</div>

I have the following code in an rjs template that I should like to move to a helper method associated with the controller: if @read\_access.value == “MemberEntityAccessibility” page.insert\_html :bottom, ‘read\_access\_li…

---

## [Start one more mongrel for development](https://www.ruby-forum.com/t/start-one-more-mongrel-for-development/93211)

<div class="topic-metadata">

**Author:** [@xain](https://www.ruby-forum.com/u/xain)\
**Replies:** 0\
**Last updated:** [April 29, 2007, 10:46am UTC](https://www.ruby-forum.com/t/start-one-more-mongrel-for-development/93211 "2007-04-29T10:46:19Z")

</div>

I started a mongrel, open a test page, then started a loop action from the page. The action would take a loooooong time to finish. Not wanting to waste my time on waiting, I started another mongrel at another port(300…

---

## [Technical team leader required in delhi](https://www.ruby-forum.com/t/technical-team-leader-required-in-delhi/93204)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [April 29, 2007, 7:23am UTC](https://www.ruby-forum.com/t/technical-team-leader-required-in-delhi/93204 "2007-04-29T07:23:19Z")

</div>

http://corp.naukri.com/mynaukri/mn\_newminnernew.php?filename=250407002553&othersrcpjobs=quickbar\_page&othersrcp=&id=&searchloc=homepage&phrase=rails&sortsource=relevance&type=all special requirement : ruby on rails deve…

---

## [Create RPM For Your Rails Application -- does it help?](https://www.ruby-forum.com/t/create-rpm-for-your-rails-application-does-it-help/93202)

<div class="topic-metadata">

**Author:** [@Jeff\_X](https://www.ruby-forum.com/u/Jeff_X)\
**Replies:** 0\
**Last updated:** [April 29, 2007, 6:12am UTC](https://www.ruby-forum.com/t/create-rpm-for-your-rails-application-does-it-help/93202 "2007-04-29T06:12:15Z")

</div>

http://gigix.thoughtworkers.org/articles/2007/04/28/create-rpm-for-your-rails-application Now you can create RPM package for your Rails application fairly easily. Do you think it helps? – Jeff X. Software Journeyman…

---

## [How to call a function in model and pass values in](https://www.ruby-forum.com/t/how-to-call-a-function-in-model-and-pass-values-in/92810)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 4\
**Last updated:** [April 29, 2007, 5:32am UTC](https://www.ruby-forum.com/t/how-to-call-a-function-in-model-and-pass-values-in/92810 "2007-04-29T05:32:13Z")

</div>

Hi, Is it possible to call a functon using callbacks, passing a number of attr\_names in? i.e. somthing like this before\_save :tst =\> :title, :content def test(\*attr\_names) attr\_names.each do |record, attr\_name, val…

---

## [Problems with caching (i think)](https://www.ruby-forum.com/t/problems-with-caching-i-think/93004)

<div class="topic-metadata">

**Author:** [@PaSSS\_lo\_Geyer](https://www.ruby-forum.com/u/PaSSS_lo_Geyer)\
**Replies:** 4\
**Last updated:** [April 29, 2007, 5:23am UTC](https://www.ruby-forum.com/t/problems-with-caching-i-think/93004 "2007-04-29T05:23:12Z")

</div>

I’m trying to do some changes in the views, but the final result (page requests) doesn’t show my changes. I’ve commented the caches\_page lines, but i still can get my changes, what could be the problem?

---

## [User experience spontaneous logouts](https://www.ruby-forum.com/t/user-experience-spontaneous-logouts/93146)

<div class="topic-metadata">

**Author:** [@nathan](https://www.ruby-forum.com/u/nathan)\
**Replies:** 2\
**Last updated:** [April 29, 2007, 5:19am UTC](https://www.ruby-forum.com/t/user-experience-spontaneous-logouts/93146 "2007-04-29T05:19:12Z")

</div>

One of the users of my RoR website, mushroomobserver.org, has been complaining about getting spontaneously kicked out the site. I’ve looked at the logs and over the last 8 days this particular user has been logged ou…

---

## [Learning ruby question](https://www.ruby-forum.com/t/learning-ruby-question/93142)

<div class="topic-metadata">

**Author:** [@jim](https://www.ruby-forum.com/u/jim)\
**Replies:** 3\
**Last updated:** [April 29, 2007, 5:01am UTC](https://www.ruby-forum.com/t/learning-ruby-question/93142 "2007-04-29T05:01:11Z")

</div>

I’m having trouble understanding Ruby’s concept of scope. Could someone explain the difference between the following 2 programs. They both return the same output “aaaaaaaa”, but I’m just not sure about self in #1. I…

---

## [Ruby 1.8.5 and Readline on Mac OS X 10.4.8 (Intel)](https://www.ruby-forum.com/t/ruby-1-8-5-and-readline-on-mac-os-x-10-4-8-intel/70956)

<div class="topic-metadata">

**Author:** [@Erik\_JSBarzeski](https://www.ruby-forum.com/u/Erik_JSBarzeski)\
**Replies:** 11\
**Last updated:** [April 29, 2007, 4:08am UTC](https://www.ruby-forum.com/t/ruby-1-8-5-and-readline-on-mac-os-x-10-4-8-intel/70956 "2007-04-29T04:08:09Z")

</div>

I’ve followed the hivelogic instructions (Dan Benjamin), using the latest release versions of software where possible. That included Ruby 1.8.5 and PCRE 6.7 (and I think that’s it). I’ve now run into a problem I’ve s…

---

## [Find\_by\_sql() goes in model or controller?](https://www.ruby-forum.com/t/find-by-sql-goes-in-model-or-controller/93170)

<div class="topic-metadata">

**Author:** [@sbeam](https://www.ruby-forum.com/u/sbeam)\
**Replies:** 4\
**Last updated:** [April 29, 2007, 1:50am UTC](https://www.ruby-forum.com/t/find-by-sql-goes-in-model-or-controller/93170 "2007-04-29T01:50:01Z")

</div>

What is the canonical way to do a simple GROUP BY using AR? I have a column, I’d like to just get the total for a certain user into the view. So I can do find\_by\_sql() and then get the first element of the collection …

---

## [My has\_many has many errors!](https://www.ruby-forum.com/t/my-has-many-has-many-errors/93188)

<div class="topic-metadata">

**Author:** [@mixplate](https://www.ruby-forum.com/u/mixplate)\
**Replies:** 3\
**Last updated:** [April 29, 2007, 1:16am UTC](https://www.ruby-forum.com/t/my-has-many-has-many-errors/93188 "2007-04-29T01:16:59Z")

</div>

USER has\_many categories CATEGORY belongs\_to user has\_many notes NOTES belongs\_to category this is breaking… @userCategories = Category.find(:all, :conditions =\> “user\_id = 1”, :include =\> :notes) yes, user\_id …

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

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