# Rails

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

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

---

## [Regular expression to identity special character](https://www.ruby-forum.com/t/regular-expression-to-identity-special-character/149654)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 6\
**Last updated:** [September 28, 2008, 7:59pm UTC](https://www.ruby-forum.com/t/regular-expression-to-identity-special-character/149654 "2008-09-28T19:59:04Z")

</div>

Hello friends i need a regular expression which will check if the string contain the special character or not? and accordingly it should return true, false value. Thanks abhi

---

## [\[How to pass argument from a script to rails...\]](https://www.ruby-forum.com/t/how-to-pass-argument-from-a-script-to-rails/149679)

<div class="topic-metadata">

**Author:** [@maxdunn](https://www.ruby-forum.com/u/maxdunn)\
**Replies:** 5\
**Last updated:** [September 28, 2008, 5:55pm UTC](https://www.ruby-forum.com/t/how-to-pass-argument-from-a-script-to-rails/149679 "2008-09-28T17:55:16Z")

</div>

I have a script with which I want to create a rails app. Then not something like: $ rails -d mysql name\_app in terminal, but from the script. In the script I get the app name, database etc. After some operations I w…

---

## [Render partial vs. page.replace\_html](https://www.ruby-forum.com/t/render-partial-vs-page-replace-html/149697)

<div class="topic-metadata">

**Author:** [@pure](https://www.ruby-forum.com/u/pure)\
**Replies:** 2\
**Last updated:** [September 28, 2008, 5:50pm UTC](https://www.ruby-forum.com/t/render-partial-vs-page-replace-html/149697 "2008-09-28T17:50:35Z")

</div>

Hey all, i simple try to update a partial in my index file. (it contains two partials, and i want to update one of them) But when i use, render :partial =\> … it shows the partial but without the rest of the layout (n…

---

## [Unable to update form](https://www.ruby-forum.com/t/unable-to-update-form/146496)

<div class="topic-metadata">

**Author:** [@hellomatts](https://www.ruby-forum.com/u/hellomatts)\
**Replies:** 5\
**Last updated:** [September 28, 2008, 5:29pm UTC](https://www.ruby-forum.com/t/unable-to-update-form/146496 "2008-09-28T17:29:24Z")

</div>

I’m new to Rails, and have been reading up on it like crazy… Anyway, I built a form using render :partial, and it works fine when creating a new record, however, am having a hell of a time saving modifications to it… …

---

## [HOWTO matrix test with rspec](https://www.ruby-forum.com/t/howto-matrix-test-with-rspec/149702)

<div class="topic-metadata">

**Author:** [@tachikoma](https://www.ruby-forum.com/u/tachikoma)\
**Replies:** 0\
**Last updated:** [September 28, 2008, 3:10pm UTC](https://www.ruby-forum.com/t/howto-matrix-test-with-rspec/149702 "2008-09-28T15:10:51Z")

</div>

Hey,guys I wanna matrix test with rspec but rspec\_matrix isn’t available So,helpme,3Q

---

## [Passing variable between methods](https://www.ruby-forum.com/t/passing-variable-between-methods/149696)

<div class="topic-metadata">

**Author:** [@katsuo](https://www.ruby-forum.com/u/katsuo)\
**Replies:** 2\
**Last updated:** [September 28, 2008, 2:03pm UTC](https://www.ruby-forum.com/t/passing-variable-between-methods/149696 "2008-09-28T14:03:08Z")

</div>

How can I pass @member varible from def member to def name and insert it into name\_id? These methods are in the same controller. def member @member = params\[:member\] || ‘’ member = @member end def name name\_id = @…

---

## [Sqlserver views instead of tables](https://www.ruby-forum.com/t/sqlserver-views-instead-of-tables/149481)

<div class="topic-metadata">

**Author:** [@mfairchi](https://www.ruby-forum.com/u/mfairchi)\
**Replies:** 1\
**Last updated:** [September 28, 2008, 11:58am UTC](https://www.ruby-forum.com/t/sqlserver-views-instead-of-tables/149481 "2008-09-28T11:58:01Z")

</div>

Hello, I have a legacy database in sqlserver 2005 that I am not allowed to change. I have tried using a view, as I have read it works for others, however I get an error. I have this in my model: class SheetEntryVie…

---

## [Re: h() doesn't have any parameter for encoding being used?](https://www.ruby-forum.com/t/re-h-doesnt-have-any-parameter-for-encoding-being-used/149689)

<div class="topic-metadata">

**Author:** [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Replies:** 0\
**Last updated:** [September 28, 2008, 11:22am UTC](https://www.ruby-forum.com/t/re-h-doesnt-have-any-parameter-for-encoding-being-used/149689 "2008-09-28T11:22:53Z")

</div>

On 28 Sep 2008, at 05:18, Ryan B. removed\_email\_address@domain.invalid wrote: I don’t think Rails supports UTF8 yet… but I could be wrong. Actually it should handle utf-8 just fine. Rails 1.2 added a whole bunch of …

---

## [Helper method problem](https://www.ruby-forum.com/t/helper-method-problem/149675)

<div class="topic-metadata">

**Author:** [@jon](https://www.ruby-forum.com/u/jon)\
**Replies:** 3\
**Last updated:** [September 28, 2008, 8:26am UTC](https://www.ruby-forum.com/t/helper-method-problem/149675 "2008-09-28T08:26:09Z")

</div>

In my main controller have: def index @albums=Album.find(:all) @cart=find\_cart end since find\_cart is also used by another controller, I decided to move it from to the application\_helper.rb file too reduce redundan…

---

## [NotePad++ for RoR](https://www.ruby-forum.com/t/notepad-for-ror/149685)

<div class="topic-metadata">

**Author:** [@risknet](https://www.ruby-forum.com/u/risknet)\
**Replies:** 0\
**Last updated:** [September 28, 2008, 7:44am UTC](https://www.ruby-forum.com/t/notepad-for-ror/149685 "2008-09-28T07:44:17Z")

</div>

Hello everyone! Has anyone used NotePad++ for RoR project(s)? I have been using this for Tcl/Perl programming but have never used for RoR work before. Can anyone share your experience with me for NotePad++? Is there…

---

## [Teaching Mongrel other HTTP Methods (verbs)](https://www.ruby-forum.com/t/teaching-mongrel-other-http-methods-verbs/149651)

<div class="topic-metadata">

**Author:** [@Mozmonkey](https://www.ruby-forum.com/u/Mozmonkey)\
**Replies:** 1\
**Last updated:** [September 28, 2008, 4:00am UTC](https://www.ruby-forum.com/t/teaching-mongrel-other-http-methods-verbs/149651 "2008-09-28T04:00:47Z")

</div>

I’m trying to build a simple CalDav server in a Rails application but am running into a huge stumbling block. CalDav uses the HTTP protocol but has it’s own set of methods – for example, instead of GET it has a metho…

---

## [Some .erb / herlper.rb nuance I am missing?](https://www.ruby-forum.com/t/some-erb-herlper-rb-nuance-i-am-missing/149652)

<div class="topic-metadata">

**Author:** [@ee\_smajors](https://www.ruby-forum.com/u/ee_smajors)\
**Replies:** 2\
**Last updated:** [September 28, 2008, 12:20am UTC](https://www.ruby-forum.com/t/some-erb-herlper-rb-nuance-i-am-missing/149652 "2008-09-28T00:20:13Z")

</div>

this is my view: \<td align="left"\> \<% setupsheets\_missing = true @series800.setupsheets.each do |sheet| setupsheets\_missing = false %\> \<%= link\_to( image\_tag(sheet.public\_f…

---

## [Nascent plug-in feedback needed: CouchDB cache store](https://www.ruby-forum.com/t/nascent-plug-in-feedback-needed-couchdb-cache-store/149672)

<div class="topic-metadata">

**Author:** [@jpignata](https://www.ruby-forum.com/u/jpignata)\
**Replies:** 0\
**Last updated:** [September 28, 2008, 12:13am UTC](https://www.ruby-forum.com/t/nascent-plug-in-feedback-needed-couchdb-cache-store/149672 "2008-09-28T00:13:12Z")

</div>

I’ve put together a quick plug-in to allow CouchDB to be used as a caching store. I have a project whereby I want to create a persistent file cache, and CouchDB seemed to be a good approach to try. If anybody has any …

---

## [Subdomain Fu Routing Question](https://www.ruby-forum.com/t/subdomain-fu-routing-question/146963)

<div class="topic-metadata">

**Author:** [@snowbird122](https://www.ruby-forum.com/u/snowbird122)\
**Replies:** 1\
**Last updated:** [September 27, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/subdomain-fu-routing-question/146963 "2008-09-27T23:43:19Z")

</div>

Hello- I’m having some difficulty with Subdomain Fu (or my app, not to falsely accuse). I have two controllers: home and account\_root. I want the home controller to be used whenever someone goes to www.myapp.com and …

---

## [Very Newbie Question - script/generate model](https://www.ruby-forum.com/t/very-newbie-question-script-generate-model/149542)

<div class="topic-metadata">

**Author:** [@closedbook](https://www.ruby-forum.com/u/closedbook)\
**Replies:** 10\
**Last updated:** [September 27, 2008, 11:07pm UTC](https://www.ruby-forum.com/t/very-newbie-question-script-generate-model/149542 "2008-09-27T23:07:35Z")

</div>

Hi All, I am working the 20 minute wiki tutorial http://sl33p3r.free.fr/tutorials/rails/wiki/wiki-en.html. Right at the beginning after I get my web server up I try to create the Page model in the command line: scri…

---

## [Realising a rights management](https://www.ruby-forum.com/t/realising-a-rights-management/149662)

<div class="topic-metadata">

**Author:** [@msmsms](https://www.ruby-forum.com/u/msmsms)\
**Replies:** 1\
**Last updated:** [September 27, 2008, 10:54pm UTC](https://www.ruby-forum.com/t/realising-a-rights-management/149662 "2008-09-27T22:54:06Z")

</div>

Hi, this is my first post, so hello folks! :slight\_smile: I am thinking about a rights management for my ruby on rails application. As usual, there will be roles, groups, allowed actions, etc. At the moment, I try to …

---

## [Eager loading by sql](https://www.ruby-forum.com/t/eager-loading-by-sql/149660)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 2\
**Last updated:** [September 27, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/eager-loading-by-sql/149660 "2008-09-27T21:10:56Z")

</div>

I can see how to do eager loading of associations in the cases where you’re letting AR construct the SQL and passing in :include =\>{:assoc1,:assoc2} and so on. But my case using LEFT OUTER JOIN it generates is mind nu…

---

## [Preventing Mongrel/Mysql Errno::EPIPE exceptions](https://www.ruby-forum.com/t/preventing-mongrel-mysql-errno-epipe-exceptions/149634)

<div class="topic-metadata">

**Author:** [@asplake](https://www.ruby-forum.com/u/asplake)\
**Replies:** 2\
**Last updated:** [September 27, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/preventing-mongrel-mysql-errno-epipe-exceptions/149634 "2008-09-27T18:47:12Z")

</div>

I have a rails app serving up XML on an infrequent basis. This is being run with mongrel and mysql. I’ve found that if the app does not get exercised for longer than a few hours it goes dead (“Lost Connection to MySQL…

---

## [Cant install redbox plugin](https://www.ruby-forum.com/t/cant-install-redbox-plugin/123572)

<div class="topic-metadata">

**Author:** [@flaubert](https://www.ruby-forum.com/u/flaubert)\
**Replies:** 3\
**Last updated:** [September 27, 2008, 4:43pm UTC](https://www.ruby-forum.com/t/cant-install-redbox-plugin/123572 "2008-09-27T16:43:45Z")

</div>

hello… im trying to install the redbox plugin but i does not work by the usual command script/plugin install \[repository\] is what about my rails version? 1.2.6? this happens with someone? There is another/better pl…

---

## [Problem with sessions and IE](https://www.ruby-forum.com/t/problem-with-sessions-and-ie/149648)

<div class="topic-metadata">

**Author:** [@feustine](https://www.ruby-forum.com/u/feustine)\
**Replies:** 9\
**Last updated:** [September 27, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/problem-with-sessions-and-ie/149648 "2008-09-27T15:40:32Z")

</div>

Hello guys, I have a very big issue with Internet Explorer and sessions! Indeed, since I migrated my whole application to rails 2.1.1 from rails 1.2.3, IE doesn’t keep session at all. example: # controller def ac…

---

## [Iterate over an array with the index?](https://www.ruby-forum.com/t/iterate-over-an-array-with-the-index/149614)

<div class="topic-metadata">

**Author:** [@josh](https://www.ruby-forum.com/u/josh)\
**Replies:** 3\
**Last updated:** [September 27, 2008, 3:19pm UTC](https://www.ruby-forum.com/t/iterate-over-an-array-with-the-index/149614 "2008-09-27T15:19:36Z")

</div>

Hi all Is there a method to iterate over an array with the index? Something like my\_array.each\_with\_index do |obj, index| … end Just couldn’t find such a method… maybe I worked too much today… :wink: Thanks Josh

---

## [Form with Multiple buttons](https://www.ruby-forum.com/t/form-with-multiple-buttons/149658)

<div class="topic-metadata">

**Author:** [@Jaikishan\_J](https://www.ruby-forum.com/u/Jaikishan_J)\
**Replies:** 0\
**Last updated:** [September 27, 2008, 2:48pm UTC](https://www.ruby-forum.com/t/form-with-multiple-buttons/149658 "2008-09-27T14:48:25Z")

</div>

How can I handle submit of Ajax form with multiple buttons? – Thanks, Jaikishan

---

## [Aspell crash](https://www.ruby-forum.com/t/aspell-crash/149655)

<div class="topic-metadata">

**Author:** [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Replies:** 0\
**Last updated:** [September 27, 2008, 1:29pm UTC](https://www.ruby-forum.com/t/aspell-crash/149655 "2008-09-27T13:29:29Z")

</div>

Hi I recently extracted the spelling correction functionality from Ultrasphinx and started to use it in Thinking Sphinx plugin. Today I noticed that both thin instances on the server died and this is what thin log sa…

---

## [Update each record in order to update Ferret index?](https://www.ruby-forum.com/t/update-each-record-in-order-to-update-ferret-index/149497)

<div class="topic-metadata">

**Author:** [@temesta](https://www.ruby-forum.com/u/temesta)\
**Replies:** 4\
**Last updated:** [September 27, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/update-each-record-in-order-to-update-ferret-index/149497 "2008-09-27T12:55:26Z")

</div>

Hi, I’m having some problems on a particular acts\_as\_ferret model. Rebuilding the index with Model.rebuild\_index does not seem to work. No results are returned after indexing. However, when I update each record manua…

---

## [How to validate presence of associated?](https://www.ruby-forum.com/t/how-to-validate-presence-of-associated/149405)

<div class="topic-metadata">

**Author:** [@Christian\_RishSSSSj](https://www.ruby-forum.com/u/Christian_RishSSSSj)\
**Replies:** 4\
**Last updated:** [September 27, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/how-to-validate-presence-of-associated/149405 "2008-09-27T12:55:25Z")

</div>

On Rails 2.1.1, I have this simple case: class Post \< ActiveRecord::Base has\_many :comments end class Comment \< ActiveRecord::Base belongs\_to :post validates\_presence\_of :post\_id end Now, when building associated…

---

## [STI subclassing](https://www.ruby-forum.com/t/sti-subclassing/149367)

<div class="topic-metadata">

**Author:** [@magic\_hat](https://www.ruby-forum.com/u/magic_hat)\
**Replies:** 3\
**Last updated:** [September 27, 2008, 12:55pm UTC](https://www.ruby-forum.com/t/sti-subclassing/149367 "2008-09-27T12:55:25Z")

</div>

Hi, all. I’m wrestling with subclassing models in AR. Wondering if i’m running up against a limitation on sub-subclassing, or if the syntax has gone awry here. My app has BlogPosts, which are a sub of Articles. It’s g…

---

## [Self-referential tags, has\_many\_polymorphs](https://www.ruby-forum.com/t/self-referential-tags-has-many-polymorphs/149653)

<div class="topic-metadata">

**Author:** [@soderic](https://www.ruby-forum.com/u/soderic)\
**Replies:** 0\
**Last updated:** [September 27, 2008, 11:17am UTC](https://www.ruby-forum.com/t/self-referential-tags-has-many-polymorphs/149653 "2008-09-27T11:17:39Z")

</div>

Hi, I’m looking to add tagging to an application, and I would like to allow self-referential tags, so that I can tag my tags. With the goal of generating a flexible tag hierarchy. After some googling it looks like a…

---

## [Image resize on the fly](https://www.ruby-forum.com/t/image-resize-on-the-fly/149643)

<div class="topic-metadata">

**Author:** [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Replies:** 3\
**Last updated:** [September 27, 2008, 10:32am UTC](https://www.ruby-forum.com/t/image-resize-on-the-fly/149643 "2008-09-27T10:32:44Z")

</div>

Hi guys is there any Javascript library is there which can help me to resive the image on the fly… Regards Abhishek shukla.

---

## [Jquery, format.js and IE](https://www.ruby-forum.com/t/jquery-format-js-and-ie/149544)

<div class="topic-metadata">

**Author:** [@bryan82](https://www.ruby-forum.com/u/bryan82)\
**Replies:** 2\
**Last updated:** [September 27, 2008, 5:10am UTC](https://www.ruby-forum.com/t/jquery-format-js-and-ie/149544 "2008-09-27T05:10:51Z")

</div>

I’m trying to use jQuery to write all my js unobtrusively, and running into a bit of a problem when triggering the format.js block in IE6 (and possibly IE7). It returns the JSON string no problem, but instead of parsi…

---

## [Problem with authentication... Acts As Authenticated](https://www.ruby-forum.com/t/problem-with-authentication-acts-as-authenticated/149635)

<div class="topic-metadata">

**Author:** [@julien51](https://www.ruby-forum.com/u/julien51)\
**Replies:** 1\
**Last updated:** [September 27, 2008, 1:34am UTC](https://www.ruby-forum.com/t/problem-with-authentication-acts-as-authenticated/149635 "2008-09-27T01:34:20Z")

</div>

Hello, I am working on the API of our webservice. API users need to authenticate some of their calls… When I am performig the call through Firefox, everything is fine as shown in the log : Processing OwnershipsContr…

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

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