# Rails

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

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

---

## [Resource for creating a Text Editor (kinda like gmail or wordpress)](https://www.ruby-forum.com/t/resource-for-creating-a-text-editor-kinda-like-gmail-or-wordpress/167833)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 3\
**Last updated:** [May 14, 2009, 6:18am UTC](https://www.ruby-forum.com/t/resource-for-creating-a-text-editor-kinda-like-gmail-or-wordpress/167833 "2009-05-14T06:18:59Z")

</div>

I’m looking to create a textarea that you can edit (bold, create links, view html etc.), much like Wordpress or gmail. Anyone know a good resource to learn how to do this?

---

## [Case/capitalization of LABEL text](https://www.ruby-forum.com/t/case-capitalization-of-label-text/167922)

<div class="topic-metadata">

**Author:** [@zambezi](https://www.ruby-forum.com/u/zambezi)\
**Replies:** 2\
**Last updated:** [May 14, 2009, 5:19am UTC](https://www.ruby-forum.com/t/case-capitalization-of-label-text/167922 "2009-05-14T05:19:22Z")

</div>

I’ve noticed that when using the form method Label, that the label text is translated to html with the first character in Upper Case and the remainder of the text string as lower case. \<%= label(:country, “USA”) %\> b…

---

## [SocketError (getaddrinfo: Name or service not known)](https://www.ruby-forum.com/t/socketerror-getaddrinfo-name-or-service-not-known/167787)

<div class="topic-metadata">

**Author:** [@daociyiyou](https://www.ruby-forum.com/u/daociyiyou)\
**Replies:** 15\
**Last updated:** [May 14, 2009, 5:09am UTC](https://www.ruby-forum.com/t/socketerror-getaddrinfo-name-or-service-not-known/167787 "2009-05-14T05:09:25Z")

</div>

I want write image(thumbnail is binary data) to ftp://showreelfinder.com/www.showreelfinder.com/web/site/temp/uploads/heywatch directory. But i got error like following: SocketError (getaddrinfo: Name or service not …

---

## [Help with polymorphic associations... the other way 'round](https://www.ruby-forum.com/t/help-with-polymorphic-associations-the-other-way-round/167923)

<div class="topic-metadata">

**Author:** [@AdamV](https://www.ruby-forum.com/u/AdamV)\
**Replies:** 0\
**Last updated:** [May 14, 2009, 1:29am UTC](https://www.ruby-forum.com/t/help-with-polymorphic-associations-the-other-way-round/167923 "2009-05-14T01:29:17Z")

</div>

Good afternoon, I have a situation were I have Container model which has\_many Item models (as a list). Now each Item can be either a TextItem (a chunk of HTML) or a FeedItem (some RSS Feed) – in the future I’ll add ot…

---

## [Placing orders using Rails](https://www.ruby-forum.com/t/placing-orders-using-rails/167916)

<div class="topic-metadata">

**Author:** [@devrubygem](https://www.ruby-forum.com/u/devrubygem)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 11:57pm UTC](https://www.ruby-forum.com/t/placing-orders-using-rails/167916 "2009-05-13T23:57:17Z")

</div>

I’m in my three months process of learning rails, and have some questions on a project that I have intentions to work on. In my web app I want users to be able to login place however many orders using credit card info…

---

## [Sharing sessions across rails apps 2.3.2](https://www.ruby-forum.com/t/sharing-sessions-across-rails-apps-2-3-2/167897)

<div class="topic-metadata">

**Author:** [@biot023](https://www.ruby-forum.com/u/biot023)\
**Replies:** 8\
**Last updated:** [May 13, 2009, 11:32pm UTC](https://www.ruby-forum.com/t/sharing-sessions-across-rails-apps-2-3-2/167897 "2009-05-13T23:32:24Z")

</div>

I’ve done this in 2.2, but cannot figure it out for 2.3.2: Basically, I want to be able to share session data across a couple of apps. The way I did this in 2.2 was to create a view called sessions in the second app …

---

## [Nested Models & Error Validation](https://www.ruby-forum.com/t/nested-models-error-validation/167915)

<div class="topic-metadata">

**Author:** [@willclarkdesigns](https://www.ruby-forum.com/u/willclarkdesigns)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 11:28pm UTC](https://www.ruby-forum.com/t/nested-models-error-validation/167915 "2009-05-13T23:28:13Z")

</div>

I have two models: User and MemberProfile class MemberProfile \< ActiveRecord::Base belongs\_to :user validates\_presence\_of :name #… end class User \< ActiveRecord::Base has\_one :member\_profile validates\_presence\_of…

---

## [Rails 2.3 and TimeZone](https://www.ruby-forum.com/t/rails-2-3-and-timezone/164303)

<div class="topic-metadata">

**Author:** [@suer\_rick](https://www.ruby-forum.com/u/suer_rick)\
**Replies:** 3\
**Last updated:** [May 13, 2009, 11:14pm UTC](https://www.ruby-forum.com/t/rails-2-3-and-timezone/164303 "2009-05-13T23:14:56Z")

</div>

My rails 2.3 app is interpreting times retrieved from the database as local (in my case, Eastern) instead of UTC. I created a test table in a SQL Server database with one row. The table is called events and contains…

---

## [Canonical Way/Method to Add/Merge Query Parameters onto URL](https://www.ruby-forum.com/t/canonical-way-method-to-add-merge-query-parameters-onto-url/167909)

<div class="topic-metadata">

**Author:** [@kendall](https://www.ruby-forum.com/u/kendall)\
**Replies:** 2\
**Last updated:** [May 13, 2009, 10:59pm UTC](https://www.ruby-forum.com/t/canonical-way-method-to-add-merge-query-parameters-onto-url/167909 "2009-05-13T22:59:03Z")

</div>

Hi, I’ve done some searching but haven’t yet found if there is a “correct” way to do this. I have an existing URL (generated, for example, by a call to one of my named-route’s helpers: login\_url). I may (or may not) h…

---

## [How to kill / abort rails on windows](https://www.ruby-forum.com/t/how-to-kill-abort-rails-on-windows/167904)

<div class="topic-metadata">

**Author:** [@guusz](https://www.ruby-forum.com/u/guusz)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/how-to-kill-abort-rails-on-windows/167904 "2009-05-13T21:45:52Z")

</div>

Hi, I have a number of rails servers running on windows as a single service (written in C#) and would like to terminate all processes when the service is stopped. The windows C# way is to use Process.abort(), but it …

---

## [Cucumber + Selenium: Programmatically Starting a Test Server](https://www.ruby-forum.com/t/cucumber-selenium-programmatically-starting-a-test-server/167907)

<div class="topic-metadata">

**Author:** [@Aaron\_Carlton](https://www.ruby-forum.com/u/Aaron_Carlton)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 9:45pm UTC](https://www.ruby-forum.com/t/cucumber-selenium-programmatically-starting-a-test-server/167907 "2009-05-13T21:45:52Z")

</div>

Hi All, I am trying to learn BDD using the Cucumber framework, and am integrating Selenium for client side tests. I’ve been playing with refactoring my cucumber installation a bit, and have pulled the code to start …

---

## [Has\_many :through and scopes: how to mutate the set of associated objects?](https://www.ruby-forum.com/t/has-many-through-and-scopes-how-to-mutate-the-set-of-associated-objects/167734)

<div class="topic-metadata">

**Author:** [@wickie](https://www.ruby-forum.com/u/wickie)\
**Replies:** 4\
**Last updated:** [May 13, 2009, 8:48pm UTC](https://www.ruby-forum.com/t/has-many-through-and-scopes-how-to-mutate-the-set-of-associated-objects/167734 "2009-05-13T20:48:41Z")

</div>

I have a model layer containing Movie, Person, Role, and RoleType, making it possible to express facts such as “Clint Easterbunny is director of the movie Gran Milano”. The relevant model and associations look like th…

---

## [Dynamic table names for AR models](https://www.ruby-forum.com/t/dynamic-table-names-for-ar-models/167832)

<div class="topic-metadata">

**Author:** [@moredip](https://www.ruby-forum.com/u/moredip)\
**Replies:** 9\
**Last updated:** [May 13, 2009, 8:46pm UTC](https://www.ruby-forum.com/t/dynamic-table-names-for-ar-models/167832 "2009-05-13T20:46:23Z")

</div>

Hi All, I have an interesting Active Record problem and I’m not quite sure what the cleanest solution is. The legacy database that I am integrating with has a strange wrinkle in its schema where one logical table has …

---

## [Setting a boolean to false in a before\_create callback](https://www.ruby-forum.com/t/setting-a-boolean-to-false-in-a-before-create-callback/167830)

<div class="topic-metadata">

**Author:** [@solidgumby](https://www.ruby-forum.com/u/solidgumby)\
**Replies:** 4\
**Last updated:** [May 13, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/setting-a-boolean-to-false-in-a-before-create-callback/167830 "2009-05-13T19:40:40Z")

</div>

Has anyone ever had trouble doing this? Whenever I try to do so, it doesn’t seem to work: in my model: before\_create :set\_defaults def set\_defaults self.submitted = false end in my rspec test: it "Shoul…

---

## [MySQL Text type failure](https://www.ruby-forum.com/t/mysql-text-type-failure/167810)

<div class="topic-metadata">

**Author:** [@JannaB](https://www.ruby-forum.com/u/JannaB)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/mysql-text-type-failure/167810 "2009-05-13T19:13:19Z")

</div>

This is very peculiar – I am using (I am using MySQL 5.0.27- community) If I create a table with the following schema… CREATE TABLE associates ( id int(11) NOT NULL auto\_increment, username varchar(16) NOT NULL defa…

---

## [Tabbed Navigation with Secondary Nav and Auth](https://www.ruby-forum.com/t/tabbed-navigation-with-secondary-nav-and-auth/167898)

<div class="topic-metadata">

**Author:** [@Mark\_ASRichman](https://www.ruby-forum.com/u/Mark_ASRichman)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 6:58pm UTC](https://www.ruby-forum.com/t/tabbed-navigation-with-secondary-nav-and-auth/167898 "2009-05-13T18:58:37Z")

</div>

Anyone know of a good tabbed navigation plugin that works with secondary navigation? i.e. http://developer.yahoo.com/ypatterns/examples/tabs.html Ideally, it will integrate with Authlogic. Thanks, Mark

---

## [Backgroundrb launched 8 workers via cron which I did not understand](https://www.ruby-forum.com/t/backgroundrb-launched-8-workers-via-cron-which-i-did-not-understand/167889)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 1\
**Last updated:** [May 13, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/backgroundrb-launched-8-workers-via-cron-which-i-did-not-understand/167889 "2009-05-13T18:33:22Z")

</div>

I have a worker my\_tree worker as shown in my backgroundrb.yml file below. I played around with the trigger\_args setting which I had it calling update\_main\_tree() every 1 minute. This opens a tree structure in my db …

---

## [Using adobe contribute on a rails project](https://www.ruby-forum.com/t/using-adobe-contribute-on-a-rails-project/167876)

<div class="topic-metadata">

**Author:** [@spacechurro](https://www.ruby-forum.com/u/spacechurro)\
**Replies:** 6\
**Last updated:** [May 13, 2009, 5:29pm UTC](https://www.ruby-forum.com/t/using-adobe-contribute-on-a-rails-project/167876 "2009-05-13T17:29:49Z")

</div>

we are currently trying to allow one of our clients to access and edit some html files on their site via adobe’s contribute. the files live in the public directory of the rails site, and it seems like there is a probl…

---

## [Order numbers by value](https://www.ruby-forum.com/t/order-numbers-by-value/167886)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 2\
**Last updated:** [May 13, 2009, 5:26pm UTC](https://www.ruby-forum.com/t/order-numbers-by-value/167886 "2009-05-13T17:26:54Z")

</div>

I have this drop-down that get populated with “stuff.” As I have recently found out, this “stuff” will either be all string values or all numerical values. I have the string values being ordered correctly but the nume…

---

## [Getting and setting ruby tags in controller](https://www.ruby-forum.com/t/getting-and-setting-ruby-tags-in-controller/167884)

<div class="topic-metadata">

**Author:** [@hamidraza](https://www.ruby-forum.com/u/hamidraza)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 5:01pm UTC](https://www.ruby-forum.com/t/getting-and-setting-ruby-tags-in-controller/167884 "2009-05-13T17:01:11Z")

</div>

I want to access the divs in the controller and want to change its attributes , is it possible in ruby on rails. plz help me out…

---

## [Application design : background process](https://www.ruby-forum.com/t/application-design-background-process/167878)

<div class="topic-metadata">

**Author:** [@scudco](https://www.ruby-forum.com/u/scudco)\
**Replies:** 3\
**Last updated:** [May 13, 2009, 5:00pm UTC](https://www.ruby-forum.com/t/application-design-background-process/167878 "2009-05-13T17:00:27Z")

</div>

Hi im making a simple app which takes a users search term and scrapes several sites rss feeds for relevant results. The scrape can take upto 10seconds. I want to make this a background process so I can update the user…

---

## [Deleting Sessions with no logout](https://www.ruby-forum.com/t/deleting-sessions-with-no-logout/167714)

<div class="topic-metadata">

**Author:** [@snantz](https://www.ruby-forum.com/u/snantz)\
**Replies:** 6\
**Last updated:** [May 13, 2009, 4:58pm UTC](https://www.ruby-forum.com/t/deleting-sessions-with-no-logout/167714 "2009-05-13T16:58:40Z")

</div>

HI all, I have an app that has a admin side and a user side. The users logging into the admin side can view and edit profile, if need be, on the user side. However, the user has three types: admin, travel manager, and …

---

## [Implementing ruby-openid 2.1.6 using TDD](https://www.ruby-forum.com/t/implementing-ruby-openid-2-1-6-using-tdd/167786)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 4\
**Last updated:** [May 13, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/implementing-ruby-openid-2-1-6-using-tdd/167786 "2009-05-13T16:45:44Z")

</div>

I’m trying to implement ruby-openid 2.1.6 using TDD. Many of the resources I’ve been using to research the plugin open\_id\_authentication and RESTful-authentication were written back in 2007 and don’t work, and also do…

---

## [Selenium - tips for avoiding a hundred fixture files](https://www.ruby-forum.com/t/selenium-tips-for-avoiding-a-hundred-fixture-files/167873)

<div class="topic-metadata">

**Author:** [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Replies:** 4\
**Last updated:** [May 13, 2009, 4:37pm UTC](https://www.ruby-forum.com/t/selenium-tips-for-avoiding-a-hundred-fixture-files/167873 "2009-05-13T16:37:18Z")

</div>

I’ve just started using Selenium with Rspec and it’s working well so far. However, i’m testing it against my local development version of the site (ie running in mongrel). What i really need to do is run it in a tes…

---

## [Grouping in tables](https://www.ruby-forum.com/t/grouping-in-tables/167881)

<div class="topic-metadata">

**Author:** [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 4:18pm UTC](https://www.ruby-forum.com/t/grouping-in-tables/167881 "2009-05-13T16:18:03Z")

</div>

I have an app which uses ActiveResource to get data from a non-Rails client. One of the things it has to do is display that data in a webpage, with subtotals by week. What’s an easy way to break up a collection of ARe…

---

## [Problem with mongrel server (FC8) :](https://www.ruby-forum.com/t/problem-with-mongrel-server-fc8/167882)

<div class="topic-metadata">

**Author:** [@aPpLe](https://www.ruby-forum.com/u/aPpLe)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/problem-with-mongrel-server-fc8/167882 "2009-05-13T16:09:53Z")

</div>

Hi, I have some problem with mongrel server. While I am trying access http://localhost:3000, getting the following error message mongrel\_rails start \*\* Starting Mongrel listening at 0.0.0.0:3000 \*\* Starting Rails …

---

## [\[ANN\] Blue Ridge 1.0: JavaScript Unit Testing for Rails](https://www.ruby-forum.com/t/ann-blue-ridge-1-0-javascript-unit-testing-for-rails/167880)

<div class="topic-metadata">

**Author:** [@Jason\_Rudolph](https://www.ruby-forum.com/u/Jason_Rudolph)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 4:09pm UTC](https://www.ruby-forum.com/t/ann-blue-ridge-1-0-javascript-unit-testing-for-rails/167880 "2009-05-13T16:09:53Z")

</div>

Blue Ridge 1.0 has been released! Blue Ridge by Relevance, http://thinkrelevance.com Blue Ridge is a JavaScript testing plugin for Rails. It provides support for both command-line and in-browser JavaScript unit test…

---

## [Counting](https://www.ruby-forum.com/t/counting/167877)

<div class="topic-metadata">

**Author:** [@remco](https://www.ruby-forum.com/u/remco)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 4:03pm UTC](https://www.ruby-forum.com/t/counting/167877 "2009-05-13T16:03:14Z")

</div>

Hi, I generate and download a cvs from my (HBX)stats-tool. The data is campaign-history value for tracking the hisitory of campaigns Campaign-history Orders Direct 4 Direct~Direct 6 adw…

---

## [How to ultimately override rails headers?](https://www.ruby-forum.com/t/how-to-ultimately-override-rails-headers/167871)

<div class="topic-metadata">

**Author:** [@qertoip](https://www.ruby-forum.com/u/qertoip)\
**Replies:** 0\
**Last updated:** [May 13, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/how-to-ultimately-override-rails-headers/167871 "2009-05-13T14:50:58Z")

</div>

How to ultimately override any/all rails headers, including X-Runtime, Set-Cookie, etc. As you know, standard response.headers\[“Set-Cookie”\] = ‘’ in after\_filter will often not work, as rails overrides some headers. T…

---

## [Updtade 2.2.2 to 2.3.2](https://www.ruby-forum.com/t/updtade-2-2-2-to-2-3-2/167865)

<div class="topic-metadata">

**Author:** [@giga](https://www.ruby-forum.com/u/giga)\
**Replies:** 2\
**Last updated:** [May 13, 2009, 2:49pm UTC](https://www.ruby-forum.com/t/updtade-2-2-2-to-2-3-2/167865 "2009-05-13T14:49:55Z")

</div>

How can I updated my rails 2.2.2 project to 2.3.2? Chane RAILS\_GEM\_VERSION = ‘2.3.2’ and ???

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

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