# Rails

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

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

---

## [Text\_field as date](https://www.ruby-forum.com/t/text-field-as-date/168700)

<div class="topic-metadata">

**Author:** [@pink-ink](https://www.ruby-forum.com/u/pink-ink)\
**Replies:** 0\
**Last updated:** [May 24, 2009, 4:54pm UTC](https://www.ruby-forum.com/t/text-field-as-date/168700 "2009-05-24T16:54:30Z")

</div>

Hi Ruby Comuniy! I have implemented i18n and when I set the locale to “de” everthing works fine, I mean date\_select shows the german date-format. The problem is, that I want to use a text\_field for date-input like: \<%…

---

## [Why does form\_for @story has to have Story as RESTful](https://www.ruby-forum.com/t/why-does-form-for-story-has-to-have-story-as-restful/168697)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 1\
**Last updated:** [May 24, 2009, 4:45pm UTC](https://www.ruby-forum.com/t/why-does-form-for-story-has-to-have-story-as-restful/168697 "2009-05-24T16:45:42Z")

</div>

it seems that when we use form\_for @story do |f| then Story has to be a RESTful resource and it has to be map.resources :stories in the routes.rb? can Story be not RESTful? Can it be a form for non-RESTful data?

---

## [Does map.resources :stories immediately make Story RESTful?](https://www.ruby-forum.com/t/does-map-resources-stories-immediately-make-story-restful/168695)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 0\
**Last updated:** [May 24, 2009, 3:45pm UTC](https://www.ruby-forum.com/t/does-map-resources-stories-immediately-make-story-restful/168695 "2009-05-24T15:45:17Z")

</div>

I was reading Simply Rails by Patrick Lenz… maybe I missed something, it seems that whenever we put map.resources :stories in routes.rb then immediately, the controller will have special conventions and now Story is…

---

## [Why do we use form\_for @story do |f| when there is no loop?](https://www.ruby-forum.com/t/why-do-we-use-form-for-story-do-f-when-there-is-no-loop/168689)

<div class="topic-metadata">

**Author:** [@winterheat](https://www.ruby-forum.com/u/winterheat)\
**Replies:** 4\
**Last updated:** [May 24, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/why-do-we-use-form-for-story-do-f-when-there-is-no-loop/168689 "2009-05-24T15:05:56Z")

</div>

we use (1…10).each do |i| p i end so that a value is “yield” to i in a block… but what about \<% form\_for @story do |f| %\> \<%= f.text\_field %\> \<% end %\> there is no loop at all… why do we need to make it look lik…

---

## [AJAX based chat plugin (beta)](https://www.ruby-forum.com/t/ajax-based-chat-plugin-beta/168121)

<div class="topic-metadata">

**Author:** [@gerda](https://www.ruby-forum.com/u/gerda)\
**Replies:** 11\
**Last updated:** [May 24, 2009, 12:05pm UTC](https://www.ruby-forum.com/t/ajax-based-chat-plugin-beta/168121 "2009-05-24T12:05:22Z")

</div>

Sorry for my bad English because there isn’t an AJAX chat for rails i started to build a very simple AJAX chat, meant for use with a small amount of users. This is the first BETA i release so there are some bugs and t…

---

## [How to integrate Google adsense?](https://www.ruby-forum.com/t/how-to-integrate-google-adsense/168686)

<div class="topic-metadata">

**Author:** [@Great\_Kindness](https://www.ruby-forum.com/u/Great_Kindness)\
**Replies:** 0\
**Last updated:** [May 24, 2009, 10:35am UTC](https://www.ruby-forum.com/t/how-to-integrate-google-adsense/168686 "2009-05-24T10:35:00Z")

</div>

I was surprised to see not much on the web about integrating Google AdSense into Rails apps. I found this post: but the meat of that post is a link to a file that doesn’t exist any more. Can anyone direct me to some…

---

## [Protect\_from\_forgery issue](https://www.ruby-forum.com/t/protect-from-forgery-issue/168683)

<div class="topic-metadata">

**Author:** [@philswenson](https://www.ruby-forum.com/u/philswenson)\
**Replies:** 0\
**Last updated:** [May 24, 2009, 9:23am UTC](https://www.ruby-forum.com/t/protect-from-forgery-issue/168683 "2009-05-24T09:23:12Z")

</div>

Hi, I just redeployed my app for a very minor source code change and now I am getting these errors: No :secret given to the #protect\_from\_forgery call for a page that has a remote\_form\_for on it. Why would this cha…

---

## [How to pass parameters with remote\_function](https://www.ruby-forum.com/t/how-to-pass-parameters-with-remote-function/168668)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 12\
**Last updated:** [May 24, 2009, 7:11am UTC](https://www.ruby-forum.com/t/how-to-pass-parameters-with-remote-function/168668 "2009-05-24T07:11:17Z")

</div>

I cannot find a complete example of this on the web. Here’s what I’m trying to do: In a view I have a remote\_function call that right now looks like this: \<% @artists.each do |artist| %\> { :action =\> :list\_albums…

---

## [Opening database prompt based on database.yml](https://www.ruby-forum.com/t/opening-database-prompt-based-on-database-yml/168171)

<div class="topic-metadata">

**Author:** [@stephanwehner](https://www.ruby-forum.com/u/stephanwehner)\
**Replies:** 3\
**Last updated:** [May 24, 2009, 6:34am UTC](https://www.ruby-forum.com/t/opening-database-prompt-based-on-database-yml/168171 "2009-05-24T06:34:51Z")

</div>

Hello everybody, I wrote a script to open a database prompt based on the contents of database.yml See the rdb\_prompt directory under GitHub - stephanwehner/railsgoodies: Various goodies related to Ruby on Rails I fi…

---

## [Forms](https://www.ruby-forum.com/t/forms/168672)

<div class="topic-metadata">

**Author:** [@omar](https://www.ruby-forum.com/u/omar)\
**Replies:** 1\
**Last updated:** [May 24, 2009, 1:15am UTC](https://www.ruby-forum.com/t/forms/168672 "2009-05-24T01:15:41Z")

</div>

I have a readonly field in a form. Is there a way not to show the box around that field? Thanks for your help

---

## [Re: Pair Programming (WAS: Have opening for ROR engineers)](https://www.ruby-forum.com/t/re-pair-programming-was-have-opening-for-ror-engineers/168660)

<div class="topic-metadata">

**Author:** [@Hassan\_S](https://www.ruby-forum.com/u/Hassan_S)\
**Replies:** 3\
**Last updated:** [May 23, 2009, 11:16pm UTC](https://www.ruby-forum.com/t/re-pair-programming-was-have-opening-for-ror-engineers/168660 "2009-05-23T23:16:10Z")

</div>

On Sat, May 23, 2009 at 7:42 AM, Phlip removed\_email\_address@domain.invalid wrote: (Y’all do practice Pair Programming, don’t you??) Nope. Never had the opportunity. You? :slight\_smile: It’s an interesting idea, w…

---

## [Is there any collabrative community content managemnt product available in ruby On Rails?](https://www.ruby-forum.com/t/is-there-any-collabrative-community-content-managemnt-product-available-in-ruby-on-rails/168627)

<div class="topic-metadata">

**Author:** [@RubyRed](https://www.ruby-forum.com/u/RubyRed)\
**Replies:** 5\
**Last updated:** [May 23, 2009, 10:49pm UTC](https://www.ruby-forum.com/t/is-there-any-collabrative-community-content-managemnt-product-available-in-ruby-on-rails/168627 "2009-05-23T22:49:33Z")

</div>

Is there any collabrative community content managemnt product(other than radiant CMS) available in ruby On Rails?. I need a software which can be used like drupal or joomla for a comminity of more than 10 k users to d…

---

## [Methodology question](https://www.ruby-forum.com/t/methodology-question/168658)

<div class="topic-metadata">

**Author:** [@mk27](https://www.ruby-forum.com/u/mk27)\
**Replies:** 7\
**Last updated:** [May 23, 2009, 10:22pm UTC](https://www.ruby-forum.com/t/methodology-question/168658 "2009-05-23T22:22:35Z")

</div>

Still learning, but it is getting easier by the minute :wink: I have a bunch of controllers (that correspond to db tables) and corresponding views. However, I want to use the views with link\_to\_remote into divs on a …

---

## [Problem with fetching of data](https://www.ruby-forum.com/t/problem-with-fetching-of-data/168638)

<div class="topic-metadata">

**Author:** [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Replies:** 5\
**Last updated:** [May 23, 2009, 10:21pm UTC](https://www.ruby-forum.com/t/problem-with-fetching-of-data/168638 "2009-05-23T22:21:16Z")

</div>

I want to know the number of ways in which I can fetch the data on a particular name from database, because I am getting invalid data, for the name with space such as “abc xyz”… It uses select \*from names where name=“…

---

## [Uninitialized constant RenameIssuedCodes error](https://www.ruby-forum.com/t/uninitialized-constant-renameissuedcodes-error/168667)

<div class="topic-metadata">

**Author:** [@rainyglade](https://www.ruby-forum.com/u/rainyglade)\
**Replies:** 1\
**Last updated:** [May 23, 2009, 9:43pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-renameissuedcodes-error/168667 "2009-05-23T21:43:47Z")

</div>

I have a series of migrations which I have used over the last 4 months without any problems. I have followed the pattern of deleting and recreating the tables, doing the migrations and then loading fixtures. This has…

---

## [Enforce an application constraint](https://www.ruby-forum.com/t/enforce-an-application-constraint/168619)

<div class="topic-metadata">

**Author:** [@coriordan](https://www.ruby-forum.com/u/coriordan)\
**Replies:** 6\
**Last updated:** [May 23, 2009, 8:24pm UTC](https://www.ruby-forum.com/t/enforce-an-application-constraint/168619 "2009-05-23T20:24:34Z")

</div>

Hi, In my app. I have the following set of models class Course \< ActiveRecord::Base has\_many :registrations has\_many :users, :through =\> :registrations end class User \< ActiveRecord::Base has\_many :registrations …

---

## [Models, mixins, and acts\_as](https://www.ruby-forum.com/t/models-mixins-and-acts-as/168670)

<div class="topic-metadata">

**Author:** [@jcernelli](https://www.ruby-forum.com/u/jcernelli)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 8:10pm UTC](https://www.ruby-forum.com/t/models-mixins-and-acts-as/168670 "2009-05-23T20:10:41Z")

</div>

I’m having a little trouble with a mixin. Here is the long and short, I am using a technique I found here: http://redcorundum.blogspot.com/2006/06/mixing-in-class-methods.html To be able to mixin class and instance …

---

## [Conditional Validation: only if a record can be found](https://www.ruby-forum.com/t/conditional-validation-only-if-a-record-can-be-found/168663)

<div class="topic-metadata">

**Author:** [@daborg69](https://www.ruby-forum.com/u/daborg69)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/conditional-validation-only-if-a-record-can-be-found/168663 "2009-05-23T18:55:37Z")

</div>

Hello! I have a guestlist page which lists tickets and a user can attache a guest to each ticket by using an auto complete form. If each ticket has a guest attached, then the guestlist is ‘full’ I have this rule in m…

---

## [Help with text replacement plugin](https://www.ruby-forum.com/t/help-with-text-replacement-plugin/168648)

<div class="topic-metadata">

**Author:** [@jdunneuk](https://www.ruby-forum.com/u/jdunneuk)\
**Replies:** 2\
**Last updated:** [May 23, 2009, 6:46pm UTC](https://www.ruby-forum.com/t/help-with-text-replacement-plugin/168648 "2009-05-23T18:46:50Z")

</div>

Hi guys, I thought of having a plugin which replaces text with the tag of an image (f.e. ‘read’ =\> ‘’) would be great. I started with to create this plugin, but I didn’t get far. Is there anyone who can help me with …

---

## [Help from Routing guru](https://www.ruby-forum.com/t/help-from-routing-guru/196963)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 3\
**Last updated:** [May 23, 2009, 6:41pm UTC](https://www.ruby-forum.com/t/help-from-routing-guru/196963 "2009-05-23T18:41:05Z")

</div>

using such route : map.namespace(:hubs) do |hub| hub.resources :settings, :member =\> { :general =\> :get } end I get : general\_hubs\_setting /hubs/settings/:id/general {:action=\>“general”, :controller=\>“hubs/s…

---

## [Where are the plugins installed through gems?](https://www.ruby-forum.com/t/where-are-the-plugins-installed-through-gems/168662)

<div class="topic-metadata">

**Author:** [@aupayo](https://www.ruby-forum.com/u/aupayo)\
**Replies:** 1\
**Last updated:** [May 23, 2009, 6:33pm UTC](https://www.ruby-forum.com/t/where-are-the-plugins-installed-through-gems/168662 "2009-05-23T18:33:29Z")

</div>

Hello, I installed a plugin as a GemPlugin and now I want to modify it, but I am unable to find it! Its somewhere in the system (not in vendor/plugins of my rails app), but I don’t remember where!! Thanks for your h…

---

## [JOBS - Have opening for ROR engineers](https://www.ruby-forum.com/t/jobs-have-opening-for-ror-engineers/168382)

<div class="topic-metadata">

**Author:** [@Doris](https://www.ruby-forum.com/u/Doris)\
**Replies:** 6\
**Last updated:** [May 23, 2009, 4:43pm UTC](https://www.ruby-forum.com/t/jobs-have-opening-for-ror-engineers/168382 "2009-05-23T16:43:38Z")

</div>

Hi All, I am looking for talented engineers with experince of around 4 - 6 years having hands on Ruby on Rails, Java, MySql or Flash. Work location will be Bangalore, India. If this sounds interesting please send acr…

---

## [Help from Routing guru](https://www.ruby-forum.com/t/help-from-routing-guru/168652)

<div class="topic-metadata">

**Author:** [@kadoudal](https://www.ruby-forum.com/u/kadoudal)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 4:04pm UTC](https://www.ruby-forum.com/t/help-from-routing-guru/168652 "2009-05-23T16:04:24Z")

</div>

using such route : map.namespace(:hubs) do |hub| hub.resources :settings, :member =\> { :general =\> :get } end I get : general\_hubs\_setting /hubs/settings/:id/general {:action=\>“general”, :controller=\>“hubs/s…

---

## [MMORPG in Rails](https://www.ruby-forum.com/t/mmorpg-in-rails/168641)

<div class="topic-metadata">

**Author:** [@jeremy](https://www.ruby-forum.com/u/jeremy)\
**Replies:** 1\
**Last updated:** [May 23, 2009, 4:01pm UTC](https://www.ruby-forum.com/t/mmorpg-in-rails/168641 "2009-05-23T16:01:29Z")

</div>

Hi I’m trying to make a simple browser based MMORPG in Rails for fun. One of the issues that I cannot resolve is how to architect several universes. For example, go to www.ogame.org and you will see that the user can …

---

## [How well does Rails handle brownfield data in a greenfield application?](https://www.ruby-forum.com/t/how-well-does-rails-handle-brownfield-data-in-a-greenfield-application/168580)

<div class="topic-metadata">

**Author:** [@wemagor](https://www.ruby-forum.com/u/wemagor)\
**Replies:** 5\
**Last updated:** [May 23, 2009, 12:59pm UTC](https://www.ruby-forum.com/t/how-well-does-rails-handle-brownfield-data-in-a-greenfield-application/168580 "2009-05-23T12:59:06Z")

</div>

Let me give an example: Say I have an e-commerce storefront with data that’s provided by a 3rd-party vendor, instead of just a handful of items that I’m selling myself (which seems to be the way most Rails e- commerc…

---

## [Who is using firebird 2.1.2?](https://www.ruby-forum.com/t/who-is-using-firebird-2-1-2/168646)

<div class="topic-metadata">

**Author:** [@mariarosaria](https://www.ruby-forum.com/u/mariarosaria)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/who-is-using-firebird-2-1-2/168646 "2009-05-23T12:30:14Z")

</div>

Have you problem with fb\_adapter on rails 2.3.2 + firebird2.1.2.18118 ?

---

## [Standard Way for Upload without Page Reload (aka Ajax Upload)](https://www.ruby-forum.com/t/standard-way-for-upload-without-page-reload-aka-ajax-upload/168644)

<div class="topic-metadata">

**Author:** [@Lailson\_B](https://www.ruby-forum.com/u/Lailson_B)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 12:05pm UTC](https://www.ruby-forum.com/t/standard-way-for-upload-without-page-reload-aka-ajax-upload/168644 "2009-05-23T12:05:00Z")

</div>

I’ve just entered to this group and this is my first message. Hello everybody! I know this seems to be a recurrent discussion, but as I couldn’t find any relevant discussion before 2007, I’m asking again: there is som…

---

## [Getting bleeding edge rails](https://www.ruby-forum.com/t/getting-bleeding-edge-rails/168535)

<div class="topic-metadata">

**Author:** [@builtbysimple](https://www.ruby-forum.com/u/builtbysimple)\
**Replies:** 5\
**Last updated:** [May 23, 2009, 12:04pm UTC](https://www.ruby-forum.com/t/getting-bleeding-edge-rails/168535 "2009-05-23T12:04:25Z")

</div>

Dear all, I would like to work on the latest rails version from github. I have pulled it and set my $GEM\_PATH to where I pulled it : /home/joshua/rails/ But when I worked on it, gem barfed out and did not recognize i…

---

## [Are these capistrano tasks being executed on all roles ?!?](https://www.ruby-forum.com/t/are-these-capistrano-tasks-being-executed-on-all-roles/168632)

<div class="topic-metadata">

**Author:** [@jimdeuc](https://www.ruby-forum.com/u/jimdeuc)\
**Replies:** 0\
**Last updated:** [May 23, 2009, 8:21am UTC](https://www.ruby-forum.com/t/are-these-capistrano-tasks-being-executed-on-all-roles/168632 "2009-05-23T08:21:13Z")

</div>

I have an Apache front-end web server “server1”, an application server with Ruby and Thin “server2”, and a MySQL database server “server3”. Before I do a deployment I wanted to check what Capistrano is going to do to …

---

## [Legacy DB and id issue](https://www.ruby-forum.com/t/legacy-db-and-id-issue/168625)

<div class="topic-metadata">

**Author:** [@pepe](https://www.ruby-forum.com/u/pepe)\
**Replies:** 1\
**Last updated:** [May 23, 2009, 5:40am UTC](https://www.ruby-forum.com/t/legacy-db-and-id-issue/168625 "2009-05-23T05:40:36Z")

</div>

ruby: 1.8.6 rails: 2.3.2 Database: Oracle 10g Table with fields: ID varchar2(6) REC\_NO number(10,0) (No primary key declaration) Model: class Myclass \< ActiveRecord::Base self.primary\_key = ‘rec\_no’ self.sequen…

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

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