# Rails

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

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

---

## [\[ANN\] Lun - Free Commenting Service for Any Web Pages](https://www.ruby-forum.com/t/ann-lun-free-commenting-service-for-any-web-pages/156063)

<div class="topic-metadata">

**Author:** [@rp8](https://www.ruby-forum.com/u/rp8)\
**Replies:** 1\
**Last updated:** [December 21, 2008, 3:43am UTC](https://www.ruby-forum.com/t/ann-lun-free-commenting-service-for-any-web-pages/156063 "2008-12-21T03:43:38Z")

</div>

Hi, We have launched a free service, Lun - http://lun.competo.com, to provide commenting interactions to any web pages with static or dynamic contents. It’s built on Rail 2.2.2. Plus it provides: Latest comments, Top…

---

## [Locally Update InstantRails-2.0-win to support rails 2.2.2](https://www.ruby-forum.com/t/locally-update-instantrails-2-0-win-to-support-rails-2-2-2/156093)

<div class="topic-metadata">

**Author:** [@the\_guru](https://www.ruby-forum.com/u/the_guru)\
**Replies:** 3\
**Last updated:** [December 20, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/locally-update-instantrails-2-0-win-to-support-rails-2-2-2/156093 "2008-12-20T23:39:06Z")

</div>

Locally Update InstantRails-2.0-win to support rails 2.2.2. Before everything I want point something that all the blogs and forums shows how to install rails from remote server. But this is boring for people on the sl…

---

## [Can ruby on rails form read data from sessions?](https://www.ruby-forum.com/t/can-ruby-on-rails-form-read-data-from-sessions/156118)

<div class="topic-metadata">

**Author:** [@lucy](https://www.ruby-forum.com/u/lucy)\
**Replies:** 0\
**Last updated:** [December 20, 2008, 11:10pm UTC](https://www.ruby-forum.com/t/can-ruby-on-rails-form-read-data-from-sessions/156118 "2008-12-20T23:10:22Z")

</div>

Dear all: I know date form can read the date values from Active Object, but i am not sure it can show the date values from sessions? Thanks

---

## [Rake aborted (wrong number of arguments)](https://www.ruby-forum.com/t/rake-aborted-wrong-number-of-arguments/156077)

<div class="topic-metadata">

**Author:** [@ryanoverton](https://www.ruby-forum.com/u/ryanoverton)\
**Replies:** 3\
**Last updated:** [December 20, 2008, 10:04pm UTC](https://www.ruby-forum.com/t/rake-aborted-wrong-number-of-arguments/156077 "2008-12-20T22:04:44Z")

</div>

I’m following a tutorial here to get some columns in my database. I generated a model called ‘product’ then I edited ‘db/001\_create\_products.rb’ to have a few columns but when I try to migrate I get this error: bio40…

---

## [Running background jobs](https://www.ruby-forum.com/t/running-background-jobs/156109)

<div class="topic-metadata">

**Author:** [@thabenksta](https://www.ruby-forum.com/u/thabenksta)\
**Replies:** 1\
**Last updated:** [December 20, 2008, 8:00pm UTC](https://www.ruby-forum.com/t/running-background-jobs/156109 "2008-12-20T20:00:42Z")

</div>

How are most of you running background jobs in Rails? I was reading this and considering going with script/runner but wanted to do an informal poll here: http://wiki.rubyonrails.org/rails/pages/HowToRunBackgroundJobsI…

---

## [API versioning strategy](https://www.ruby-forum.com/t/api-versioning-strategy/155690)

<div class="topic-metadata">

**Author:** [@zaczheng](https://www.ruby-forum.com/u/zaczheng)\
**Replies:** 2\
**Last updated:** [December 20, 2008, 7:43pm UTC](https://www.ruby-forum.com/t/api-versioning-strategy/155690 "2008-12-20T19:43:49Z")

</div>

I am developing a service to be accessed within a browser and via API. I am not sure what the best practise for API versioning is. AdWords API split into major version by URI mutilation: /v1, /v2 etc. My current thoug…

---

## [RoR deployment and maintenance](https://www.ruby-forum.com/t/ror-deployment-and-maintenance/155944)

<div class="topic-metadata">

**Author:** [@krishna](https://www.ruby-forum.com/u/krishna)\
**Replies:** 5\
**Last updated:** [December 20, 2008, 6:17pm UTC](https://www.ruby-forum.com/t/ror-deployment-and-maintenance/155944 "2008-12-20T18:17:28Z")

</div>

Hi, I have a developed and working RoR prototype. So far its been mostly in development mode environment and under script/server on windows .I want to move it to a hosting server and continue development. Whats the …

---

## [mySQL newbie seek help with db indexing](https://www.ruby-forum.com/t/mysql-newbie-seek-help-with-db-indexing/156082)

<div class="topic-metadata">

**Author:** [@jeffpritchard](https://www.ruby-forum.com/u/jeffpritchard)\
**Replies:** 4\
**Last updated:** [December 20, 2008, 5:45pm UTC](https://www.ruby-forum.com/t/mysql-newbie-seek-help-with-db-indexing/156082 "2008-12-20T17:45:35Z")

</div>

Hi, I don’t quite understand the syntax for database indexes and/or how the work to help speed up specific database searches. Can somebody suggest a set of indexs that would make this set of queries go faster? Conta…

---

## [Activewebservice and RoR 2.2.2](https://www.ruby-forum.com/t/activewebservice-and-ror-2-2-2/156092)

<div class="topic-metadata">

**Author:** [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Replies:** 1\
**Last updated:** [December 20, 2008, 1:09pm UTC](https://www.ruby-forum.com/t/activewebservice-and-ror-2-2-2/156092 "2008-12-20T13:09:55Z")

</div>

While I’m thrilled about REST, I still need to interface with the real world, and SOAP is unfortunately a necessary API interface for my upcoming application. What is the status of Activewebservice? Are people using …

---

## [Avoiding Clutter in views](https://www.ruby-forum.com/t/avoiding-clutter-in-views/155551)

<div class="topic-metadata">

**Author:** [@Rishav\_Rastogi](https://www.ruby-forum.com/u/Rishav_Rastogi)\
**Replies:** 6\
**Last updated:** [December 20, 2008, 12:03pm UTC](https://www.ruby-forum.com/t/avoiding-clutter-in-views/155551 "2008-12-20T12:03:10Z")

</div>

Hi, I have seen that when using rails for big applications especially the ones with a lot of dynamic content. for example: profile pages in social network apps, newspaper websites etc. The Views in such rails apps …

---

## [Legacy database: help needed](https://www.ruby-forum.com/t/legacy-database-help-needed/156038)

<div class="topic-metadata">

**Author:** [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Replies:** 4\
**Last updated:** [December 20, 2008, 11:45am UTC](https://www.ruby-forum.com/t/legacy-database-help-needed/156038 "2008-12-20T11:45:01Z")

</div>

Sorry if the message below appears twice. Posted it to rubyonrails-talk at google over an hour ago, but have not seen the message appear yet… I am “new” to Ruby and Rails and jumping right in. That’s for me the best w…

---

## [Issues With New Site](https://www.ruby-forum.com/t/issues-with-new-site/156048)

<div class="topic-metadata">

**Author:** [@rpierry](https://www.ruby-forum.com/u/rpierry)\
**Replies:** 3\
**Last updated:** [December 20, 2008, 8:24am UTC](https://www.ruby-forum.com/t/issues-with-new-site/156048 "2008-12-20T08:24:27Z")

</div>

Hi, I am using Ruby on Rails to create a new site. On every page, I want to have a log in box. I also want to display the latest 5 news items on all the pages as well. How could I go around this? Is it possible to ha…

---

## [Problem with Regular Expression](https://www.ruby-forum.com/t/problem-with-regular-expression/156054)

<div class="topic-metadata">

**Author:** [@rubylicious](https://www.ruby-forum.com/u/rubylicious)\
**Replies:** 6\
**Last updated:** [December 20, 2008, 8:04am UTC](https://www.ruby-forum.com/t/problem-with-regular-expression/156054 "2008-12-20T08:04:35Z")

</div>

Why would the following regular expression produce the results below? \*\*\*\*input: john,doe,“1,200.99”,training,12345 \*\*code executed on input: values = line.split(/("\\d,\\d+.\\d")|,/) \*\*\*\*output: \[“john”,“doe”,"",“1,2…

---

## [Paperclip plugins installation on netbeans](https://www.ruby-forum.com/t/paperclip-plugins-installation-on-netbeans/156085)

<div class="topic-metadata">

**Author:** [@johny](https://www.ruby-forum.com/u/johny)\
**Replies:** 0\
**Last updated:** [December 20, 2008, 7:54am UTC](https://www.ruby-forum.com/t/paperclip-plugins-installation-on-netbeans/156085 "2008-12-20T07:54:30Z")

</div>

help pls i have trouble on installation of paperclip plugins on windows os.i’m using netbeans 6.5 , ruby 1.8.6,gems 1.2,rails 2.1,apache 2.2 and mysql.

---

## [mySQL setup - I'm losing it here](https://www.ruby-forum.com/t/mysql-setup-im-losing-it-here/156051)

<div class="topic-metadata">

**Author:** [@ryanoverton](https://www.ruby-forum.com/u/ryanoverton)\
**Replies:** 17\
**Last updated:** [December 20, 2008, 7:26am UTC](https://www.ruby-forum.com/t/mysql-setup-im-losing-it-here/156051 "2008-12-20T07:26:00Z")

</div>

Newbie here (who else.) I feel confident I can excel in the actual programming of rails apps. But all the tutorials just glaze over mySQL which seems to me, by far, the most problematic area for new users. I have tri…

---

## [Processing uploaded XML file](https://www.ruby-forum.com/t/processing-uploaded-xml-file/156052)

<div class="topic-metadata">

**Author:** [@marc](https://www.ruby-forum.com/u/marc)\
**Replies:** 2\
**Last updated:** [December 20, 2008, 6:55am UTC](https://www.ruby-forum.com/t/processing-uploaded-xml-file/156052 "2008-12-20T06:55:00Z")

</div>

Hi all Sorry if this seems silly, only been learning Ruby and Rails for 2 weeks, though I have been programming since the Commodore 64 came out. I need to process an XML file once it is uploaded (currently using pape…

---

## [Upload image](https://www.ruby-forum.com/t/upload-image/156080)

<div class="topic-metadata">

**Author:** [@johny](https://www.ruby-forum.com/u/johny)\
**Replies:** 1\
**Last updated:** [December 20, 2008, 6:25am UTC](https://www.ruby-forum.com/t/upload-image/156080 "2008-12-20T06:25:45Z")

</div>

anyone have a code that upload image

---

## [Undefined method \`stories\_path'](https://www.ruby-forum.com/t/undefined-method-stories-path/156079)

<div class="topic-metadata">

**Author:** [@merrick](https://www.ruby-forum.com/u/merrick)\
**Replies:** 3\
**Last updated:** [December 20, 2008, 6:25am UTC](https://www.ruby-forum.com/t/undefined-method-stories-path/156079 "2008-12-20T06:25:09Z")

</div>

Hi, I recieve error “undefined method \`stories\_path’ for #ActionView::Base:0x995b4ac” when going to the view via site.com/stories/new The model is setup correctly, I can retrieve data from the db fine. I think it mi…

---

## [Can't get RedCloth to work properly with markitup](https://www.ruby-forum.com/t/cant-get-redcloth-to-work-properly-with-markitup/156081)

<div class="topic-metadata">

**Author:** [@chrisolsen](https://www.ruby-forum.com/u/chrisolsen)\
**Replies:** 0\
**Last updated:** [December 20, 2008, 6:15am UTC](https://www.ruby-forum.com/t/cant-get-redcloth-to-work-properly-with-markitup/156081 "2008-12-20T06:15:00Z")

</div>

For some reason RedCloth isn’t parsing things up properly. For some reason it doesn’t end the header tags on line breaks. I am using RedCloth 3.0.4 and markitup is set to insert \\n\\n when enter is clicked. Is there …

---

## [Ultrasphinx: adding field\_name in search query](https://www.ruby-forum.com/t/ultrasphinx-adding-field-name-in-search-query/156021)

<div class="topic-metadata">

**Author:** [@veeraa2003](https://www.ruby-forum.com/u/veeraa2003)\
**Replies:** 1\
**Last updated:** [December 20, 2008, 5:41am UTC](https://www.ruby-forum.com/t/ultrasphinx-adding-field-name-in-search-query/156021 "2008-12-20T05:41:49Z")

</div>

Hi all, I want to search for a keyword in a particular field, for example say I want to search for the keyword “rails” in the field title so how can I include the field\_name in query string. s=Ultrasphinx::Search.new…

---

## [TemplateHandler Changes from 2.1 to 2.2](https://www.ruby-forum.com/t/templatehandler-changes-from-2-1-to-2-2/153245)

<div class="topic-metadata">

**Author:** [@brady8](https://www.ruby-forum.com/u/brady8)\
**Replies:** 12\
**Last updated:** [December 20, 2008, 5:40am UTC](https://www.ruby-forum.com/t/templatehandler-changes-from-2-1-to-2-2/153245 "2008-12-20T05:40:10Z")

</div>

I’ve been attempting to get the prawnto (template wrapper around “prawn”, a native ruby PDF generator) working under Rails 2.2. Repo is here: http://github.com/thorny-sun/prawnto/tree/master To start off, I set it up …

---

## [Changing a column name with migration failed](https://www.ruby-forum.com/t/changing-a-column-name-with-migration-failed/156078)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 2\
**Last updated:** [December 20, 2008, 5:15am UTC](https://www.ruby-forum.com/t/changing-a-column-name-with-migration-failed/156078 "2008-12-20T05:15:37Z")

</div>

Hi All, I had a column-name “changed” that I wanted to replaced with “accessed”. I tried: class ModifyChangedAttribute \< ActiveRecord::Migration def self.up rename\_column(:csvs, :created, :accessed) end def self.…

---

## [Which Sphinx Plugin?](https://www.ruby-forum.com/t/which-sphinx-plugin/155903)

<div class="topic-metadata">

**Author:** [@tashfeen.ekram](https://www.ruby-forum.com/u/tashfeen.ekram)\
**Replies:** 5\
**Last updated:** [December 20, 2008, 4:16am UTC](https://www.ruby-forum.com/t/which-sphinx-plugin/155903 "2008-12-20T04:16:00Z")

</div>

I was wondering if someone could advise me on which sphinx plugin to use. the ones i have found are below: Sphincter: http://seattlerb.rubyforge.org/Sphincter/ acts\_as\_sphinx: DATANOISE.COM thinking\_sphinx: http://t…

---

## [When to use #show action in RESTful application](https://www.ruby-forum.com/t/when-to-use-show-action-in-restful-application/155908)

<div class="topic-metadata">

**Author:** [@oldbug](https://www.ruby-forum.com/u/oldbug)\
**Replies:** 9\
**Last updated:** [December 20, 2008, 3:17am UTC](https://www.ruby-forum.com/t/when-to-use-show-action-in-restful-application/155908 "2008-12-20T03:17:26Z")

</div>

I am curious what folks do with the #show action (and its associated view) in a RESTful application. How often is it used? It seems to me that, for the sorts of applications I can envision, it probably wouldn’t be u…

---

## [Help with counter\_cache](https://www.ruby-forum.com/t/help-with-counter-cache/155990)

<div class="topic-metadata">

**Author:** [@skirkpatrick](https://www.ruby-forum.com/u/skirkpatrick)\
**Replies:** 11\
**Last updated:** [December 20, 2008, 2:12am UTC](https://www.ruby-forum.com/t/help-with-counter-cache/155990 "2008-12-20T02:12:45Z")

</div>

I have two models: Items -id -name -created\_by (links to user id) … Users -id -name -items\_count … item.rb: belongs\_to :user, :class\_name =\> ‘User’, :foreign\_key =\> ‘created\_by’, :counter\_cache =\> true user…

---

## [DB export, then import](https://www.ruby-forum.com/t/db-export-then-import/152085)

<div class="topic-metadata">

**Author:** [@thithi32](https://www.ruby-forum.com/u/thithi32)\
**Replies:** 6\
**Last updated:** [December 20, 2008, 1:40am UTC](https://www.ruby-forum.com/t/db-export-then-import/152085 "2008-12-20T01:40:12Z")

</div>

Hi, I’m developping a little application on my computer (Windows Vista). It works. I did put it on my Unix server (production) and started the ruby server. It works fine. But of course there’s no data :). How can I…

---

## [Best way to edit associated models?](https://www.ruby-forum.com/t/best-way-to-edit-associated-models/156071)

<div class="topic-metadata">

**Author:** [@gracei](https://www.ruby-forum.com/u/gracei)\
**Replies:** 0\
**Last updated:** [December 20, 2008, 12:37am UTC](https://www.ruby-forum.com/t/best-way-to-edit-associated-models/156071 "2008-12-20T00:37:46Z")

</div>

What is a good way to edit associated models? I am continuing a work project started by another. The schema doesn’t seem unreasonable. But it is pre-existing and I don’t yet have a reason to change it. For example: …

---

## [Ruby vs. RubyOnRails compatibility matrix?](https://www.ruby-forum.com/t/ruby-vs-rubyonrails-compatibility-matrix/156061)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 4\
**Last updated:** [December 20, 2008, 12:34am UTC](https://www.ruby-forum.com/t/ruby-vs-rubyonrails-compatibility-matrix/156061 "2008-12-20T00:34:51Z")

</div>

Hello, I’m looking for some compatibility matrix between specific versions of Ruby (like 1.8.5, 1.8.6…) and specific versions of Rails (like 1.1.6, 1.2.2 etc). I’m in a position where I’ll have to upgrade Ruby (to 1.…

---

## [Setting a CSS class on select helper](https://www.ruby-forum.com/t/setting-a-css-class-on-select-helper/156066)

<div class="topic-metadata">

**Author:** [@dan](https://www.ruby-forum.com/u/dan)\
**Replies:** 3\
**Last updated:** [December 20, 2008, 12:28am UTC](https://www.ruby-forum.com/t/setting-a-css-class-on-select-helper/156066 "2008-12-20T00:28:55Z")

</div>

Hi, I’m trying to put a css class on a dropdown box built using a select helper (to make it wider) but I can’t get it to take. I thought for sure, and from what I’ve seen elsewhere, this code should work: \<%= f.sele…

---

## [Validator not quite working](https://www.ruby-forum.com/t/validator-not-quite-working/156072)

<div class="topic-metadata">

**Author:** [@lynchnco](https://www.ruby-forum.com/u/lynchnco)\
**Replies:** 0\
**Last updated:** [December 20, 2008, 12:26am UTC](https://www.ruby-forum.com/t/validator-not-quite-working/156072 "2008-12-20T00:26:44Z")

</div>

Hi guys, I’m trying to get the form validator to work - and it almost does. What happens, I believe, is that it throws the error properly, but it never makes it back to the page to post the error. Instead, it kind of …

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

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